[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
int TTF_FontDescent(const TTF_Font *font)
Get the maximum pixel descent of all glyphs of the loaded font.
This can also be interpreted as the distance from the baseline to the bottom of the font.
It could be used when drawing an individual glyph relative to a bottom point, by combining it with the glyph's maxy metric to resolve the top of the rectangle used when blitting the glyph on the screen.
rect.y = bottom - TTF_FontDescent(font) - glyph_metric.maxy;
NOTE: Passing a NULL font into this function will cause a segfault.
Returns: The maximum pixel height of all glyphs in the font.
|
See Also:
3.3.10 TTF_FontHeight,
3.3.11 TTF_FontAscent,
3.3.13 TTF_FontLineSkip,
3.3.19 TTF_GlyphMetrics