.\" 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_CloseFont: .\" https://wiki.libsdl.org/SDL_ttf/TTF_CloseFont .\" 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_CloseFont .\" 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_CloseFont 3 "SDL_ttf 3.0.0" "SDL_ttf" "SDL_ttf3 FUNCTIONS" .SH NAME TTF_CloseFont \- Dispose of a previously-created font\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_ttf/SDL_ttf.h\(dq .PP .BI "void TTF_CloseFont(TTF_Font *font); .fi .SH DESCRIPTION Call this when done with a font\[char46] This function will free any resources associated with it\[char46] It is safe to call this function on NULL, for example on the result of a failed call to .BR TTF_OpenFont ()\[char46] The font is not valid after being passed to this function\[char46] String pointers from functions that return information on this font, such as .BR TTF_FontFaceFamilyName () and .BR TTF_FontFaceStyleName (), are no longer valid after this call, as well\[char46] .SH FUNCTION PARAMETERS .TP .I font the font to dispose of\[char46] .SH AVAILABILITY This function is available since SDL_ttf 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR TTF_OpenFont (3), .BR TTF_OpenFontIndexDPIIO (3), .BR TTF_OpenFontIO (3), .BR TTF_OpenFontDPI (3), .BR TTF_OpenFontDPIIO (3), .BR TTF_OpenFontIndex (3), .BR TTF_OpenFontIndexDPI (3), .BR TTF_OpenFontIndexDPIIO (3), .BR TTF_OpenFontIndexIO (3)