setMarkup

open fun setMarkup(markup: String, length: Int)

Sets the layout text and attribute list from marked-up text.

See pango_markup.html).

Replaces the current text and attribute list.

This is the same as method@Pango.Layout.set_markup_with_accel, but the markup text isn't scanned for accelerators.

Parameters

markup

marked-up text

length

length of marked-up text in bytes, or -1 if @markup is NUL-terminated