[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] PATCH: gnash 0.8.5: match TTF fonts on the fullname attr

From: Bernd Kischnick
Subject: Re: [Gnash-dev] PATCH: gnash 0.8.5: match TTF fonts on the fullname attribute
Date: Fri, 18 Jun 2010 15:23:21 +0200

correction to my mail:
the problem lies in the font matching strategy in the FONTCONFIG library, not freetype.
FcNameParse() is part of the fontconfig API, obviously.

gnash 0.8.5 passes this string to the freetype library to match, using function FcNameParse(). But freetype essentially matches the name on the font family attribute only, so it tries and fails to find fonts with font family "DejaVu Sans Bold", and returns a default sans-serif font instead. (Observed with freetype2 2.3.7) In fact the string used by flash is present as the "fullname" attribute in the fonts. Freetype doesn't allow for a simple match on the "fullname" attribute, so we enumerate all the fonts find a match.

I've not checked whether gnash 0.8.6 or 0.8.7 show the same behaviour.
Also, one could argue that freetype should be enhanced instead of gnash.

the fontconfig version used is 2.6.0.

sorry for the confusion.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]