Constants

ANALYSIS_FLAG_CENTERED_BASELINE = 1

Whether the segment should be shifted to center around the baseline.

This is mainly used in vertical writing directions.

ANALYSIS_FLAG_IS_ELLIPSIS = 2

Whether this run holds ellipsized text.

ANALYSIS_FLAG_NEED_HYPHEN = 4

Whether to add a hyphen at the end of the run during shaping.

ATTR_INDEX_FROM_TEXT_BEGINNING = 0

Value for start_index in PangoAttribute that indicates the beginning of the text.

ATTR_INDEX_TO_TEXT_END = 4294967295

Value for end_index in PangoAttribute that indicates the end of the text.

GLYPH_EMPTY = 268435455

A PangoGlyph value that indicates a zero-width empty glpyh.

This is useful for example in shaper modules, to use as the glyph for various zero-width Unicode characters (those passing is_zero_width).

GLYPH_INVALID_INPUT = 4294967295

A PangoGlyph value for invalid input.

PangoLayout produces one such glyph per invalid input UTF-8 byte and such a glyph is rendered as a crossed box.

Note that this value is defined such that it has the GLYPH_UNKNOWN_FLAG set.

GLYPH_UNKNOWN_FLAG = 268435456

Flag used in PangoGlyph to turn a gunichar value of a valid Unicode character into an unknown-character glyph for that gunichar.

Such unknown-character glyphs may be rendered as a ‘hex box’.

SCALE = 1024

The scale between dimensions used for Pango distances and device units.

The definition of device units is dependent on the output device; it will typically be pixels for a screen, and points for a printer. SCALE is currently 1024, but this may be changed in the future.

When setting font sizes, device units are always considered to be points (as in “12 point font”), rather than pixels.

VERSION_MAJOR = 1

The major component of the version of Pango available at compile-time.

VERSION_MICRO = 2

The micro component of the version of Pango available at compile-time.

VERSION_MINOR = 52

The minor component of the version of Pango available at compile-time.

VERSION_STRING = 1.52.2

A string literal containing the version of Pango available at compile-time.