mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
bug 1063931 - support cmap subtable format 10 in gfxHarfBuzzShaper::GetGlyph. r=jdaggett
This commit is contained in:
parent
90b66de143
commit
123708b9c7
@ -107,6 +107,10 @@ gfxHarfBuzzShaper::GetGlyph(hb_codepoint_t unicode,
|
||||
compat);
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
gid = gfxFontUtils::MapCharToGlyphFormat10(data + mSubtableOffset,
|
||||
compat);
|
||||
break;
|
||||
case 12:
|
||||
gid = gfxFontUtils::MapCharToGlyphFormat12(data + mSubtableOffset,
|
||||
compat);
|
||||
@ -125,6 +129,10 @@ gfxHarfBuzzShaper::GetGlyph(hb_codepoint_t unicode,
|
||||
gfxFontUtils::MapCharToGlyphFormat4(data + mSubtableOffset,
|
||||
unicode) : 0;
|
||||
break;
|
||||
case 10:
|
||||
gid = gfxFontUtils::MapCharToGlyphFormat10(data + mSubtableOffset,
|
||||
unicode);
|
||||
break;
|
||||
case 12:
|
||||
gid = gfxFontUtils::MapCharToGlyphFormat12(data + mSubtableOffset,
|
||||
unicode);
|
||||
|
Loading…
Reference in New Issue
Block a user