[Bug 458169] [@font-face] implement downloadable font support on Linux

bugzilla-daemon at mozilla.org bugzilla-daemon at mozilla.org
Sat Dec 6 09:40:28 UTC 2008

Do not reply to this email.  You can add comments to this bug at

--- Comment #25 from Karl Tomlinson (:karlt) <mozbugz at karlt.net>  2008-12-06 01:40:17 PST ---
(In reply to comment #24)
> (In reply to comment #22)
> > I pushed this to m-c with one small change to the font used to find the
> > FT_Library
> > 
> > -            new gfxPangoFontGroup(NS_LITERAL_STRING("\"sans-serif\""),
> > +            new gfxPangoFontGroup(NS_LITERAL_STRING("sans-serif"),
> > 
> > so as to use mozilla default font (which is often the system default) instead
> > of just the system default.

I had intended to explain with an indefinite article here: "use _a_ mozilla
default font", but managed to leave that out of the explanation.

> Whether Mozilla's default is serif or sans-serif is controlled by the
> font.default.[langGroup] preferences (and maybe also the font.default
> preference).


In this particular situation, the precise font is of little importantance, as
all fonts will give us the same FT_Library.  Using a default (generic) font is
an attempt to avoid another font being opened through FreeType.

You've made me aware that the default langGroup on the gfxFontStyle of
"x-unicode" will cause the pref "font.name.sans-serif.x-unicode" to be used. 
The default value for this pref is "\"sans-serif\"", which would resolve to a
font suitable for the language of the user's locale, but if the pref has been
modified, it becomes more likely that it could be a font quite different from
what would normally be used for their language from
font.name.[generic].[langGroup from locale].

However, the issues here are not worth any extra code to look up preferences.

Configure bugmail: https://bugzilla.mozilla.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the fonts-bugs mailing list