calculateStringWidth

fun calculateStringWidth(font: Key, string: String): Float

Calculates the width of string when rendered with font.