Flags

Details

class HarfBuzz.buffer_diff_flags_t(value)

Bases: GObject.GFlags

EQUAL = 0
CONTENT_TYPE_MISMATCH = 1
POSITION_MISMATCH = 128
CODEPOINT_MISMATCH = 16
LENGTH_MISMATCH = 2
CLUSTER_MISMATCH = 32
NOTDEF_PRESENT = 4
GLYPH_FLAGS_MISMATCH = 64
DOTTED_CIRCLE_PRESENT = 8
class HarfBuzz.buffer_flags_t(value)

Bases: GObject.GFlags

New in version 0.9.20.

DEFAULT = 0

the default buffer flag.

BOT = 1

flag indicating that special handling of the beginning of text paragraph can be applied to this buffer. Should usually be set, unless you are passing to the buffer only part of the text without the full context.

DO_NOT_INSERT_DOTTED_CIRCLE = 16

flag indicating that a dotted circle should not be inserted in the rendering of incorrect character sequences (such at <0905 093E>).

New in version 2.4.

EOT = 2

flag indicating that special handling of the end of text paragraph can be applied to this buffer, similar to HarfBuzz.buffer_flags_t.BOT.

PRESERVE_DEFAULT_IGNORABLES = 4

flag indication that character with Default_Ignorable Unicode property should use the corresponding glyph from the font, instead of hiding them (done by replacing them with the space glyph and zeroing the advance width.) This flag takes precedence over HarfBuzz.buffer_flags_t.REMOVE_DEFAULT_IGNORABLES.

REMOVE_DEFAULT_IGNORABLES = 8

flag indication that character with Default_Ignorable Unicode property should be removed from glyph string instead of hiding them (done by replacing them with the space glyph and zeroing the advance width.) HarfBuzz.buffer_flags_t.PRESERVE_DEFAULT_IGNORABLES takes precedence over this flag.

New in version 1.8.0.

class HarfBuzz.buffer_serialize_flags_t(value)

Bases: GObject.GFlags

Flags that control what glyph information are serialized in HarfBuzz.buffer_serialize_glyphs().

New in version 0.9.20.

DEFAULT = 0

serialize glyph names, clusters and positions.

NO_CLUSTERS = 1

do not serialize glyph cluster.

GLYPH_FLAGS = 16

serialize glyph flags.

New in version 1.5.0.

NO_POSITIONS = 2

do not serialize glyph position information.

NO_ADVANCES = 32

do not serialize glyph advances, glyph offsets will reflect absolute glyph positions.

New in version 1.8.0.

NO_GLYPH_NAMES = 4

do no serialize glyph name.

GLYPH_EXTENTS = 8

serialize glyph extents.

class HarfBuzz.glyph_flags_t(value)

Bases: GObject.GFlags

New in version 1.5.0.

DEFINED = 1

All the currently defined flags.

UNSAFE_TO_BREAK = 1

Indicates that if input text is broken at the beginning of the cluster this glyph is part of, then both sides need to be re-shaped, as the result might be different. On the flip side, it means that when this flag is not present, then it’s safe to break the glyph-run at the beginning of this cluster, and the two sides represent the exact same result one would get if breaking input text at the beginning of this cluster and shaping the two sides separately. This can be used to optimize paragraph layout, by avoiding re-shaping of each line after line-breaking, or limiting the reshaping to a small piece around the breaking point only.

class HarfBuzz.ot_color_palette_flags_t(value)

Bases: GObject.GFlags

New in version 2.1.0.

DEFAULT = 0

Default indicating that there is nothing special to note about a color palette.

USABLE_WITH_LIGHT_BACKGROUND = 1

Flag indicating that the color palette is appropriate to use when displaying the font on a light background such as white.

USABLE_WITH_DARK_BACKGROUND = 2

Flag indicating that the color palette is appropriate to use when displaying the font on a dark background such as black.

class HarfBuzz.ot_math_glyph_part_flags_t(value)

Bases: GObject.GFlags

Flags for math glyph parts.

New in version 1.3.3.

EXTENDER = 1
class HarfBuzz.ot_var_axis_flags_t(value)

Bases: GObject.GFlags

New in version 2.2.0.

HIDDEN = 1

The axis should not be exposed directly in user interfaces.