Problems with libXft-2.1.5 and bitmap fonts

Joe Marcus Clarke marcus at FreeBSD.org
Thu Mar 18 11:42:40 PST 2004


I upgraded the FreeBSD Xft port to libXft-2.1.5, and people started
complaining that bitmap fonts no longer work.  Problems reported
included Mozilla/Firefox crashes when viewing pages such as:

http://www.ruby-lang.org/ja/
http://slashdot.org/
http://www.mempool.com/

Sure enough, bitmap fonts no longer load correctly in GNOME.  This seems
to be directly related to xftfreetype.c rev 1.40.  This always fails for
the affected fonts:

 if (FT_Set_Char_Size (face, face->available_sizes[best].x_ppem,  
face->available_sizes[best].y_ppem, 0, 0) != 0)

If I revert this portion of rev. 1.40, everything works again.  One such
affected font is vizung.pcf downloadable from
http://www.marcuscom.com/downloads/vizung.pcf.  Trying to make Vizing
the GNOME application font fails for all sizes.  When I enable
debugging, the failure happens at the line above.  It tries to to do
FT_Set_CharSize (face, 80, 80, 0, 0) and fails.

I'm not sure if this commit is intended to do this, or if this is broken
behavior.  It seems like the latter as this used to work without any
perceived ill side-effects.  Here are the versions of the relevant font
bits:

libXft-2.1.5
fontconfig-2.2.2
freetype2-2.1.7
XFree86-4.3.0 (with included [x]render)

Thanks.

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	marcus at FreeBSD.org
gnome at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://freedesktop.org/pipermail/xlibs/attachments/20040318/5de4564c/attachment.pgp


More information about the xlibs mailing list