### Enumeration

# PangoAttrType

#### 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`
  - Nickname: `invalid`
  - Available since: 1.0
`PANGO_ATTR_LANGUAGE`

  Language (`PangoAttrLanguage`)

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

  Font family name list (`PangoAttrString`)

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

  Font slant style (`PangoAttrInt`)

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

  Font weight (`PangoAttrInt`)

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

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

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

  Font stretch (`PangoAttrInt`)

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

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

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

  Font description (`PangoAttrFontDesc`)

  - Value: `8`
  - Nickname: `font-desc`
  - Available since: 1.0
`PANGO_ATTR_FOREGROUND`

  Foreground color (`PangoAttrColor`)

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

  Background color (`PangoAttrColor`)

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

  Whether the text has an underline (`PangoAttrInt`)

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

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

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

  Baseline displacement (`PangoAttrInt`)

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

  Shape (`PangoAttrShape`)

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

  Font size scale factor (`PangoAttrFloat`)

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

  Whether fallback is enabled (`PangoAttrInt`)

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

  Letter spacing (`PangoAttrInt`)

  - Value: `17`
  - Nickname: `letter-spacing`
  - Available since: 1.0
`PANGO_ATTR_UNDERLINE_COLOR`

  Underline color (`PangoAttrColor`)

  - Value: `18`
  - Nickname: `underline-color`
  - Available since: 1.0
`PANGO_ATTR_STRIKETHROUGH_COLOR`

  Strikethrough color (`PangoAttrColor`)

  - Value: `19`
  - Nickname: `strikethrough-color`
  - Available since: 1.0
`PANGO_ATTR_ABSOLUTE_SIZE`

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

  - Value: `20`
  - Nickname: `absolute-size`
  - Available since: 1.0
`PANGO_ATTR_GRAVITY`

  Base text gravity (`PangoAttrInt`)

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

  Gravity hint (`PangoAttrInt`)

  - Value: `22`
  - Nickname: `gravity-hint`
  - Available since: 1.0
`PANGO_ATTR_FONT_FEATURES`

  OpenType font features (`PangoAttrFontFeatures`). Since 1.38

  - Value: `23`
  - Nickname: `font-features`
  - Available since: 1.0
`PANGO_ATTR_FOREGROUND_ALPHA`

  Foreground alpha (`PangoAttrInt`). Since 1.38

  - Value: `24`
  - Nickname: `foreground-alpha`
  - Available since: 1.0
`PANGO_ATTR_BACKGROUND_ALPHA`

  Background alpha (`PangoAttrInt`). Since 1.38

  - Value: `25`
  - Nickname: `background-alpha`
  - Available since: 1.0
`PANGO_ATTR_ALLOW_BREAKS`

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

  - Value: `26`
  - Nickname: `allow-breaks`
  - Available since: 1.0
`PANGO_ATTR_SHOW`

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

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

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

  - Value: `28`
  - Nickname: `insert-hyphens`
  - Available since: 1.0
`PANGO_ATTR_OVERLINE`

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

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

  Overline color (`PangoAttrColor`). Since 1.46

  - Value: `30`
  - Nickname: `overline-color`
  - Available since: 1.0
`PANGO_ATTR_LINE_HEIGHT`

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

  - Value: `31`
  - Nickname: `line-height`
  - Available since: 1.0
`PANGO_ATTR_ABSOLUTE_LINE_HEIGHT`

  Line height (`PangoAttrInt`). Since: 1.50

  - Value: `32`
  - Nickname: `absolute-line-height`
  - Available since: 1.0
`PANGO_ATTR_TEXT_TRANSFORM`
  No description available.
  - Value: `33`
  - Nickname: `text-transform`
  - 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`
  - Nickname: `word`
  - 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`
  - Nickname: `sentence`
  - Available since: 1.0
`PANGO_ATTR_BASELINE_SHIFT`

  Baseline displacement (`PangoAttrInt`). Since 1.50

  - Value: `36`
  - Nickname: `baseline-shift`
  - Available since: 1.0
`PANGO_ATTR_FONT_SCALE`

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

  - Value: `37`
  - Nickname: `font-scale`
  - 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.