| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
TTF_Font *TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize)
Load src for use as a font, at ptsize size.
This is actually TTF_OpenFontIndexRW(src, freesrc, ptsize, 0)
This can load TTF and FON formats.
Using SDL_RWops is not covered here, but they enable you to load from almost any source.
NOTE: src is not checked for NULL, so be careful.
Returns: a pointer to the font as a TTF_Font. NULL is returned on errors.
|
SDL_RWFromFile's returned pointer.
See Also:
3.2.4 TTF_OpenFontIndexRW,
3.2.1 TTF_OpenFont,
3.2.5 TTF_CloseFont