| Home >> All >> org >> libsdl >> font >> [ ttf Javadoc ] |
org.libsdl.font.ttf: Javadoc index of package org.libsdl.font.ttf.
Package Samples:
org.libsdl.font.ttf
Classes:
TTFFont: The TTFFont class represents a loaded TrueType font. This class requires the SDL_ttf library to be loaded. If the SDL_ttf library is not loaded, an exception of type SDLLibraryNotAvailableException is thrown when attempting to instantiate the object. ------ EXAMPLE ------ String fontPath = ... int fontPtSize = ... SDL sdl = SDL.getInstance(); sdl.init(SDL.SDL_INIT_VIDEO); try { TTFFont font = new TTFFont(fontPath, fontPtSize); font.getHeight(); // etc... } catch (SDLLibraryNotAvailableException libe) { ... }
| Home | Contact Us | Privacy Policy | Terms of Service |