[aat] Start adding support for DELETED-GLYPH
https://github.com/harfbuzz/harfbuzz/issues/1302
This commit is contained in:
parent
955aa56b11
commit
102af615f1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user