Shaper

class Shaper : Managed

Shapes text using HarfBuzz and places the shaped text into a client-managed buffer.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
expect open val isClosed: Boolean

Check if underlying resource is closed.

Link copied to clipboard

Functions

Link copied to clipboard
expect open fun close()

Free underlying native resource, peer is useless afterwards.

Link copied to clipboard
fun shape(text: String, font: Font): TextBlob?
fun shape(text: String, font: Font, width: Float): TextBlob?
fun shape(text: String, font: Font, width: Float, offset: Point): TextBlob?
fun shape(text: String, font: Font, opts: ShapingOptions, width: Float, offset: Point): TextBlob?
fun shape(text: String, font: Font, opts: ShapingOptions, width: Float, runHandler: RunHandler): Shaper
fun shape(text: String, fontIter: Iterator<FontRun?>, bidiIter: Iterator<BidiRun?>, scriptIter: Iterator<ScriptRun?>, langIter: Iterator<LanguageRun?>, opts: ShapingOptions, width: Float, runHandler: RunHandler): Shaper
fun shape(textUtf8: ManagedString, fontIter: Iterator<FontRun?>, bidiIter: Iterator<BidiRun?>, scriptIter: Iterator<ScriptRun?>, langIter: Iterator<LanguageRun?>, opts: ShapingOptions, width: Float, runHandler: RunHandler): Shaper
Link copied to clipboard
fun shapeLine(text: String?, font: Font?): TextLine
fun shapeLine(text: String?, font: Font?, opts: ShapingOptions): TextLine
Link copied to clipboard
expect open override fun toString(): String