Fix GSUB lookuptype 1 subtype 1 delta wrapping
This commit is contained in:
parent
5857720cd3
commit
52ebdff49d
|
@ -47,7 +47,9 @@ struct SingleSubstFormat1
|
||||||
if (likely (index == NOT_COVERED))
|
if (likely (index == NOT_COVERED))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
glyph_id += deltaGlyphID;
|
/* According to the Adobe Annotated OpenType Suite, result is always
|
||||||
|
* limited to 16bit. */
|
||||||
|
glyph_id = (glyph_id + deltaGlyphID) & 0xFFFF;
|
||||||
c->replace_glyph (glyph_id);
|
c->replace_glyph (glyph_id);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue