summaryrefslogtreecommitdiffstats
path: root/gfx/thebes/gfxPlatformFontList.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-09 15:30:43 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-09 15:30:43 +0200
commit84c479afa375c7cb6cd38dbaf0547636046b8cb5 (patch)
treed1d6d35fd20b1e4b6af08033b5b492e8ee1eaacb /gfx/thebes/gfxPlatformFontList.h
parent78430deb89ca5fb35588e73a35a3c702523f0345 (diff)
downloadUXP-84c479afa375c7cb6cd38dbaf0547636046b8cb5.tar
UXP-84c479afa375c7cb6cd38dbaf0547636046b8cb5.tar.gz
UXP-84c479afa375c7cb6cd38dbaf0547636046b8cb5.tar.lz
UXP-84c479afa375c7cb6cd38dbaf0547636046b8cb5.tar.xz
UXP-84c479afa375c7cb6cd38dbaf0547636046b8cb5.zip
Use font.name-list.emoji preference for emoji presenration.
Diffstat (limited to 'gfx/thebes/gfxPlatformFontList.h')
-rw-r--r--gfx/thebes/gfxPlatformFontList.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gfx/thebes/gfxPlatformFontList.h b/gfx/thebes/gfxPlatformFontList.h
index c16994d8c..c3795a072 100644
--- a/gfx/thebes/gfxPlatformFontList.h
+++ b/gfx/thebes/gfxPlatformFontList.h
@@ -380,6 +380,15 @@ protected:
eFontPrefLang aPrefLang,
nsTArray<RefPtr<gfxFontFamily>>* aGenericFamilies);
+ void
+ ResolveEmojiFontNames(nsTArray<RefPtr<gfxFontFamily>>* aGenericFamilies);
+
+ void
+ GetFontFamiliesFromGenericFamilies(
+ nsTArray<nsString>& aGenericFamilies,
+ nsAtom* aLangGroup,
+ nsTArray<RefPtr<gfxFontFamily>>* aFontFamilies);
+
virtual nsresult InitFontListForPlatform() = 0;
void ApplyWhitelist();
@@ -436,6 +445,8 @@ protected:
eFontPrefLang_First,
eFontPrefLang_Count> mLangGroupPrefFonts;
+ mozilla::UniquePtr<PrefFontList> mEmojiPrefFont;
+
// when system-wide font lookup fails for a character, cache it to skip future searches
gfxSparseBitSet mCodepointsWithNoFonts;