The PangoAttrType
distinguishes between different types of attributes. Along with the
predefined values, it is possible to allocate additional values
for custom attributes using pango_attr_type_register(). The predefined
values are given below. The type of structure used to store the
attribute is listed in parentheses after the description.
PANGO_ATTR_INVALID
does not happen
PANGO_ATTR_LANGUAGE
language (PangoAttrLanguage)
PANGO_ATTR_FAMILY
font family name list (PangoAttrString)
PANGO_ATTR_STYLE
font slant style (PangoAttrInt)
PANGO_ATTR_WEIGHT
font weight (PangoAttrInt)
PANGO_ATTR_VARIANT
font variant (normal or small caps) (PangoAttrInt)
PANGO_ATTR_STRETCH
font stretch (PangoAttrInt)
PANGO_ATTR_SIZE
font size in points scaled by PANGO_SCALE (PangoAttrInt)
PANGO_ATTR_FONT_DESC
font description (PangoAttrFontDesc)
PANGO_ATTR_FOREGROUND
foreground color (PangoAttrColor)
PANGO_ATTR_BACKGROUND
background color (PangoAttrColor)
PANGO_ATTR_UNDERLINE
whether the text has an underline (PangoAttrInt)
PANGO_ATTR_STRIKETHROUGH
whether the text is struck-through (PangoAttrInt)
PANGO_ATTR_RISE
baseline displacement (PangoAttrInt)
PANGO_ATTR_SHAPE
shape (PangoAttrShape)
PANGO_ATTR_SCALE
font size scale factor (PangoAttrFloat)
PANGO_ATTR_FALLBACK
whether fallback is enabled (PangoAttrInt)
PANGO_ATTR_LETTER_SPACING
letter spacing (PangoAttrInt)
PANGO_ATTR_UNDERLINE_COLOR
underline color (PangoAttrColor)
PANGO_ATTR_STRIKETHROUGH_COLOR
strikethrough color (PangoAttrColor)
PANGO_ATTR_ABSOLUTE_SIZE
font size in pixels scaled by PANGO_SCALE (PangoAttrInt)
PANGO_ATTR_GRAVITY
base text gravity (PangoAttrInt)
PANGO_ATTR_GRAVITY_HINT
gravity hint (PangoAttrInt)
The PangoAttrType distinguishes between different types of attributes. Along with the predefined values, it is possible to allocate additional values for custom attributes using pango_attr_type_register(). The predefined values are given below. The type of structure used to store the attribute is listed in parentheses after the description. PANGO_ATTR_INVALID does not happen PANGO_ATTR_LANGUAGE language (PangoAttrLanguage) PANGO_ATTR_FAMILY font family name list (PangoAttrString) PANGO_ATTR_STYLE font slant style (PangoAttrInt) PANGO_ATTR_WEIGHT font weight (PangoAttrInt) PANGO_ATTR_VARIANT font variant (normal or small caps) (PangoAttrInt) PANGO_ATTR_STRETCH font stretch (PangoAttrInt) PANGO_ATTR_SIZE font size in points scaled by PANGO_SCALE (PangoAttrInt) PANGO_ATTR_FONT_DESC font description (PangoAttrFontDesc) PANGO_ATTR_FOREGROUND foreground color (PangoAttrColor) PANGO_ATTR_BACKGROUND background color (PangoAttrColor) PANGO_ATTR_UNDERLINE whether the text has an underline (PangoAttrInt) PANGO_ATTR_STRIKETHROUGH whether the text is struck-through (PangoAttrInt) PANGO_ATTR_RISE baseline displacement (PangoAttrInt) PANGO_ATTR_SHAPE shape (PangoAttrShape) PANGO_ATTR_SCALE font size scale factor (PangoAttrFloat) PANGO_ATTR_FALLBACK whether fallback is enabled (PangoAttrInt) PANGO_ATTR_LETTER_SPACING letter spacing (PangoAttrInt) PANGO_ATTR_UNDERLINE_COLOR underline color (PangoAttrColor) PANGO_ATTR_STRIKETHROUGH_COLOR strikethrough color (PangoAttrColor) PANGO_ATTR_ABSOLUTE_SIZE font size in pixels scaled by PANGO_SCALE (PangoAttrInt) PANGO_ATTR_GRAVITY base text gravity (PangoAttrInt) PANGO_ATTR_GRAVITY_HINT gravity hint (PangoAttrInt)