Gjsify LogoGjsify Logo

The PangoAttrType distinguishes between different types of attributes.

Along with the predefined values, it is possible to allocate additional values for custom attributes using [funcAttrType.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 ([structPango.AttrInt]). Since: 1.50

ABSOLUTE_SIZE: number

font size in pixels scaled by %PANGO_SCALE ([structPango.AttrInt])

ALLOW_BREAKS: number

whether breaks are allowed ([structPango.AttrInt]). Since 1.44

BACKGROUND: number

background color ([structPango.AttrColor])

BACKGROUND_ALPHA: number

background alpha ([structPango.AttrInt]). Since 1.38

BASELINE_SHIFT: number

baseline displacement ([structPango.AttrInt]). Since 1.50

FALLBACK: number

whether fallback is enabled ([structPango.AttrInt])

FAMILY: number

font family name list ([structPango.AttrString])

FONT_DESC: number

font description ([structPango.AttrFontDesc])

FONT_FEATURES: number

OpenType font features ([structPango.AttrFontFeatures]). Since 1.38

FONT_SCALE: number

font-relative size change ([structPango.AttrInt]). Since 1.50

FOREGROUND: number

foreground color ([structPango.AttrColor])

FOREGROUND_ALPHA: number

foreground alpha ([structPango.AttrInt]). Since 1.38

GRAVITY: number

base text gravity ([structPango.AttrInt])

GRAVITY_HINT: number

gravity hint ([structPango.AttrInt])

INSERT_HYPHENS: number

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

INVALID: number

does not happen

LANGUAGE: number

language ([structPango.AttrLanguage])

LETTER_SPACING: number

letter spacing ([structPangoAttrInt])

LINE_HEIGHT: number

line height factor ([structPango.AttrFloat]). Since: 1.50

OVERLINE: number

whether the text has an overline ([structPango.AttrInt]). Since 1.46

OVERLINE_COLOR: number

overline color ([structPango.AttrColor]). Since 1.46

RISE: number

baseline displacement ([structPango.AttrInt])

SCALE: number

font size scale factor ([structPango.AttrFloat])

SENTENCE: number

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

SHAPE: number

shape ([structPango.AttrShape])

SHOW: number

how to render invisible characters ([structPango.AttrInt]). Since 1.44

SIZE: number

font size in points scaled by %PANGO_SCALE ([structPango.AttrInt])

STRETCH: number

font stretch ([structPango.AttrInt])

STRIKETHROUGH: number

whether the text is struck-through ([structPango.AttrInt])

STRIKETHROUGH_COLOR: number

strikethrough color ([structPango.AttrColor])

STYLE: number

font slant style ([structPango.AttrInt])

TEXT_TRANSFORM: number
UNDERLINE: number

whether the text has an underline ([structPango.AttrInt])

UNDERLINE_COLOR: number

underline color ([structPango.AttrColor])

VARIANT: number

font variant (normal or small caps) ([structPango.AttrInt])

WEIGHT: number

font weight ([structPango.AttrInt])

WORD: number

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

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method