1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| void pango_get_log_attrs (const char *text,
int length,
int level,
PangoLanguage *language,
PangoLogAttr *log_attrs,
int attrs_len);
Computes a PangoLogAttr for each character in text. The log_attrs array must have one PangoLogAttr 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 can't be computed without context (for example you need to see spaces on either side of a word to know the word is a word).
text :
text to process
length :
length in bytes of text
level :
embedding level, or -1 if unknown
language :
language tag
log_attrs :
array with one PangoLogAttr per character in text, plus one extra, to be filled in
attrs_len :
length of log_attrs array |
Partager