[aat] Start adding support for DELETED-GLYPH

https://github.com/harfbuzz/harfbuzz/issues/1302
This commit is contained in:
Behdad Esfahbod 2018-10-25 17:29:32 -07:00
parent 955aa56b11
commit 102af615f1
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}