Tao.Sdl SDK Documentation

SdlTtf.TTF_Init Method 

Initialize the TTF engine - returns 0 if successful, -1 on error

[Visual Basic]
Public Shared Function TTF_Init() As Integer
[C#]
public static int TTF_Init();

Return Value

0 on success, -1 on errors

Remarks

Initialize the truetype font API.

This must be called before using other functions in this library, excepting TTF_WasInit.

SDL does not have to be initialized before this call.

Binds to C-function in SDL_ttf.h

            int TTF_Init()
            

Example

            if(TTF_Init()==-1) {
                    printf("TTF_Init: %s\n", TTF_GetError());
                    exit(2);
                }
            

See Also

SdlTtf Class | Tao.Sdl Namespace | TTF_WasInit | TTF_Quit