Value | Meaning |
---|---|
EQUAL0 | equal buffers. |
CONTENT_TYPE_MISMATCH1 | buffers with different #hb_buffer_content_type_t. |
LENGTH_MISMATCH2 | buffers with differing length. |
NOTDEF_PRESENT4 | .notdef glyph is present in the reference buffer. |
DOTTED_CIRCLE_PRESENT8 | dotted circle glyph is present in the reference buffer. |
CODEPOINT_MISMATCH16 | difference in #hb_glyph_info_t.codepoint |
CLUSTER_MISMATCH32 | difference in #hb_glyph_info_t.cluster |
GLYPH_FLAGS_MISMATCH64 | difference in #hb_glyph_flags_t. |
POSITION_MISMATCH128 | difference in #hb_glyph_position_t. |
Flags from comparing two #hb_buffer_t's.
Buffer with different #hb_buffer_content_type_t cannot be meaningfully compared in any further detail.
For buffers with differing length, the per-glyph comparison is not attempted, though we do still scan reference buffer for dotted circle and .notdef glyphs.
If the buffers have the same length, we compare them glyph-by-glyph and report which aspect(s) of the glyph info/position are different.