[Bug 24309] New: Recaching Fonts on each start

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Sep 8 09:57:59 CDT 2010


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 at winehq.org
        ReportedBy: thomas.belau at 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.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list