textWidth

The width text takes in style, for laying out inline label + value pairs.


fun textWidth(text: String, size: Float, weight: CardTextWeight = CardTextWeight.Regular, letterSpacing: Float = 0.0f): Float

The width text takes at size and weight (with letterSpacing), for inline label + value pairs.