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/width is specified.

WIDTH = 16

Font width is specified.

This is an alias for [enum`Pango`.FontMask.STRETCH].

1.58

STYLE = 2

the font style is specified.

FEATURES = 256

OpenType font features are specified.

New in version 1.56.

SIZE = 32

the font size is specified.

VARIANT = 4

the font variant is specified.

COLOR = 512

Font color is specified.

New in version 1.57.

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.RenderComponent(value)

Bases: GObject.GFlags

Flags that specify which components of a layout to include in renderer output.

This is more or less parallel to the [enum`Pango`.RenderPart] enum, but allows separating plain and color glyphs, and specifying more than one component.

New in version 1.58.

NONE = 0

No components

STRIKETHROUGH = 16

Strikethrough lines of the layout

PLAIN_GLYPH = 2

The plain glyphs of the layout

OVERLINE = 32

Overlines of the layout

COLOR_GLYPH = 4

The color glyphs of the layout

BACKGROUND = 8

Background of the layout

UNDERLINE = 8

Underlines of the layout

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