Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288256 - media-libs/freetype-2.3.10: Major font breakage
Summary: media-libs/freetype-2.3.10: Major font breakage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
: 288357 (view as bug list)
Depends on:
Blocks: 288357
  Show dependency tree
 
Reported: 2009-10-08 23:52 UTC by Nikos Chantziaras
Modified: 2009-10-30 09:10 UTC (History)
12 users (show)

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


Attachments
emerge --info (emerge-info,4.11 KB, text/plain)
2009-10-08 23:53 UTC, Nikos Chantziaras
Details
Screenshot illustrating the problem (font_breakage.png,165.41 KB, image/png)
2009-10-08 23:54 UTC, Nikos Chantziaras
Details
Comment one line (gentoo288256a.patch,826 bytes, patch)
2009-10-10 13:56 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikos Chantziaras 2009-10-08 23:52:03 UTC
After updating to freetype-2.3.10 (from 2.3.9-r1), I can't use some of the fonts in my system.  They get substituted by some default font.  Konsole (KDE 4) with a bitmap font shows major breakage (I'm attaching a screenshot.)

Reverting to 2.3.9-r1 makes fonts sane again.
Comment 1 Nikos Chantziaras 2009-10-08 23:53:39 UTC
Created attachment 206490 [details]
emerge --info
Comment 2 Nikos Chantziaras 2009-10-08 23:54:32 UTC
Created attachment 206492 [details]
Screenshot illustrating the problem
Comment 3 Serge Plyukhin 2009-10-09 06:46:13 UTC
confirm :-(
Linux 2.6.31-gentoo-r2 x86_64
 
Comment 4 Serge Plyukhin 2009-10-09 06:49:37 UTC
USE="X doc fontforge utils -bindist -debug"
Comment 5 Bob Raitz 2009-10-09 07:33:37 UTC
Confirmed on three x86' and one x86_64.
Comment 6 Lukasz Pawelczyk 2009-10-09 08:02:57 UTC
Confirmed, for me it has something to do with PCF fonts, TTF seems to work properly.

I use console8x16.pcf for urxvt and kde konsole. After upgrade urxvt fails to run. I had to recache fontconfig then it did run but with some other font. Kde konsole does the same, additionally it shows console8x16.pcf on font list instead of just "Console" (filename instead of font name). Maybe some incompatibility with fontconfig?
Comment 7 tman 2009-10-09 12:10:52 UTC
 http://dpaste.com/104878/

i can confirm it too... emerge -uDN world throw this error
Comment 8 Leonard Khoo 2009-10-09 14:38:06 UTC
same same.
Comment 9 Dmitry Kochetov 2009-10-09 15:23:26 UTC
Confirm.
Comment 10 Dmitry Kochetov 2009-10-09 15:32:02 UTC
Confirm.
Comment 11 Eric N. Vander Weele 2009-10-09 15:38:50 UTC
(In reply to comment #0)
> After updating to freetype-2.3.10 (from 2.3.9-r1), I can't use some of the
> fonts in my system.  They get substituted by some default font.  Konsole (KDE
> 4) with a bitmap font shows major breakage (I'm attaching a screenshot.)
> 
> Reverting to 2.3.9-r1 makes fonts sane again.
> 

When I revert back to 2.3.9-r1, I still have all the *.pcf show up in my font
list for gnome-terminal.
Comment 12 Lukasz Pawelczyk 2009-10-09 16:16:42 UTC
(In reply to comment #11)
> When I revert back to 2.3.9-r1, I still have all the *.pcf show up in my font
> list for gnome-terminal.

remove your fontconfig cache dir

~/.fontconfig


Comment 13 Jouni Rinne 2009-10-09 19:01:03 UTC
Can confirm, too... Artwiz-fonts, which I use on my desktop, turned into squares...
Comment 14 Volker Hemmann 2009-10-09 19:39:08 UTC
it also makes xine fail:
xine
Dies ist xine (X11 gui) - Ein freier Video-Player v0.99.5.
(c) 2000-2007 Das xine Team.
xiTK WARNING(xitk_font_load_font:738): loading font "*-helvetica-bold-o-*-*-12-*-*-*-*-*-*-*" failed, default and system fonts "(null)" and "fixed" failed too
xiTK WARNING(xitk_font_load_font:738): loading font "*-helvetica-bold-o-*-*-12-*-*-*-*-*-*-*" failed, default and system fonts "(null)" and "fixed" failed too
xiTK WARNING(xitk_font_load_font:738): loading font "fixed" failed, default and system fonts "(null)" and "fixed" failed too
xiTK DIE: create_labelofbutton()@126: xitk_font_load_font() failed. Exiting

everything is fine with 2.3.9-r1
Comment 15 Peter Volkov (RETIRED) gentoo-dev 2009-10-09 19:46:31 UTC
Ok, I've masked it now. It'll be great if somebody bisects it and shows us broken commit. Or, I'll try to reproduce it here somehow (everything works still, but I'll try with different systems tomorrow).
Comment 16 Skander Morgenthaler 2009-10-10 00:11:05 UTC
I have also seen some font breakage after upgrading freetype. Not with KDE programs, but with firefox, which did not display text for many websites (http://www.heise.de being one example). After remerging fontconfig, the problems were gone. I haven't found more font breakage yet.
Comment 17 Martin von Gagern 2009-10-10 13:30:18 UTC
Bisected the xine issue from comment #14 to this commit:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3bda1f9949d20cc46fc76e3876bcff545cc8d665

I guess the problematic line is this one here:
nprops = nprops - (int)nprops;

Commenting that made xine run cleanly again.
Comment 18 Martin von Gagern 2009-10-10 13:56:06 UTC
Created attachment 206660 [details, diff]
Comment one line

This patch comments the one line in question. No guarantees that this is intended behaviour, but at least it works for me with my xine issue. Would be interesting whether this solves the other issues described above as well. Please try it out and report your results.
Comment 19 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-10-10 14:06:54 UTC
Well, with your patch applied fc-list (from media-list/fontconfig) still lists all pcf files with full filename instead of the font-name.
Comment 20 Martin von Gagern 2009-10-10 15:36:40 UTC
(In reply to comment #19)
> Well, with your patch applied fc-list (from media-list/fontconfig) still lists
> all pcf files with full filename instead of the font-name.

Can't reproduce: some exotic fonts listed with file name, both using freetype 2.3.9-r1 and 2.3.10, while nost others seem to get listed properly, even those coming from pcf.gz files. So in my eyes this seems unrelated to recent 2.3.10 breakage.

$ fc-list  | grep -i pcf
unifont.pcf:style=Regular
ethio24f\-uni.pcf:style=Regular
micro.pcf:style=Regular
ethio16f\-uni.pcf:style=Regular
decsess.pcf:style=Regular
deccurs.pcf:style=Regular
cursor.pcf:style=Regular
xtis24.pcf:style=Regular
taipei16.pcf:style=Regular
taipei24.pcf:style=Regular
Comment 21 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-10-10 15:44:44 UTC
Sorry, you're right. I forgot to run "fc-cache -f" as root before running fc-list.
Comment 22 Peter Volkov (RETIRED) gentoo-dev 2009-10-10 18:07:36 UTC
To avoid further reports upstream: this was reported and Suzuki is working on correct fix.
Comment 23 Martin von Gagern 2009-10-10 18:11:59 UTC
Has it been confirmed that the bug mentioned in comment 17 and addressed by comment 22 is indeed the cause of all the issues described in this report here?
Comment 24 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-10-10 18:24:19 UTC
Some URL to the report would be nice, too...
Comment 25 Peter Volkov (RETIRED) gentoo-dev 2009-10-10 18:31:24 UTC
Ok, fixed in freetype-2.3.10-r1. Thank you all.

Lars, it's in mailing list archive from today.
Comment 26 Peter Volkov (RETIRED) gentoo-dev 2009-10-10 18:32:48 UTC
*** Bug 288357 has been marked as a duplicate of this bug. ***
Comment 27 Martin von Gagern 2009-10-10 18:46:18 UTC
(In reply to comment #24)
> Some URL to the report would be nice, too...

Copying links from bug #288357 comment #3:
http://thread.gmane.org/gmane.comp.fonts.freetype.user/3348
http://thread.gmane.org/gmane.comp.fonts.freetype.user/3350
Comment 28 tman 2009-10-10 19:26:52 UTC
IT IS NOT FIXED

ebuild     UD] net-misc/openssh-5.2_p1-r3 [5.3_p1-r1]
[nomerge      ] gnome-base/gnome-2.26.3 
[nomerge      ]  gnome-extra/swfdec-gnome-2.28.0-r1 
[nomerge      ]   media-libs/swfdec-0.8.4 
[nomerge      ]    x11-libs/cairo-1.8.8 
[ebuild   R   ]     media-libs/freetype-2.3.9-r1 
[nomerge      ] app-text/texlive-2008 
[nomerge      ]  dev-texlive/texlive-pstricks-2008-r1 
[nomerge      ]   dev-texlive/texlive-genericrecommended-2008 
[nomerge      ]    app-text/texlive-core-2008-r7 
[ebuild     U ]     media-libs/freetype-2.3.10-r1 [2.3.9-r1]

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-libs/freetype:2

  ('ebuild', '/', 'media-libs/freetype-2.3.9-r1', 'merge') pulled in by
    media-libs/freetype[-cleartype,-ubuntu] required by ('installed', '/', 'x11-libs/libXft-2.1.13', 'nomerge')
    >=media-libs/freetype-2.1.9[-cleartype,-ubuntu] required by ('installed', '/', 'x11-libs/cairo-1.8.8', 'nomerge')
    >=media-libs/freetype-2.2.1[-cleartype,-ubuntu] required by ('installed', '/', 'media-libs/fontconfig-2.7.3', 'nomerge')
    (and 45 more)

  ('ebuild', '/', 'media-libs/freetype-2.3.10-r1', 'merge') pulled in by
    =media-libs/freetype-2* required by ('installed', '/', 'media-gfx/imagemagick-6.5.4.10', 'nomerge')
    >=media-libs/freetype-2 required by ('installed', '/', 'gnome-base/librsvg-2.26.0', 'nomerge')
    media-libs/freetype required by ('installed', '/', 'app-doc/doxygen-1.6.1', 'nomerge')
    (and 42 more)


Comment 29 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-10-10 19:52:37 UTC
(In reply to comment #28)
> IT IS NOT FIXED
> 
> ebuild     UD] net-misc/openssh-5.2_p1-r3 [5.3_p1-r1]
> [nomerge      ] gnome-base/gnome-2.26.3 
> [nomerge      ]  gnome-extra/swfdec-gnome-2.28.0-r1 
> [nomerge      ]   media-libs/swfdec-0.8.4 
> [nomerge      ]    x11-libs/cairo-1.8.8 
> [ebuild   R   ]     media-libs/freetype-2.3.9-r1 
> [nomerge      ] app-text/texlive-2008 
> [nomerge      ]  dev-texlive/texlive-pstricks-2008-r1 
> [nomerge      ]   dev-texlive/texlive-genericrecommended-2008 
> [nomerge      ]    app-text/texlive-core-2008-r7 
> [ebuild     U ]     media-libs/freetype-2.3.10-r1 [2.3.9-r1]
> 
> !!! Multiple package instances within a single package slot have been pulled
> !!! into the dependency graph, resulting in a slot conflict:
> 
> media-libs/freetype:2
> 
>   ('ebuild', '/', 'media-libs/freetype-2.3.9-r1', 'merge') pulled in by
>     media-libs/freetype[-cleartype,-ubuntu] required by ('installed', '/',
> 'x11-libs/libXft-2.1.13', 'nomerge')
>     >=media-libs/freetype-2.1.9[-cleartype,-ubuntu] required by ('installed',
> '/', 'x11-libs/cairo-1.8.8', 'nomerge')
>     >=media-libs/freetype-2.2.1[-cleartype,-ubuntu] required by ('installed',
> '/', 'media-libs/fontconfig-2.7.3', 'nomerge')
>     (and 45 more)
> 
>   ('ebuild', '/', 'media-libs/freetype-2.3.10-r1', 'merge') pulled in by
>     =media-libs/freetype-2* required by ('installed', '/',
> 'media-gfx/imagemagick-6.5.4.10', 'nomerge')
>     >=media-libs/freetype-2 required by ('installed', '/',
> 'gnome-base/librsvg-2.26.0', 'nomerge')
>     media-libs/freetype required by ('installed', '/', 'app-doc/doxygen-1.6.1',
> 'nomerge')
>     (and 42 more)

Your problem is completely unrelated to the original bug which got reported here.