Name
pfontfamily:IsMonospace -- check if family is monospace
Synopsis
ok = pfontfamily:IsMonospace()
Function
A monospace font is a font designed for text display where the the characters form a regular grid.

For Western languages this would mean that the advance width of all characters are the same, but this categorization also includes Asian fonts which include double-width characters: characters that occupy two grid cells.

The best way to find out the grid-cell size is to call pfontmetrics:GetApproximateDigitWidth(), since the results of pfontmetrics:GetApproximateCharWidth() may be affected by double-width characters.

Inputs
none

Results
ok
True if the family is monospace, False otherwise

Show TOC