textCenter
Text centred on centerX (same box technique as textRight).
fun textCenter(text: String, centerX: Float, y: Float, size: Float, weight: CardTextWeight = CardTextWeight.Regular, color: Long = CardColors.ink, letterSpacing: Float = 0.0f)
Text centred on centerX (see textCenter); size, weight, color and letterSpacing as in text.
fun textCenter(text: String, centerX: Float, y: Float, size: Float, weight: CardTextWeight, color: Long)
textCenter without letter spacing.