pango.types

D types for pango1 library

Types 37

aliasBaselineShift = PangoBaselineShift
aliasFontScale = PangoFontScale
aliasGravity = PangoGravity
aliasGravityHint = PangoGravityHint
aliasOverline = PangoOverline
aliasStretch = PangoStretch
aliasStyle = PangoStyle
aliasTextTransform = PangoTextTransform
aliasUnderline = PangoUnderline
aliasVariant = PangoVariant
aliasWeight = PangoWeight
aliasAttrDataCopyFunc = void * delegate()

Type of a function that can duplicate user data for an attribute.

Returns

new copy of user_data.
aliasAttrFilterFunc = bool delegate(pango.attribute.Attribute attribute)

Type of a function filtering a list of attributes.

Parameters

attributea Pango attribute

Returns

true if the attribute should be selected for

filtering, false otherwise.

aliasFontsetForeachFunc = bool delegate(pango.fontset.Fontset fontset, pango.font.Font font)

Callback used when enumerating fonts in a fontset.

See [pango.fontset.Fontset.foreach_].

Parameters

fontseta [pango.fontset.Fontset]
fonta font from fontset

Returns

if true, stop iteration and return immediately.

Variables 13

enumvarANALYSIS_FLAG_CENTERED_BASELINE = 1

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

This is mainly used in vertical writing directions.

enumvarANALYSIS_FLAG_IS_ELLIPSIS = 2

Whether this run holds ellipsized text.

enumvarANALYSIS_FLAG_NEED_HYPHEN = 4

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

enumvarATTR_INDEX_FROM_TEXT_BEGINNING = 0

Value for @start_index in [pango.attribute.Attribute] that indicates the beginning of the text.

enumvarATTR_INDEX_TO_TEXT_END = 4294967295

Value for @end_index in [pango.attribute.Attribute] that indicates the end of the text.

enumvarGLYPH_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 func@is_zero_width).

enumvarGLYPH_INVALID_INPUT = 4294967295

A 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.

enumvarGLYPH_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'.

enumvarSCALE = 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.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.

enumvarVERSION_MAJOR = 1

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

enumvarVERSION_MICRO = 1

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

enumvarVERSION_MINOR = 52

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

enumvarVERSION_STRING = "1.52.1"

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