[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
int TTF_FontFaceIsFixedWidth(const TTF_Font *font)
Test if the current font face of the loaded font is a fixed width font.
Fixed width fonts are monospace, meaning every character that exists in the font
is the same width, thus you can assume that a rendered string's width is
going to be the result of a simple calculation:
glyph_width * string_length
NOTE: Passing a NULL font into this function will cause a segfault.
Returns: >0 if font is a fixed width font. 0 if not a fixed width font.
|
See Also:
3.3.14 TTF_FontFaces,
3.3.16 TTF_FontFaceFamilyName,
3.3.17 TTF_FontFaceStyleName,
3.3.19 TTF_GlyphMetrics