Package: pango

GEnum pango:attr-type

Declaration

(gobject:define-genum "PangoAttrType" attr-type
  (:export t
   :allow-undeclared-values t
   :type-initializer "pango_attr_type_get_type")
  (:invalid 0)
  (:language 1)
  (:family 2)
  (:style 3)
  (:weight 4)
  (:variant 5)
  (:stretch 6)
  (:size 7)
  (:font-desc 8)
  (:foreground 9)
  (:background 10)
  (:underline 11)
  (:strikethrough 12)
  (:rise 13)
  (:shape 14)
  (:scale 15)
  (:fallback 16)
  (:letter-spacing 17)
  (:underline-color 18)
  (:strikethrough-color 19)
  (:absolute-size 20)
  (:gravity 21)
  (:gravity-hint 22)
  (:font-features 23)
  (:foreground-alpha 24)
  (:background-alpha 25)
  (:allow-breaks 26)
  (:show 27)
  (:insert-hyphens 28)
  (:overline 29)
  (:overline-color 30)
  (:line-height 31)
  (:absolute-line-height 32)
  (:text-transform 33)
  (:word 34)
  (:sentence 35)
  (:baseline-shift 36)
  (:font-scale 37))  

Values

:invalid
Does not happen.
:language
Language.
:family
Font family name list.
:style
Font slant style.
:weight
Font weight.
:variant
Font variant, normal or small caps.
:stretch
Font stretch.
:size
Font size in points scaled by the pango:+scale+ value.
:font-desc
Font description.
:foreground
Foreground color.
:background
Background color.
:underline
Whether the text has an underline.
:strikethrough
Whether the text is struck-through.
:rise
Baseline displacement.
:shape
Shape.
:scale
Font size scale factor.
:fallback
Whether fallback is enabled.
:letter-spacing
Letter spacing.
:underline-color
Underline colo.
:strikethrough-color
Strikethrough color.
:absolute-size
Font size in pixels scaled by the pango:+scale+ value.
:gravity
Base text gravity.
:gravity-hint
Gravity hint.
:font-features
OpenType font features.
:foreground-alpha
Foreground alpha.
:background-alpha
Background alpha.
:allow-breaks
Whether breaks are allowed. Since 1.44
:show
How to render invisible characters. Since 1.44
:insert-hyphens
Whether to insert hyphens at intra-word line breaks. Since 1.44
:overline
Whether the text has an overline. Since 1.46
:overline-color
Overline color. Since 1.46
:line-height
Line height factor. Since 1.50
:absolute-line-height
Line height. Since 1.50
:text-transform
How Pango treats characters during shaping. Since 1.50
:word
Override segmentation to classify the range of the attribute as a single word. Since 1.50
:sentence
Override segmentation to classify the range of the attribute as a single sentence. Since 1.50
:baseline-shift
Baseline displacement. Since 1.50
:font-scale
Font-relative size change. Since 1.50

Details

The pango:attr-type enumeration distinguishes between different types of attributes. Along with the predefined values, it is possible to allocate additional values for custom attributes using the pango:attr-type-register function.
 

See also

2025-1-1