Package: pango

GEnum pango-attr-type

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. The predefined values are given below. The type of structure used to store the attribute is listed in parentheses after the description.
(define-g-enum "PangoAttrType" pango-attr-type
  (:export 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))  
:invalid
Does not happen.
:language
Language (PangoAttrLanguage).
:family
Font family name list (PangoAttrString).
:style
Font slant style (PangoAttrInt).
:weight
Font weight (PangoAttrInt).
:variant
Font variant (normal or small caps) (PangoAttrInt).
:stretch
Font stretch (PangoAttrInt).
:size
Font size in points scaled by +pango-scale+ (PangoAttrInt).
:font-desc
Font description (PangoAttrFontDesc).
:foreground
Foreground color (PangoAttrColor).
:background
Background color (PangoAttrColor).
:underline
Whether the text has an underline (PangoAttrInt).
:strikethrough
Whether the text is struck-through (PangoAttrInt).
:rise
Baseline displacement (PangoAttrInt).
:shape
Shape (PangoAttrShape).
:scale
Font size scale factor (PangoAttrFloat).
:fallback
Whether fallback is enabled (PangoAttrInt).
:letter-spacing
Letter spacing (PangoAttrInt).
:underline-color
Underline color (PangoAttrColor).
:strikethrough-color
Strikethrough color (PangoAttrColor).
:absolute-size
Font size in pixels scaled by +pango-scale+ (PangoAttrInt).
:gravity
Base text gravity (PangoAttrInt).
:gravity-hint
Gravity hint (PangoAttrInt).
:font-features
OpenType font features (PangoAttrString).
:foreground-alpha
Foreground alpha (PangoAttrInt).
:background-alpha
Background alpha (PangoAttrInt).
:allow-breaks
Whether breaks are allowed (PangoAttrInt). Since 1.44
:show
How to render invisible characters (PangoAttrInt). Since 1.44
:insert-hyphens
Whether to insert hyphens at intra-word line breaks (PangoAttrInt). Since 1.44
:overline
Whether the text has an overline (PangoAttrInt). Since 1.46
:overline-color
Overline color (PangoAttrColor). Since 1.46
:line-height
Line height factor (PangoAttrFloat). Since 1.50
:absolute-line-height
Line height (PangoAttrInt). Since 1.50
:text-transform
No description available. Since 1.50
:word
Override segmentation to classify the range of the attribute as a single word (PangoAttrInt). Since 1.50
:sentence
Override segmentation to classify the range of the attribute as a single sentence (PangoAttrInt). Since 1.50
:baseline-shift
Baseline displacement (PangoAttrInt). Since 1.50
:font-scale
Font-relative size change (PangoAttrInt). Since 1.50
 

See also

2022-7-9