mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 636957 - ensure DWrite font list is initialized in GetFontFamilyList(). r=jdaggett
This commit is contained in:
parent
980d6b87e0
commit
5a633fc5ed
@ -1102,6 +1102,17 @@ gfxFontFamily* gfxDWriteFontList::FindFamily(const nsAString& aFamily)
|
||||
return gfxPlatformFontList::FindFamily(aFamily);
|
||||
}
|
||||
|
||||
void
|
||||
gfxDWriteFontList::GetFontFamilyList(nsTArray<nsRefPtr<gfxFontFamily> >& aFamilyArray)
|
||||
{
|
||||
if (!mInitialized) {
|
||||
mInitialized = PR_TRUE;
|
||||
DelayedInitFontList();
|
||||
}
|
||||
|
||||
return gfxPlatformFontList::GetFontFamilyList(aFamilyArray);
|
||||
}
|
||||
|
||||
PRBool
|
||||
gfxDWriteFontList::ResolveFontName(const nsAString& aFontName,
|
||||
nsAString& aResolvedFontName)
|
||||
|
@ -225,6 +225,8 @@ public:
|
||||
|
||||
virtual gfxFontFamily* FindFamily(const nsAString& aFamily);
|
||||
|
||||
virtual void GetFontFamilyList(nsTArray<nsRefPtr<gfxFontFamily> >& aFamilyArray);
|
||||
|
||||
private:
|
||||
friend class gfxDWriteFontFamily;
|
||||
|
||||
|
@ -93,7 +93,7 @@ public:
|
||||
|
||||
void ClearPrefFonts() { mPrefFonts.Clear(); }
|
||||
|
||||
void GetFontFamilyList(nsTArray<nsRefPtr<gfxFontFamily> >& aFamilyArray);
|
||||
virtual void GetFontFamilyList(nsTArray<nsRefPtr<gfxFontFamily> >& aFamilyArray);
|
||||
|
||||
gfxFontEntry* FindFontForChar(const PRUint32 aCh, gfxFont *aPrevFont);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user