pango.types
D types for pango1 library
Types 37
Type of a function that can duplicate user data for an attribute.
Returns
Type of a function filtering a list of attributes.
Parameters
attribute | a Pango attribute |
Returns
filtering, false otherwise.
Callback used when enumerating fonts in a fontset.
See [pango.fontset.Fontset.foreach_].
Parameters
fontset | a [pango.fontset.Fontset] |
font | a font from fontset |
Returns
Variables 13
ANALYSIS_FLAG_CENTERED_BASELINE = 1Whether the segment should be shifted to center around the baseline.
This is mainly used in vertical writing directions.
ANALYSIS_FLAG_IS_ELLIPSIS = 2Whether this run holds ellipsized text.
ANALYSIS_FLAG_NEED_HYPHEN = 4Whether to add a hyphen at the end of the run during shaping.
ATTR_INDEX_FROM_TEXT_BEGINNING = 0Value for @start_index in [pango.attribute.Attribute] that indicates the beginning of the text.
ATTR_INDEX_TO_TEXT_END = 4294967295Value for @end_index in [pango.attribute.Attribute] that indicates the end of the text.
GLYPH_EMPTY = 268435455A 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 func@is_zero_width).
GLYPH_INVALID_INPUT = 4294967295A PangoGlyph value for invalid input.
[pango.layout.Layout] 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 [pango.types.GLYPH_UNKNOWN_FLAG] set.
GLYPH_UNKNOWN_FLAG = 268435456Flag 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 = 1024The 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.types.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 = 1The major component of the version of Pango available at compile-time.
VERSION_MICRO = 1The micro component of the version of Pango available at compile-time.
VERSION_MINOR = 52The minor component of the version of Pango available at compile-time.
VERSION_STRING = "1.52.1"A string literal containing the version of Pango available at compile-time.