The OpenD Programming Language

MeasurableFont.isMonospace

Returns true if it is a monospace font, meaning each of the glyphs (at least the ascii characters) have matching width and no kerning, so you can determine the display width of some strings by simply multiplying the string width by averageWidth.

(Please note that multiply doesn't actually work in general, consider characters like tab and newline, but it does sometimes.)

interface MeasurableFont
bool
isMonospace
()

Meta