Issue #1862 - Follow-up: Replace deprecated Harfbuzz functions with current ones.

Based on Mozilla bug 1500356.
This commit is contained in:
Job Bautista 2023-04-30 21:20:06 +08:00 committed by roytam1
commit 51426d1053
7 changed files with 73 additions and 78 deletions

View file

@ -484,7 +484,7 @@ FT2FontEntry::ReadCMAP(FontInfoData *aFontInfoData)
// check to see if the cmap includes complex script codepoints
if (charmap->TestRange(sr->rangeStart, sr->rangeEnd)) {
// We check for GSUB here, as GPOS alone would not be ok.
if (hasGSUB && SupportsScriptInGSUB(sr->tags)) {
if (hasGSUB && SupportsScriptInGSUB(sr->tags, sr->numTags)) {
continue;
}
charmap->ClearRange(sr->rangeStart, sr->rangeEnd);