Function

Pango-1.0Pangoattr_breakSince 1.50

  • Apply customization from attributes to the breaks in attrs.

    The line breaks are assumed to have been produced by Pango.default_break and Pango.tailor_break.

    Parameters

    • text: string

      text to break. Must be valid UTF-8

    • length: number

      length of text in bytes (may be -1 if text is nul-terminated)

    • attr_list: AttrList

      Pango.AttrList to apply

    • offset: number

      Byte offset of text from the beginning of the paragraph

    Returns LogAttr[]

    1.50