Package: pango

Function pango-log-attrs

Lambda List

pango-log-attrs (text length level language log-attrs attrs-len)

Arguments

text -- a string with the text to process, must be valid UTF-8
length -- an integer with the length in bytes of text
level -- an integer with the embedding level, or -1 if unknown
language -- a pango-language tag
log-attrs -- array with one pango-log-attr instance per character in text, plus one extra, to be filled in
attrs-len -- an integer with the length of log-attrs array

Details

Computes a pango-log-attr instance for each character in text. The log-attrs array must have one pango-log-attr instance for each position in text. If text contains N characters, it has N+1 positions, including the last position at the end of the text. text should be an entire paragraph; logical attributes cannot be computed without context (for example you need to see spaces on either side of a word to know the word is a word).
 

See also

2021-1-12