Constants¶
Details¶
- Pango.ANALYSIS_FLAG_CENTERED_BASELINE = 1¶
Whether the segment should be shifted to center around the baseline.
This is mainly used in vertical writing directions.
New in version 1.16.
- Pango.ANALYSIS_FLAG_IS_ELLIPSIS = 2¶
Whether this run holds ellipsized text.
New in version 1.36.7.
- Pango.ANALYSIS_FLAG_NEED_HYPHEN = 4¶
Whether to add a hyphen at the end of the run during shaping.
New in version 1.44.
- Pango.ATTR_INDEX_FROM_TEXT_BEGINNING = 0¶
Value for start_index in
PangoAttributethat indicates the beginning of the text.New in version 1.24.
- Pango.ATTR_INDEX_TO_TEXT_END = 4294967295¶
Value for end_index in
PangoAttributethat indicates the end of the text.New in version 1.24.
- Pango.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 [func`is_zero_width`]).
- Pango.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
Pango.GLYPH_UNKNOWN_FLAGset.New in version 1.20.
- Pango.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’.
- Pango.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.
Pango.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.
- Pango.VERSION_MAJOR = 1¶
The major component of the version of Pango available at compile-time.
- Pango.VERSION_MICRO = 3¶
The micro component of the version of Pango available at compile-time.
- Pango.VERSION_MINOR = 56¶
The minor component of the version of Pango available at compile-time.
- Pango.VERSION_STRING = '1.56.3'¶
A string literal containing the version of Pango available at compile-time.