mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1360309 - Work around some broken Apple fonts. r=jrmuizel
This commit is contained in:
parent
0b5ec8c1f2
commit
4c35432a3a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user