Bug 1360309 - Work around some broken Apple fonts. r=jrmuizel

This commit is contained in:
Jonathan Kew 2017-05-03 09:03:18 +01:00
parent 0b5ec8c1f2
commit 4c35432a3a

View File

@ -216,6 +216,15 @@ MacOSFontEntry::ReadCMAP(FontInfoData *aFontInfoData)
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.
if (mRequiresAAT && (FamilyName().EqualsLiteral("Songti SC") ||
FamilyName().EqualsLiteral("Songti TC") ||
FamilyName().EqualsLiteral("STSong"))) {
charmap->ClearRange(0x0f8c, 0x0f8f);
}
}
mHasCmapTable = NS_SUCCEEDED(rv);