mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Bug 548983. Override GetStandardFamilyName for the DWrite font list. r=bas
This commit is contained in:
parent
06bd76881c
commit
77966dd811
@ -519,3 +519,16 @@ gfxDWriteFontList::InitFontList()
|
||||
|
||||
StartLoader(kDelayBeforeLoadingFonts, kIntervalBetweenLoadingFonts);
|
||||
}
|
||||
|
||||
PRBool
|
||||
gfxDWriteFontList::GetStandardFamilyName(const nsAString& aFontName,
|
||||
nsAString& aFamilyName)
|
||||
{
|
||||
gfxFontFamily *family = FindFamily(aFontName);
|
||||
if (family) {
|
||||
family->LocalizedName(aFamilyName);
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
@ -200,6 +200,9 @@ public:
|
||||
const PRUint8 *aFontData,
|
||||
PRUint32 aLength);
|
||||
|
||||
PRBool GetStandardFamilyName(const nsAString& aFontName,
|
||||
nsAString& aFamilyName);
|
||||
|
||||
private:
|
||||
friend class gfxDWriteFontFamily;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user