tailor_break


Description:


[ Version ( since = "1.44" ) ]
public void tailor_break (string text, int length, Analysis analysis, int offset, LogAttr[] attrs)

Apply language-specific tailoring to the breaks in attrs.

The line breaks are assumed to have been produced by [[email protected]_break].

If offset is not -1, it is used to apply attributes from analysis that are relevant to line breaking.

Note that it is better to pass -1 for offset and use [[email protected]_break] to apply attributes to the whole paragraph.

Parameters:

text

text to process. Must be valid UTF-8

length

length in bytes of text

analysis

`PangoAnalysis` for text

offset

Byte offset of text from the beginning of the paragraph, or -1 to ignore attributes from analysis

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