зеркало из https://github.com/mozilla/gecko-dev.git
Bug 548983. Override GetStandardFamilyName for the DWrite font list. r=bas
This commit is contained in:
Родитель
06bd76881c
Коммит
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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче