### Enumeration

# Pango AttrType

#### Declaration

    enum Pango.AttrType

#### Description [src]

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.

#### Members

`PANGO_ATTR_INVALID`

  Does not happen.

  - Value: `0`
  - Available since: 1.0
`PANGO_ATTR_LANGUAGE`

  Language (`PangoAttrLanguage`).

  - Value: `1`
  - Available since: 1.0
`PANGO_ATTR_FAMILY`

  Font family name list (`PangoAttrString`).

  - Value: `2`
  - Available since: 1.0
`PANGO_ATTR_STYLE`

  Font slant style (`PangoAttrInt`).

  - Value: `3`
  - Available since: 1.0
`PANGO_ATTR_WEIGHT`

  Font weight (`PangoAttrInt`).

  - Value: `4`
  - Available since: 1.0
`PANGO_ATTR_VARIANT`

  Font variant (normal or small caps) (`PangoAttrInt`).

  - Value: `5`
  - Available since: 1.0
`PANGO_ATTR_STRETCH`

  Font stretch (`PangoAttrInt`).

  - Value: `6`
  - Available since: 1.0
`PANGO_ATTR_SIZE`

  Font size in points scaled by `PANGO_SCALE` (`PangoAttrInt`).

  - Value: `7`
  - Available since: 1.0
`PANGO_ATTR_FONT_DESC`

  Font description (`PangoAttrFontDesc`).

  - Value: `8`
  - Available since: 1.0
`PANGO_ATTR_FOREGROUND`

  Foreground color (`PangoAttrColor`).

  - Value: `9`
  - Available since: 1.0
`PANGO_ATTR_BACKGROUND`

  Background color (`PangoAttrColor`).

  - Value: `10`
  - Available since: 1.0
`PANGO_ATTR_UNDERLINE`

  Whether the text has an underline (`PangoAttrInt`).

  - Value: `11`
  - Available since: 1.0
`PANGO_ATTR_STRIKETHROUGH`

  Whether the text is struck-through (`PangoAttrInt`).

  - Value: `12`
  - Available since: 1.0
`PANGO_ATTR_RISE`

  Baseline displacement (`PangoAttrInt`).

  - Value: `13`
  - Available since: 1.0
`PANGO_ATTR_SHAPE`

  Shape (`PangoAttrShape`).

  - Value: `14`
  - Available since: 1.0
`PANGO_ATTR_SCALE`

  Font size scale factor (`PangoAttrFloat`).

  - Value: `15`
  - Available since: 1.0
`PANGO_ATTR_FALLBACK`

  Whether fallback is enabled (`PangoAttrInt`).

  - Value: `16`
  - Available since: 1.0
`PANGO_ATTR_LETTER_SPACING`

  Letter spacing (`PangoAttrInt`).

  - Value: `17`
  - Available since: 1.0
`PANGO_ATTR_UNDERLINE_COLOR`

  Underline color (`PangoAttrColor`).

  - Value: `18`
  - Available since: 1.0
`PANGO_ATTR_STRIKETHROUGH_COLOR`

  Strikethrough color (`PangoAttrColor`).

  - Value: `19`
  - Available since: 1.0
`PANGO_ATTR_ABSOLUTE_SIZE`

  Font size in pixels scaled by `PANGO_SCALE` (`PangoAttrInt`).

  - Value: `20`
  - Available since: 1.0
`PANGO_ATTR_GRAVITY`

  Base text gravity (`PangoAttrInt`).

  - Value: `21`
  - Available since: 1.0
`PANGO_ATTR_GRAVITY_HINT`

  Gravity hint (`PangoAttrInt`).

  - Value: `22`
  - Available since: 1.0
`PANGO_ATTR_FONT_FEATURES`

  OpenType font features (`PangoAttrFontFeatures`). Since 1.38.

  - Value: `23`
  - Available since: 1.0
`PANGO_ATTR_FOREGROUND_ALPHA`

  Foreground alpha (`PangoAttrInt`). Since 1.38.

  - Value: `24`
  - Available since: 1.0
`PANGO_ATTR_BACKGROUND_ALPHA`

  Background alpha (`PangoAttrInt`). Since 1.38.

  - Value: `25`
  - Available since: 1.0
`PANGO_ATTR_ALLOW_BREAKS`

  Whether breaks are allowed (`PangoAttrInt`). Since 1.44.

  - Value: `26`
  - Available since: 1.0
`PANGO_ATTR_SHOW`

  How to render invisible characters (`PangoAttrInt`). Since 1.44.

  - Value: `27`
  - Available since: 1.0
`PANGO_ATTR_INSERT_HYPHENS`

  Whether to insert hyphens at intra-word line breaks (`PangoAttrInt`). Since 1.44.

  - Value: `28`
  - Available since: 1.0
`PANGO_ATTR_OVERLINE`

  Whether the text has an overline (`PangoAttrInt`). Since 1.46.

  - Value: `29`
  - Available since: 1.0
`PANGO_ATTR_OVERLINE_COLOR`

  Overline color (`PangoAttrColor`). Since 1.46.

  - Value: `30`
  - Available since: 1.0
`PANGO_ATTR_LINE_HEIGHT`

  Line height factor (`PangoAttrFloat`). Since: 1.50.

  - Value: `31`
  - Available since: 1.0
`PANGO_ATTR_ABSOLUTE_LINE_HEIGHT`

  Line height (`PangoAttrInt`). Since: 1.50.

  - Value: `32`
  - Available since: 1.0
`PANGO_ATTR_TEXT_TRANSFORM`

  No description available.

  - Value: `33`
  - Available since: 1.0
`PANGO_ATTR_WORD`

  Override segmentation to classify the range of the attribute as a single word (`PangoAttrInt`). Since 1.50.

  - Value: `34`
  - Available since: 1.0
`PANGO_ATTR_SENTENCE`

  Override segmentation to classify the range of the attribute as a single sentence (`PangoAttrInt`). Since 1.50.

  - Value: `35`
  - Available since: 1.0
`PANGO_ATTR_BASELINE_SHIFT`

  Baseline displacement (`PangoAttrInt`). Since 1.50.

  - Value: `36`
  - Available since: 1.0
`PANGO_ATTR_FONT_SCALE`

  Font-relative size change (`PangoAttrInt`). Since 1.50.

  - Value: `37`
  - Available since: 1.0

#### Type functions

###### pango_attr_type_get_name

Fetches the attribute type name.

since: 1.22

###### pango_attr_type_register

Allocate a new attribute type ID.