tailorBreak

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 string

text to process. Must be valid UTF-8

analysis pango.analysis.Analysis
offset int

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

attrs pango.types.LogAttr[]

array with one pango.types.LogAttr per character in text, plus one extra, to be filled in