characterWidth

fun characterWidth(character: Char): Double(source)

Calculates the width of a given character based on its metrics in the font image map.

Return

The width of the given character as a Double. Returns 0.0 if the character is not found in the map.

Parameters

character

The character whose width is being calculated.