mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 10:57:34 +09:00
Use font.name-list.emoji preference for emoji presenration.
This commit is contained in:
parent
33a4b11c98
commit
0022f326a5
6 changed files with 88 additions and 19 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue