/** * Constructor for the TrueTypeFont class Pass in the preloaded standard * Java TrueType font, and whether you want it to be cached with * AntiAliasing applied. * * @param font * Standard Java AWT font * @param antiAlias * Whether or not to apply AntiAliasing to the cached font * @param additionalChars * Characters of font that will be used in addition of first 256 (by unicode). */ public TrueTypeFont(java.awt.Font font, boolean antiAlias, char[] additionalChars) { GLUtils.checkGLContext(); this.font = font; this.fontSize = font.getSize(); this.antiAlias = antiAlias; createSet( additionalChars ); }