Function
Pango.get_log_attrs
Declaration [src]
void
pango_get_log_attrs (
const char* text,
int length,
int level,
PangoLanguage* language,
PangoLogAttr* log_attrs,
int attrs_len
)
Description [src]
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).
Parameters
text |
const char* |
text to process. Must be valid UTF-8 |
|
Ownership is not transferred to the callee | |
The string is a NUL terminated UTF-8 string | |
length |
int |
length in bytes of |
|
level |
int |
embedding level, or -1 if unknown |
|
language |
PangoLanguage |
language tag |
|
Ownership is not transferred to the callee | |
log_attrs |
An array of PangoLogAttr |
array with one |
|
The length of the array is in the attrs_len argument | |
Ownership is not transferred to the callee | |
attrs_len |
int |
length of |