get_log_attrs


Description:


public void get_log_attrs (string text, int length, int level, Language language, LogAttr[] attrs)

Computes a `PangoLogAttr` for each character in text.

The 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).

Parameters:

text

text to process. Must be valid UTF-8

length

length in bytes of text

level

embedding level, or -1 if unknown

language

language tag

attrs

array with one `PangoLogAttr` per character in text, plus one extra, to be filled in

attrs_len

length of attrs array


Namespace: Pango
Package: pango



2022 vala-language.org