Problems with libXft-2.1.5 and bitmap fonts

Joe Marcus Clarke <[email protected]> Thu, 18 Mar 2004 14:42:40 -0500
Newsgroups gmane.comp.freedesktop.xlibs.general
Organization FreeBSD, Inc.
Message-ID <1079638959.772.39.camel@gyros>
--===============1296560149==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="=-aBUKJtE3yunLA53T7oTO"


--=-aBUKJtE3yunLA53T7oTO
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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, =20
face->available_sizes[best].y_ppem, 0, 0) !=3D 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

--=20
Joe Marcus Clarke
FreeBSD GNOME Team	::	[email protected]
[email protected]
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome


--=-aBUKJtE3yunLA53T7oTO
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAWfuvb2iPiv4Uz4cRAhqeAJ9SwBM7FXzNTQbT5PqrYPRfY7hv0gCfdHfw
iKERo/QrMX093nDYr4kYULg=
=eyhB
-----END PGP SIGNATURE-----

--=-aBUKJtE3yunLA53T7oTO--



--===============1296560149==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
xlibs mailing list
[email protected]
http://freedesktop.org/mailman/listinfo/xlibs

--===============1296560149==--