Package: pango

Function pango:shape

Lambda List

pango:shape (text analysis &optional flags)

Arguments

text -- a string for the text to process
analysis -- a pango:analysis instance from the pango:itemize function
flags -- an optional pango:shape-flags value, the default is :none

Return Value

The pango:glyph-string instance for the results

Details

Given a segment of text and the corresponding pango:analysis instance returned from the pango:itemize function, convert the characters into glyphs. You may also pass in only a substring of the item from the pango:itemize function. It also takes flags that can influence the shaping process.

Note that the extra attributes in the analyis that is returned from the pango:itemize function have indices that are relative to the entire paragraph, so you need to subtract the item offset from their indices before calling the pango:shape function.
 

See also

2026-03-11