Text

class Text(canvas: Canvas)

Renders text on a Canvas.

class Text(canvas: Canvas)
class Text(canvas: Canvas)

Constructors

Text
Link copied to clipboard
fun Text(canvas: Canvas)

Functions

changeFontSize
Link copied to clipboard
common
fun changeFontSize(size: Double)
Sets the current font matrix to a scale by a factor of size, replacing any font matrix previously set with changeFontSize or cairo_set_font_matrix.
fun changeFontSize(size: Double)
fun changeFontSize(size: Double)
drawText
Link copied to clipboard
common
fun drawText(txt: String)
A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to the current font_face, font_size (font_matrix), and font_options.
fun drawText(txt: String)
fun drawText(txt: String)
selectFontFace
Link copied to clipboard
common
fun selectFontFace(fontFamily: String, slant: FontSlant = FontSlant.NORMAL, weight: FontWeight = FontWeight.NORMAL)
Selects a family and style of font from a simplified description as a family name, slant and weight.
fun selectFontFace(fontFamily: String, slant: FontSlant = FontSlant.NORMAL, weight: FontWeight = FontWeight.NORMAL)
fun selectFontFace(fontFamily: String, slant: FontSlant = FontSlant.NORMAL, weight: FontWeight = FontWeight.NORMAL)

Properties

canvas
Link copied to clipboard
linuxArm32
val canvas: Canvas
canvas
Link copied to clipboard
linuxX64
val canvas: Canvas
fontOptions
Link copied to clipboard
var fontOptions: FontOptions
A set of custom font rendering options for the Canvas.
var fontOptions: FontOptions
var fontOptions: FontOptions