Flags

Details

class Pango.FontMask(value)

Bases: GObject.GFlags

The bits in a PangoFontMask correspond to the set fields in a PangoFontDescription.

FAMILY = 1

the font family is specified.

VARIATIONS = 128

OpenType font variations are specified

New in version 1.42.

STRETCH = 16

the font stretch is specified.

STYLE = 2

the font style is specified.

SIZE = 32

the font size is specified.

VARIANT = 4

the font variant is specified.

GRAVITY = 64

the font gravity is specified

New in version 1.16.

WEIGHT = 8

the font weight is specified.

class Pango.LayoutDeserializeFlags(value)

Bases: GObject.GFlags

Flags that influence the behavior of [func`Pango`.Layout.deserialize].

New members may be added to this enumeration over time.

New in version 1.50.

DEFAULT = 0

Default behavior

CONTEXT = 1

Apply context information from the serialization to the PangoContext

class Pango.LayoutSerializeFlags(value)

Bases: GObject.GFlags

Flags that influence the behavior of [method`Pango`.Layout.serialize].

New members may be added to this enumeration over time.

New in version 1.50.

DEFAULT = 0

Default behavior

CONTEXT = 1

Include context information

OUTPUT = 2

Include information about the formatted output

class Pango.ShapeFlags(value)

Bases: GObject.GFlags

Flags influencing the shaping process.

PangoShapeFlags can be passed to [func`Pango`.shape_with_flags].

New in version 1.44.

NONE = 0

Default value

ROUND_POSITIONS = 1

Round glyph positions and widths to whole device units This option should be set if the target renderer can’t do subpixel positioning of glyphs

class Pango.ShowFlags(value)

Bases: GObject.GFlags

These flags affect how Pango treats characters that are normally not visible in the output.

New in version 1.44.

NONE = 0

No special treatment for invisible characters

SPACES = 1

Render spaces, tabs and newlines visibly

LINE_BREAKS = 2

Render line breaks visibly

IGNORABLES = 4

Render default-ignorable Unicode characters visibly