Tao.Sdl SDK Documentation |
|
SdlTtf.TTF_CloseFont Method
Close an opened font file
[Visual Basic]
Public Shared Sub TTF_CloseFont( _
ByVal
font As
IntPtr _
)
[C#]
public static
void TTF_CloseFont(
IntPtr font);
Parameters
-
font
- Pointer to the TTF_Font to free.
Remarks
Free the memory used by font, and free font itself as well. Do not use font after this without loading a new font to it.
Binds to C-function in SDL_ttf.h
void TTF_CloseFont(TTF_Font *font)
Example
// free the font
// TTF_Font *font;
TTF_CloseFont(font);
font=NULL; // to be safe...
See Also
SdlTtf Class | Tao.Sdl Namespace | TTF_OpenFont | TTF_OpenFontIndex | TTF_OpenFontRW | TTF_CloseFont | TTF_OpenFontIndexRW