SDL_ttf

SDL_ttf > Functions > Attributes

TTF_FontLineSkip

int TTF_FontLineSkip(TTF_Font *font)

font

Get the reccomended pixel height of a rendered line of text of the loaded font. This is usually larger than the TTF_FontHeight of the font.

NOTE: Passing a NULL font into this function will cause a segfault.

Returns: The maximum pixel height of all glyphs in the font.

// get the loaded font's max descent
//TTF_Font *font;

printf("The font descent is: %d\n", TTF_FontDescent(font));

See Also

TTF_FontHeight, TTF_FontAscent, TTF_FontDescent

SDL_ttf_copy/Functions/Attributes/TTF_FontLineSkip (last edited 2009-02-25 23:12:18 by sign-4d0949c8)