Package: pango
Function pango-font-family-is-monospace
Lambda Listpango-font-family-is-monospace (family) ArgumentsReturn ValueTrue if family is monospace. Details
A monospace font is a font designed for text display where 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 function g_unichar_iswide() returns a result that indicates whether a character
is typically double-width in a monospace font. The best way to find out the grid-cell size is to call the function pango-font-metrics-approximate-digit-width, since the results of the function pango-font-metrics-approximate-char-width may be affected by double-width characters. | See also |
2021-1-8