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_indexinPangoAttributethat indicates the beginning of the text.
- ATTR_INDEX_TO_TEXT_END = 4294967295#
Value for
end_indexinPangoAttributethat indicates the end of the text.
- GLYPH_EMPTY = 268435455#
A
PangoGlyphvalue 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
PangoGlyphvalue for invalid input.PangoLayoutproduces 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_FLAGset.
- GLYPH_UNKNOWN_FLAG = 268435456#
Flag used in
PangoGlyphto turn agunicharvalue of a valid Unicode character into an unknown-character glyph for thatgunichar.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.
SCALEis 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 = 3#
The micro component of the version of Pango available at compile-time.
- VERSION_MINOR = 56#
The minor component of the version of Pango available at compile-time.
- VERSION_STRING = 1.56.3#
A string literal containing the version of Pango available at compile-time.