sdljava.ttf
public class SDLTTF extends Object
Version: $Id: SDLTTF.java,v 1.11 2005/02/19 02:26:02 ivan_ganza Exp $
Method Summary | |
---|---|
static SDLVersion | getTTFVersion()
get a version structure with the compile-time version of the SDL_ttf library.
|
static void | init()
Initialize the truetype font API. |
static SDLTrueTypeFont | openFont(String path, int ptsize)
Load file for use as a font, at ptsize size. |
static SDLTrueTypeFont | openFontIndex(String path, int ptsize, int index)
Load file for use as a font, at ptsize size. |
static void | quit()
Shutdown and cleanup the truetype font API. |
Returns: the compile-time version of the SDL_ttf library.
Throws: SDLException if an error occurs
Parameters: path Path to font file ptsize Point size (based on 72DPI) to load font as. This basically translates to pixel height.
Returns: a TTFFont
value
Throws: SDLException if an error occurs
Parameters: path Path to font file ptsize Point size (based on 72DPI) to load font as. This basically translates to pixel height. index The index to load at
Returns: a TTFFont
value
Throws: SDLException if an error occurs
Throws: SDLException if an error occurs