text

fun text(text: String, x: Float, y: Float, style: TextStyle)

Text with its top-left at (x, y).


fun text(text: String, x: Float, y: Float, size: Float, weight: CardTextWeight = CardTextWeight.Regular, color: Long = CardColors.ink, letterSpacing: Float = 0.0f)

Text with its top-left at (x, y): size in card pixels, weight, color as ARGB (0xAARRGGBB), letterSpacing in card pixels (0 = the typeface's own).


fun text(text: String, x: Float, y: Float, size: Float, weight: CardTextWeight, color: Long)

text without letter spacing.