mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1170421 - return first font suggested by fontconfig as the default font. r=karlt
This commit is contained in:
parent
a1f7e4ef6d
commit
5adb562d62
@ -1145,7 +1145,10 @@ gfxFcPlatformFontList::GetFontList(nsIAtom *aLangGroup,
|
||||
gfxFontFamily*
|
||||
gfxFcPlatformFontList::GetDefaultFont(const gfxFontStyle* aStyle)
|
||||
{
|
||||
return FindGenericFamily(NS_LITERAL_STRING("serif"), nsGkAtoms::x_western);
|
||||
// Get the default font by using a fake name to retrieve the first
|
||||
// scalable font that fontconfig suggests for the given language.
|
||||
return FindGenericFamily(NS_LITERAL_STRING("-moz-default"),
|
||||
aStyle->language);
|
||||
}
|
||||
|
||||
gfxFontEntry*
|
||||
|
Loading…
Reference in New Issue
Block a user