Summary: | Inconsistent font spacing in window title and window menu | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | S. Christian Collins <s_chriscollins> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | cfeck |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
URL: | http://www.youtube.com/watch?v=BuathUVpdNk | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
S. Christian Collins
2012-05-22 19:50:46 UTC
I should add that I can reproduce the bug using hinting settings of "none" and "slight", with or without RGB subpixel rendering. The bug does not seem to appear with hinting settings of "medium" (I didn't try "full"). There are 2 possible sources: - Do you use the XRender backend? - What's the situation after running "kwin --replace &" This happens with OpenGL, Xrender and even no compositing at all. Running "kwin --replace &" is similar to logging out and in again... I can reproduce the bug again after running the command. Try kwin --replace --graphicssystem raster & -> check for the issue kwin --replace --graphicssystem native & -> check for the issue (since it happens w/o compositing it's for sure not caused but only triggered by kwin - and rast ./. native font redering - depending on the hinting - in Qt was an issue as well) The bug disappears when Kwin uses the raster graphics system. If I switch back to native, the bug reappears. The workaround for me is to switch Kwin to use the raster graphics system. To make this setting permanent, I did the following: Create the following script as /usr/local/bin/kwin-raster and make it executable: [code]#!/bin/bash kwin --graphicssystem=raster[/code] Then, add the following to /etc/profile: [code]export KDEWM="kwin-raster"[/code] Let's try this again... ------------------------ The workaround for me is to switch Kwin to use the raster graphics system. To make this setting permanent, I did the following: Create the following script as /usr/local/bin/kwin-raster and make it executable: #!/bin/bash kwin --graphicssystem=raster Then, add the following to /etc/profile: export KDEWM="kwin-raster" For everybody not using ubuntu but kwin >= 4.8 kwriteconfig --file kwinrc --group Compositing --key GraphicsSystem raster NOTICE that you should NOT use this setting with the XRender backend as it will lead to suboptimal performance. The bug itself is either in Qt or fontconfig Not really a bug. Qt 4.8 now defaults to subpixel layouting (i.e. characters can have a fractional horizontal pixel advance), a much requested feature. The X native rendering calls do not support it, so the letters look "randomly" spaced to compensate for the fractional advances when not using "raster" graphics engine. Applications can request integer metrics from Qt, we had to do that e.g. in Konsole. |