commit f61551e7b5fe41d4e5bc34fd513f7a7c73e5daca
parent f1b8425e8a9bafd8585144bf24958c60123bc5eb
Author: André Bargull <andre.bargull@gmail.com>
Date: Tue, 25 Nov 2025 15:19:37 +0000
Bug 2000225 - Part 8: Handle new script codes. r=platform-i18n-reviewers,jfkthame
Treating `TRADITIONAL_HAN` similar to `TRADITIONAL_HAN_WITH_LATIN` is probably
the right choice.
Differential Revision: https://phabricator.services.mozilla.com/D273817
Diffstat:
3 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/gfx/thebes/gfxPlatformMac.cpp b/gfx/thebes/gfxPlatformMac.cpp
@@ -188,6 +188,7 @@ void gfxPlatformMac::GetCommonFallbackFonts(uint32_t aCh, Script aRunScript,
// in future if we get better at handling things like `lang=zh-Hant`, not
// just resolving based on the Unicode text.
case Script::TRADITIONAL_HAN:
+ case Script::TRADITIONAL_HAN_WITH_LATIN:
aFontList.AppendElement("Songti TC");
if (aCh > 0x10000) {
// macOS installations with MS Office may have these -ExtB fonts
@@ -656,6 +657,10 @@ void gfxPlatformMac::GetCommonFallbackFonts(uint32_t aCh, Script aRunScript,
case Script::SUNUWAR:
case Script::TODHRI:
case Script::TULU_TIGALARI:
+ case Script::BERIA_ERFE:
+ case Script::SIDETIC:
+ case Script::TAI_YO:
+ case Script::TOLONG_SIKI:
break;
}
diff --git a/gfx/thebes/gfxTextRun.h b/gfx/thebes/gfxTextRun.h
@@ -552,6 +552,7 @@ class gfxTextRun : public gfxShapedText {
case Script::KATAKANA_OR_HIRAGANA:
case Script::SIMPLIFIED_HAN:
case Script::TRADITIONAL_HAN:
+ case Script::TRADITIONAL_HAN_WITH_LATIN:
case Script::JAPANESE:
case Script::KOREAN:
case Script::HAN_WITH_BOPOMOFO:
diff --git a/gfx/thebes/gfxWindowsPlatform.cpp b/gfx/thebes/gfxWindowsPlatform.cpp
@@ -603,6 +603,7 @@ void gfxWindowsPlatform::GetCommonFallbackFonts(
// in future if we get better at handling things like `lang=zh-Hant`, not
// just resolving based on the Unicode text.
case Script::TRADITIONAL_HAN:
+ case Script::TRADITIONAL_HAN_WITH_LATIN:
aFontList.AppendElement("MingLiU");
if (aCh > 0xFFFF) {
aFontList.AppendElement("MingLiU-ExtB");
@@ -963,6 +964,7 @@ void gfxWindowsPlatform::GetCommonFallbackFonts(
case Script::AFAKA:
case Script::ANATOLIAN_HIEROGLYPHS:
+ case Script::BERIA_ERFE:
case Script::BLISSYMBOLS:
case Script::BOOK_PAHLAVI:
case Script::CHORASMIAN:
@@ -1002,14 +1004,17 @@ void gfxWindowsPlatform::GetCommonFallbackFonts(
case Script::OLD_UYGHUR:
case Script::RONGORONGO:
case Script::SARATI:
+ case Script::SIDETIC:
case Script::SIGNWRITING:
case Script::SOGDIAN:
case Script::SOYOMBO:
case Script::SUNUWAR:
+ case Script::TAI_YO:
case Script::TANGSA:
case Script::TANGUT:
case Script::TENGWAR:
case Script::TODHRI:
+ case Script::TOLONG_SIKI:
case Script::TOTO:
case Script::TULU_TIGALARI:
case Script::UNKNOWN: