buffer_diff_flags_t#

Added in version 1.5.0.

class buffer_diff_flags_t#

Flags from comparing two buffer_t's.

Buffer with different 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.

Fields#

class buffer_diff_flags_t
CLUSTER_MISMATCH#

Difference in glyph_info_t.cluster

CODEPOINT_MISMATCH#

Difference in glyph_info_t.codepoint

CONTENT_TYPE_MISMATCH#

Buffers with different buffer_content_type_t.

DOTTED_CIRCLE_PRESENT#

Dotted circle glyph is present in the reference buffer.

EQUAL#

Equal buffers.

GLYPH_FLAGS_MISMATCH#

Difference in glyph_flags_t.

LENGTH_MISMATCH#

Buffers with differing length.

NOTDEF_PRESENT#

.notdef glyph is present in the reference buffer.

POSITION_MISMATCH#

Difference in glyph_position_t.