Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139946 - Cairo-1.2.0 / Pango-1.12.3 Breaks GTK2 /GTK+ Font Rendering
Summary: Cairo-1.2.0 / Pango-1.12.3 Breaks GTK2 /GTK+ Font Rendering
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Doug Goldstein (RETIRED)
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
: 140060 140994 141579 142608 142779 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-10 18:50 UTC by James Wells
Modified: 2007-03-15 23:41 UTC (History)
13 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_--info.txt,3.59 KB, text/plain)
2006-07-10 18:51 UTC, James Wells
Details
Relevant portions of xorg.conf (xorg.conf,1.81 KB, text/plain)
2006-07-10 18:52 UTC, James Wells
Details
/etc/fonts/local.conf (local.conf,1.04 KB, text/plain)
2006-07-10 18:54 UTC, James Wells
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Wells 2006-07-10 18:50:33 UTC
Greetings,

   More info about this issue can be found at;
      http://forums.gentoo.org/viewtopic-t-478834-highlight-cairo.html

   And a screenshot can be found at;
      http://bugs.debian.org/cgi-bin/bugreport.cgi/Pantallazo.png?bug=376714;msg=15;att=1


   Basically the issue is that on some systems, this combination causes font rendering to fail such that the first word / letter on a line of text will appear, but the remainder of the line of text will not until you for the screen to refresh in some way, such as doing a mouse over, scrolling up or down, but not page up or page down.   The place I see this happen the most often is in Firefox and Thunderbird.  If you are having the issue it is immediately obvious when you look at the menus.

   As a temporary work-around, you can alter the Firefox and Thunderbird start scripts to disable Pango at run time by adding the following line to the start scripts, just above the Mozilla-Launcher;
      export MOZ_DISABLE_PANGO=1

   Emerge --info, /etc/fonts/local.conf, and the relevant portions of the xorg.conf will be attached shortly;
Comment 1 James Wells 2006-07-10 18:51:36 UTC
Created attachment 91419 [details]
emerge --info
Comment 2 James Wells 2006-07-10 18:52:49 UTC
Created attachment 91420 [details]
Relevant portions of xorg.conf
Comment 3 James Wells 2006-07-10 18:54:02 UTC
Created attachment 91421 [details]
/etc/fonts/local.conf
Comment 4 Brian Hall 2006-07-11 06:59:57 UTC
I can confirm this bug, it happened to me when I switched to modular Xorg (unrelated, but I also upgraded cairo then). If I mask off the 1.2.0 cairo and reemerge cairo and pycairo, then gtk font display / menu problems go away. I did not use "export MOZ_DISABLE_PANGO=1"

/etc/portage/package.mask
=x11-libs/cairo-1.2.0
=dev-python/pycairo-1.2.0

# emerge --info
Portage 2.1.1_pre2-r6 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-ck1 x86_64)
=================================================================
System uname: 2.6.17-ck1 x86_64 Dual Core AMD Opteron(tm) Processor 165
Gentoo Base System version 1.12.1
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=k8 -msse3 -fomit-frame-pointer -funit-at-a-time -frename-registers -mtune=athlon64 -fno-ident -pipe -ftree-vectorize -fweb -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=k8 -msse3 -fomit-frame-pointer -funit-at-a-time -frename-registers -mtune=athlon64 -fno-ident -pipe -ftree-vectorize -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="autoconfig ccache digest distlocks metadata-transfer noinfo sandbox strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ http://gentoo.llarian.net/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://daisy/gentoo-portage"
USE="amd64 7zip X a52 aac abook acpi allegro alsa apm artworkextra asf avi bash-completion berkdb bitmap-fonts bzip2 ccache cdda cddb cdinstall cdio cdparanoia chroot cli crypt cups dedicated dga dillo dio dlloader dnd dri dvd dvdr dvdread effects emboss emul-linux-x86 encode ext-png ext-zlib extensions fam fame fat ffmpeg firefox flac flatfile foomaticdb fortran gb gcj gd gdbm gif gimp gimpprint ginac glut glx gmail gmailtimestamps gnome gnome-print gpgme gpm gs gstreamer gtk gtk2 gzip imlib imlib2 inkjar isdnlog java jikes joystick jpeg jpeg2k kde keyscrub lame lcd lcms lesstif libdsk lm_sensors lynxkeymap lzo lzw lzw-tiff mad maildir matroska matrox mbox mcal md5sum mikmod mimencode mixer mmap mng mod moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mpeg mpeg2 mplayer musepack music ncurses net network nptl nptlonly offensive ofx ogg oggvorbis on-the-fly-crypt opengl pam pam_chroot pam_console pam_timestamp parse-clocks pcre pdf pdflib perl physfs pic png ppds pppd python qt qt3 qt4 quicktime rar rdesktop readline reflection reiserfs rogue rtc sblive screen sdl server session shorten skins sounds sox spell spl sse-filters ssl stream svg sysfs szip tcltk tcpd tga theora threads tiff transcode truetype truetype-fonts type1 type1-fonts usb uudeview v4l v4l2 vcd vfat videos vlm vnc vorbis wxwindows x11vnc xatrix xface xml xmms xorg xosd xpm xscreensaver xv xvid xvmc yv12 zip zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_ati video_cards_mga video_cards_nv video_cards_radeon"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-07-12 00:58:49 UTC
*** Bug 140060 has been marked as a duplicate of this bug. ***
Comment 6 Philip Kovacs 2006-07-14 06:21:10 UTC
With cairo-1.2.0 and gtk+-2.8.19/pango-1.12.3, I lose anti-aliasing on my xfce4 menus and dialogs.  Here's a screenshot:

