提交 102af615 编写于 作者: B Behdad Esfahbod

[aat] Start adding support for DELETED-GLYPH

https://github.com/harfbuzz/harfbuzz/issues/1302
上级 955aa56b
......@@ -362,6 +362,7 @@ template <>
}
namespace AAT {
enum { DELETED_GLYPH = 0xFFFF };
/*
* Extended State Table
......@@ -424,6 +425,7 @@ struct StateTable
inline unsigned int get_class (hb_codepoint_t glyph_id, unsigned int num_glyphs) const
{
if (unlikely (glyph_id == DELETED_GLYPH)) return CLASS_DELETED_GLYPH;
const HBUINT16 *v = (this+classTable).get_value (glyph_id, num_glyphs);
return v ? (unsigned) *v : (unsigned) CLASS_OUT_OF_BOUNDS;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册