.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL_ttf's wiki page for TTF_Init: .\" https://wiki.libsdl.org/SDL_ttf/TTF_Init .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision 3~git20240320~6e260a2+ds-1 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20TTF_Init .\" SDL_ttf can be found at https://libsdl.org/projects/SDL_ttf .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH TTF_Init 3 "SDL_ttf 3.0.0" "SDL_ttf" "SDL_ttf3 FUNCTIONS" .SH NAME TTF_Init \- Initialize SDL_ttf\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_ttf/SDL_ttf.h\(dq .PP .BI "int TTF_Init(void); .fi .SH DESCRIPTION You must successfully call this function before it is safe to call any other function in this library, with one exception: a human-readable error message can be retrieved from .BR TTF_GetError () if this function fails\[char46] SDL must be initialized before calls to functions in this library, because this library uses utility functions from the SDL library\[char46] It is safe to call this more than once; the library keeps a counter of init calls, and decrements it on each call to .BR TTF_Quit , so you must pair your init and quit calls\[char46] .SH RETURN VALUE Returns 0 on success, -1 on error\[char46] .SH AVAILABILITY This function is available since SDL_ttf 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR TTF_Quit (3)