tailorBreak
fn
void tailorBreak(string text, pango.analysis.Analysis analysis, int offset, pango.types.LogAttr[] attrs)Apply language-specific tailoring to the breaks in attrs.
The line breaks are assumed to have been produced by funcPango.default_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 funcPango.attr_break to apply attributes to the whole paragraph.
Parameters
text | text to process. Must be valid UTF-8 |
analysis | [pango.analysis.Analysis] for text |
offset | Byte offset of text from the beginning of the paragraph, or -1 to ignore attributes from analysis |
attrs | array with one [pango.types.LogAttr] per character in text, plus one extra, to be filled in |