Tao.Sdl SDK Documentation

SdlTtf.TTF_FontLineSkip Method 

Get the recommended spacing between lines of text for this font.

[Visual Basic]
Public Shared Function TTF_FontLineSkip( _
   ByVal font As IntPtr _
) As Integer
[C#]
public static int TTF_FontLineSkip(
   IntPtr font
);

Parameters

font
The loaded font to get the line skip height of

Return Value

The maximum pixel height of all glyphs in the font.

Remarks

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.

Binds to C-function in SDL_ttf.h

            int TTF_FontLineSkip(TTF_Font *font)
            

Example

            // get the loaded font's max descent
                    //TTF_Font *font;
                    printf("The font descent is: %d\n", TTF_FontDescent(font));
            

See Also

SdlTtf Class | Tao.Sdl Namespace | TTF_FontHeight | TTF_FontAscent | TTF_FontDescent