http://bugs.winehq.org/show_bug.cgi?id=24309
Summary: Recaching Fonts on each start Product: Wine Version: 1.3.1 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: fonts AssignedTo: wine-bugs@winehq.org ReportedBy: thomas.belau@gmx.de
Hi!
The bug is an old one. It was shown in http://bugs.winehq.org/show_bug.cgi?id=17674 but never really fixed. There seems to be a work around for Mac only. The bug himselves is persisting.
I found that the prob comes with free scalable fonts. A call of dlls/winex11.drv/xfont.c function XFONT_ReadCachedMetrics fails if any font has in pfi->df.dfPixelHeight no value. This seems to be so on nearly every free scalable font. A possible solve is to ask first wether it is a free scalable font (if(pfi->fi_flags&FI_SCALABLE) {...) and if not to ask wether this value is zero (...} else if(pfi->df.dfPixelHeight==0) {...).
After this small patch my wine was recaching the fonts (about 16000...) in a correct manner. A Patch (diff -U...; patch it directly in the winex11.drv directory) is appended.