appendRun

fun appendRun(font: Font, text: String, x: Float, y: Float, bounds: Rect? = null): TextBlobBuilder

Glyphs are positioned on a baseline at (x, y), using font metrics to determine their relative placement.

Return

this

Parameters

font

Font used for this run

text

Text to append in this run

x

horizontal offset within the blob

y

vertical offset within the blob

bounds

optional run bounding box


fun appendRun(font: Font?, glyphs: ShortArray?, x: Float, y: Float, bounds: Rect?): TextBlobBuilder

Glyphs are positioned on a baseline at (x, y), using font metrics to determine their relative placement.

bounds defines an optional bounding box, used to suppress drawing when TextBlob bounds does not intersect Surface bounds. If bounds is null, TextBlob bounds is computed from (x, y) and glyphs metrics.

Return

this

Parameters

font

Font used for this run

glyphs

glyphs in this run

x

horizontal offset within the blob

y

vertical offset within the blob

bounds

optional run bounding box