[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
TTF_Font *TTF_OpenFontIndex(const char *file, int ptsize, long index)
Load file, face index, for use as a font, at ptsize size. This is actually TTF_OpenFontIndexRW(SDL_RWFromFile(file), ptsize, index)
, but checks that the RWops it creates is not NULL. This can load TTF and FON files.
Returns: a pointer to the font as a TTF_Font
. NULL is returned on errors.
|
See Also:
3.2.4 TTF_OpenFontIndexRW,
3.2.1 TTF_OpenFont,
3.2.5 TTF_CloseFont