提交 52ebdff4 编写于 作者: B Behdad Esfahbod

Fix GSUB lookuptype 1 subtype 1 delta wrapping

上级 5857720c
...@@ -47,7 +47,9 @@ struct SingleSubstFormat1 ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册