Enumeration (GI Enum)

Pango-1.0PangoAttrType

The Pango.AttrType distinguishes between different types of attributes.

Along with the predefined values, it is possible to allocate additional values for custom attributes using AttrType.register. The predefined values are given below. The type of structure used to store the attribute is listed in parentheses after the description.

Index

Enumeration Members

ABSOLUTE_LINE_HEIGHT: number

line height (Pango.AttrInt). Since: 1.50

ABSOLUTE_SIZE: number

font size in pixels scaled by PANGO_SCALE (Pango.AttrInt)

ALLOW_BREAKS: number

whether breaks are allowed (Pango.AttrInt). Since 1.44

BACKGROUND: number

background color (Pango.AttrColor)

BACKGROUND_ALPHA: number

background alpha (Pango.AttrInt). Since 1.38

BASELINE_SHIFT: number

baseline displacement (Pango.AttrInt). Since 1.50

FALLBACK: number

whether fallback is enabled (Pango.AttrInt)

FAMILY: number

font family name list (Pango.AttrString)

FONT_DESC: number

font description (Pango.AttrFontDesc)

FONT_FEATURES: number

OpenType font features (Pango.AttrFontFeatures). Since 1.38

FONT_SCALE: number

font-relative size change (Pango.AttrInt). Since 1.50

FOREGROUND: number

foreground color (Pango.AttrColor)

FOREGROUND_ALPHA: number

foreground alpha (Pango.AttrInt). Since 1.38

GRAVITY: number

base text gravity (Pango.AttrInt)

GRAVITY_HINT: number

gravity hint (Pango.AttrInt)

INSERT_HYPHENS: number

whether to insert hyphens at intra-word line breaks (Pango.AttrInt). Since 1.44

INVALID: number

does not happen

LANGUAGE: number

language (Pango.AttrLanguage)

LETTER_SPACING: number

letter spacing (PangoAttrInt)

LINE_HEIGHT: number

line height factor (Pango.AttrFloat). Since: 1.50

OVERLINE: number

whether the text has an overline (Pango.AttrInt). Since 1.46

OVERLINE_COLOR: number

overline color (Pango.AttrColor). Since 1.46

RISE: number

baseline displacement (Pango.AttrInt)

SCALE: number

font size scale factor (Pango.AttrFloat)

SENTENCE: number

override segmentation to classify the range of the attribute as a single sentence (Pango.AttrInt). Since 1.50

SHAPE: number
SHOW: number

how to render invisible characters (Pango.AttrInt). Since 1.44

SIZE: number

font size in points scaled by PANGO_SCALE (Pango.AttrInt)

STRETCH: number

font stretch (Pango.AttrInt)

STRIKETHROUGH: number

whether the text is struck-through (Pango.AttrInt)

STRIKETHROUGH_COLOR: number

strikethrough color (Pango.AttrColor)

STYLE: number

font slant style (Pango.AttrInt)

TEXT_TRANSFORM: number
UNDERLINE: number

whether the text has an underline (Pango.AttrInt)

UNDERLINE_COLOR: number

underline color (Pango.AttrColor)

VARIANT: number

font variant (normal or small caps) (Pango.AttrInt)

WEIGHT: number

font weight (Pango.AttrInt)

WORD: number

override segmentation to classify the range of the attribute as a single word (Pango.AttrInt). Since 1.50