http://home.comcast.net/~phibby/desktop.png

Going back to cairo-1.0.4 restores anti-aliasing.
Comment 7 Sérgio Luís 2006-07-14 09:58:32 UTC
upstream bug report is here:
https://bugs.freedesktop.org/show_bug.cgi?id=7494

imho cairo-1.2.0 should be masked again

Comment 8 Fritz Heinrichmeyer 2006-07-15 04:35:29 UTC
(In reply to comment #7)
> upstream bug report is here:
> https://bugs.freedesktop.org/show_bug.cgi?id=7494
> 
> imho cairo-1.2.0 should be masked again
> 
a workaround for kde-users (most of affected users) is mentioned there for those wo do not want downgrade:

in kcontrol do not exclude smaller font sizes from antialiasing (in my german kde it is called "Kantengl
Comment 9 Fritz Heinrichmeyer 2006-07-15 04:35:29 UTC
(In reply to comment #7)
> upstream bug report is here:
> https://bugs.freedesktop.org/show_bug.cgi?id=7494
> 
> imho cairo-1.2.0 should be masked again
> 
a workaround for kde-users (most of affected users) is mentioned there for those wo do not want downgrade:

in kcontrol do not exclude smaller font sizes from antialiasing (in my german kde it is called "Kantenglättung") 
Comment 10 James Wells 2006-07-16 13:38:33 UTC
I should point out, that it is not just KDE that is having the issue, but Enlightenment as well.  I have seen the issue first hand on Enlightenent 16, and read someone else had the problem on 17.
Comment 11 Fritz Heinrichmeyer 2006-07-17 05:23:13 UTC
(In reply to comment #8)

> a workaround for kde-users (most of affected users) is mentioned there for
> ...

sorry, it seems that this workaround not always help ...
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-07-18 19:58:20 UTC
*** Bug 140994 has been marked as a duplicate of this bug. ***
Comment 13 Stepan Moskovchenko 2006-07-18 20:02:58 UTC
I can confirm this bug. For me this started happening when I upgraded to modular X, and it happens with Firefox. The issue occurs on certain web pages using fonts small enough that they do not need anti-aliasing.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-07-24 06:35:21 UTC
*** Bug 141579 has been marked as a duplicate of this bug. ***
Comment 16 René Rietz 2006-07-28 10:22:07 UTC
Patch from #comment 20 fixes the disappearing text problem and #comment 23 fixes ugly fonts within kde.
Comment 17 Doug Goldstein (RETIRED) gentoo-dev 2006-08-03 19:37:24 UTC
fixed in 1.2.0-r1
Comment 18 Jaak Ristioja 2006-08-04 06:09:02 UTC
*** Bug 142779 has been marked as a duplicate of this bug. ***
Comment 19 Philip Kovacs 2006-08-04 18:07:28 UTC
hate to disappoint, but it's not fixed.   as bad as ever here...
Comment 20 Sérgio Luís 2006-08-05 05:40:46 UTC
(In reply to comment #18)
> hate to disappoint, but it's not fixed.   as bad as ever here...

What's not fixed? The text disappearing after the first word or the ugly non-antialiased fonts?
Comment 21 Aleksey Lazar 2006-08-05 08:51:52 UTC
Upgrading to cairo-1.2.0-r1 broke antialiasing and fonts disappeared also -- the exact same behavior cairo-1.2.0 invoked. I downgraded to cairo-1.0.4 and the problem is fixed, again, like before.
Comment 22 Philip Kovacs 2006-08-05 09:21:08 UTC
in response to comment 19, in my case, the problem remains that i lose anti-aliasing on my fonts.  downgrading to 1.0.4 restores it.
Comment 23 Doug Goldstein (RETIRED) gentoo-dev 2006-08-05 10:08:51 UTC
Well here's the deal... you guys are going to have to do a little leg work on your own and debug this one. Because on the upstream bug, the patch used in -r1 fixed it for everyone contributing on the upstream bug. I've never been able to reproduce this issue. So I can't debug it further for you, and nor can upstream. Only comments on here are "1.2.0 doesn't work... 1.0.4 does!" and these reports even describe two different issues. So it's tough to figure out which is which. Who even knows what desktop environment you're using.. is it QT apps or GTK+ apps? There's 0 details in your reports and 0 debugging being done on your end. Step up and provide the info needed to fix it. And no, answering the above questions won't fix it. Troubleshoot and find some exact test cases what makes it happen and what doesn't.
Comment 24 Sérgio Luís 2006-08-05 10:23:55 UTC
(In reply to comment #21)
> in response to comment 19, in my case, the problem remains that i lose
> anti-aliasing on my fonts.  downgrading to 1.0.4 restores it.

That problem isnt a cairo problem (although downgrading cairo fixes it), it's a kde problem, and it's already fixed in kde-3.5.4

The only problem is comment #20.
Aleksey, you said your fonts disappear, is it like this?:
http://bugs.debian.org/cgi-bin/bugreport.cgi/Pantallazo.png?bug=376714;msg=15;att=1

can you upload a screenshot?


Comment 25 Philip Kovacs 2006-08-05 10:35:47 UTC
i use xfce4, not kde, and the fonts lose AA on the gtk+ menus and also within firefox.
Comment 26 Sérgio Luís 2006-08-05 12:37:55 UTC
(In reply to comment #24)
> i use xfce4, not kde, and the fonts lose AA on the gtk+ menus and also within
> firefox.

I asked the main cairo developer and he said he heard some rumors about the AA fonts problem in xfce but no one had made a bug report about it yet.

I suggest you open one in http://bugs.freedesktop.org.


Comment 27 Aleksey Lazar 2006-08-05 14:46:05 UTC
Sorry, I jumped to conclusions in #20. Upgrading to KDE 3.5.4 + cairo-1.2.0-r1 did in fact fix the font rendering and disappearance issues for me.

S
Comment 28 Aleksey Lazar 2006-08-05 14:46:05 UTC
Sorry, I jumped to conclusions in #20. Upgrading to KDE 3.5.4 + cairo-1.2.0-r1 did in fact fix the font rendering and disappearance issues for me.

Sérgio,
In my case initially text did not show up at all for buttons and menus, but then showed up when the pointer moved over them, and after that the text looked just like on your screenshot, with no antialiasing.

Also, this font rendering issue only showed itself on my two machines with nvidia display drivers. My laptop with kernel ATI drivers (also with KDE and pretty much the exact same setup as the other two machines) had no such problems whatsoever.
Comment 29 Doug Goldstein (RETIRED) gentoo-dev 2006-08-05 22:10:53 UTC
nvidia drivers + cairo 1.2.x + kde required me to go into the control center under fonts and UNCHECK anti-aliasing and hit apply. Then check the box and hit apply. Close all your apps and start them back up and it works. 2 boxes behaved like this.
Comment 30 Doug Goldstein (RETIRED) gentoo-dev 2006-08-07 06:18:18 UTC
So this is really fixed...
Comment 31 Philip Kovacs 2006-08-07 08:21:12 UTC
ok, i've resolved the xfce4 anti-alias issue with cairo 1.20-r1.  It seems as though, with cairo 1.0.4, i was getting xft anti-aliasing even without any Xft.antialias 1 resource indicated for xrdb.

the xfce4 user interface dialog allows you to create a ~/.config/xfce4/XFt.xrdb
file with several xft resources:

Xft.antialias
Xft.hinting
Xft.hintstyle
etc.

this file is xrdb -merge'd when you start xfce4.   you also need GDK_USE_XFT=1
in your environment, of course, and that is set via the /etc/env.d/50gtk2 file during gtk+ installation.

i got my anti-aliasing back.
Comment 32 Jakub Moc (RETIRED) gentoo-dev 2007-03-15 23:41:34 UTC
*** Bug 142608 has been marked as a duplicate of this bug. ***