From 7bf1baf33f280cba7f9d499526ac6ca653bf9fa5 Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Mon, 29 May 2017 20:24:48 -0700 Subject: [PATCH] #402: M1360309 --- gfx/thebes/gfxMacPlatformFontList.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gfx/thebes/gfxMacPlatformFontList.mm b/gfx/thebes/gfxMacPlatformFontList.mm index 96d8c7512..e8c46f409 100644 --- a/gfx/thebes/gfxMacPlatformFontList.mm +++ b/gfx/thebes/gfxMacPlatformFontList.mm @@ -223,6 +223,16 @@ if (!mIsDataUserFont || mIsLocalUserFont) { charmap->ClearRange(sr->rangeStart, sr->rangeEnd); } } + + // Bug 1360309: several of Apple's Chinese fonts have spurious blank + // glyphs for obscure Tibetan codepoints. Blacklist these so that font + // fallback will not use them. + // (It is not likely to encounter these on 10.4 or 10.5.) + if (mRequiresAAT && (FamilyName().EqualsLiteral("Songti SC") || + FamilyName().EqualsLiteral("Songti TC") || + FamilyName().EqualsLiteral("STSong"))) { + charmap->ClearRange(0x0f8c, 0x0f8f); + } } mHasCmapTable = NS_SUCCEEDED(rv);