Bug 1659313 - Use the Mathematics font preference during fallback for characters from Unicode math-symbols blocks. r=fredw

Differential Revision: https://phabricator.services.mozilla.com/D87192
This commit is contained in:
Jonathan Kew 2020-08-16 18:25:07 +00:00
Родитель 85e43fff8a
Коммит 469eb289ea
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -1761,6 +1761,12 @@ eFontPrefLang gfxPlatformFontList::GetFontPrefLangFor(uint32_t aCh) {
case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F:
case UBLOCK_KANA_EXTENDED_A:
return eFontPrefLang_CJKSet;
case UBLOCK_MATHEMATICAL_OPERATORS:
case UBLOCK_MATHEMATICAL_ALPHANUMERIC_SYMBOLS:
case UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A:
case UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B:
case UBLOCK_SUPPLEMENTAL_MATHEMATICAL_OPERATORS:
return eFontPrefLang_Mathematics;
default:
return eFontPrefLang_Others;
}