textCenter

fun textCenter(text: String, centerX: Float, y: Float, style: TextStyle)

Text centred on centerX (same box technique as textRight).