FS#5003 - Cairo problems after update to 1.2.0
Attached to Project:
Arch Linux
Opened by Douglas Soares de Andrade (dsa) - Sunday, 09 July 2006, 11:46 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 10 July 2006, 07:07 GMT
Opened by Douglas Soares de Andrade (dsa) - Sunday, 09 July 2006, 11:46 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 10 July 2006, 07:07 GMT
|
Details
After this update the fonts in my gtk apps are really messed
up. I saw that a user in forums are with the same
problem:
http://bbs.archlinux.org/viewtopic.php?t=23082&highlight=cairo I downgraded the older version and it worked. Any ideas or im missing something ? Thanks |
This task depends upon
still, if you want a work-around, i think running /opt/gnome/libexec/gnome-settings-daemon on startup should do the trick (that is, if you have the control-center package installed and you've correctly configured your font settings through it)
personally i downgraded rather than have another useless task running :)
Im running kde with gtk-qt-engine... I downgraded too. But im using clearlooks as gtk theme. Removing gtk-qt-theme helps ? (Im away from my box).
- /etc/fonts and all files/symlinks in it
- ~/.fonts.conf
I've compared my tarball with izaak's, and the only substantial difference I could find regarding bitmaps was to which file the bitmaps symlink led to. I changed that to no-bitmaps.conf, and ... no difference.
I've also tried to downgrade, but I need a lower version of pycairo, the cache of which I seem to have deleted. Does anyone have an old copy which is compatible with cairo v. 1.0.4?
Is this an upstream problem with cairo?
In answer to question #2, what do you mean? What other theme engines are there?
Besides, I don't know if it's relevant or not, but I tried running a different WM instead of KDE (e.g., IceWM, and even Gnome itself) and I still had these rendering problems.
About the anti-aliasing problems: this bug has been introduced somewhere in the 1.1.x development releases and is caused by one of the commits in this big diff:
http://gitweb.freedesktop.org/?p=cairo;a=commitdiff;h=b0c58593b30c1fa085b1e7c8e4897da623b8686d
I'll try to revert small pieces later today or tomorrow to find out which piece of the commit is causing it.
FYI, though - I was seeing this bug under GNOME too. (In fact, when running GNOME, the GNOME panel itself was experiencing these rendering probs., and not just GTK-based apps.)
So what's the situation, then: are we to wait for an upstream fix on this? It looked like your comment about reverting was only in reference to the anti-aliasing probs.
Trying to reproduce this bug on my system succeeded only in one way: telling KDE not to anti-alias fonts of a certain size. Somehow cairo looses track at that moment and decides to exclude all fonts from AA. My guess is that cairo doesn't provide the correct fontsize to freetype2/fontconfig (possibly even 0 points), which makes fontconfig believe the fonts shouldn't be hinted.
Take a look at ~/qt/.qtrc, check for these lines:
enableXft=false
useXft=false
Put them to true and hinting should be enabled again, or add these lines and set them to true.
About the corruption: this has been fixed in cairo GIT, I'll apply the patch later today or tomorrow to our cairo package The bug isn't in cairo actually, but in X.Org when rendering without EXA. The patch for cairo just workarounds the bug. Somehow X.Org will stop rendering when a 0-sized glyph gets rendered, so cairo just makes sure X.Org doesn't get these glyphs rendered.
I couldn't find the lines you specified in ~/.qt/qtrc . Why would that affect GTK apps, anyways?
KDE 3.5.4, which is released shortly, should fix this problem. I've tested with KDE 3.5.3, which indeed turns off all AA. Having pre-release KDE 3.5.4 packages installed, AA is turned on and applications look fine again.
echo 'Xft.antialias: 1' | xrdb -override
For example, those running KDE would put the above line somewhere in ~/.kde/Autostart/ .
Yes, I have antialiasing turned on in KDE's font settings and qt apps of course look great.
http://bbs.archlinux.org/viewtopic.php?t=23743
works well with KDE 3.5.4. I am currently writing this with Cairo 1.2.0-2 installed and the fonts are perfect.