Package: pango

CStruct pango:analysis

Declaration

(cffi:defcstruct analysis
  (shape-engine :pointer)
  (lang-engine :pointer)
  (font (g:object font))
  (level :uint8)
  (gravity :uint8)
  (flags :uint8)
  (script :uint8)
  (language (g:boxed language))
  (extra-attrs :pointer))  

Values

shape-engine
Unused.
lang-engine
Unused.
font
The pango:font object for the font of this segment.
level
The bidirectional level for this segment.
gravity
The pango:gravity value for the glyph orientation of this segment.
flags
Boolean flags for this segment.
script
The pango:script value for the detected script of this segment.
language
The pango:language object for the detected language of this segment.
extra-attrs
Extra attributes for this segment.

Details

The pango:analysis structure stores information about the properties of a segment of text. The pango:item structure contains a field for a pango:analysis instance. After text has been itemised using the pango:itemize function, the pango:analysis instance is populated with values for each pango:item instance resulting from the itemisation process. This instance is then passed to the pango:shape function, which converts the text into glyphs. See the pango:shape documentation for a complete example.
 

Slot Access Functions

See also

2026-03-11