[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
TTF_Font *TTF_OpenFont(const char *file, int ptsize)
Load file for use as a font, at ptsize size. This is actually TTF_OpenFontIndex(file, ptsize, 0)
. 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.3 TTF_OpenFontIndex,
3.2.2 TTF_OpenFontRW,
3.2.5 TTF_CloseFont