зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
85e43fff8a
Коммит
469eb289ea
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче