Bug 1714762 - patch 2 - Add Noto symbol fonts to "common fallbacks" on Linux. r=lsalzman

Depends on D117666

Differential Revision: https://phabricator.services.mozilla.com/D117667
This commit is contained in:
Jonathan Kew 2021-06-14 17:09:21 +00:00
Родитель 04da370178
Коммит 604ee10a9b
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -339,6 +339,8 @@ static const char kFontDroidSansFallback[] = "Droid Sans Fallback";
static const char kFontWenQuanYiMicroHei[] = "WenQuanYi Micro Hei";
static const char kFontNanumGothic[] = "NanumGothic";
static const char kFontSymbola[] = "Symbola";
static const char kFontNotoSansSymbols[] = "Noto Sans Symbols";
static const char kFontNotoSansSymbols2[] = "Noto Sans Symbols2";
void gfxPlatformGtk::GetCommonFallbackFonts(uint32_t aCh, Script aRunScript,
eFontPresentation aPresentation,
@ -352,6 +354,8 @@ void gfxPlatformGtk::GetCommonFallbackFonts(uint32_t aCh, Script aRunScript,
aFontList.AppendElement(kFontDejaVuSans);
aFontList.AppendElement(kFontFreeSans);
aFontList.AppendElement(kFontSymbola);
aFontList.AppendElement(kFontNotoSansSymbols);
aFontList.AppendElement(kFontNotoSansSymbols2);
// add fonts for CJK ranges
// xxx - this isn't really correct, should use the same CJK font ordering