Function

Pango-1.0Pangotailor_breakSince 1.44

  • Apply language-specific tailoring to the breaks in attrs.

    The line breaks are assumed to have been produced by Pango.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 Pango.attr_break to apply attributes to the whole paragraph.

    Parameters

    • text: string

      text to process. Must be valid UTF-8

    • length: number

      length in bytes of text

    • analysis: Analysis

      Pango.Analysis for text

    • offset: number

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

    Returns LogAttr[]

    1.44