textRight

fun textRight(text: String, rightX: Float, y: Float, style: TextStyle)

Text right-aligned to rightX: laid out in a fixed box spanning 0..rightX with absolute right alignment rather than offset by a measured width (see the note on constraints below).


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

Text right-aligned to rightX (see textRight); size, weight, color and letterSpacing as in text.


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

textRight without letter spacing.