/** Creates a new BitmapFontCache for this font. Using this method allows the font to provide the BitmapFontCache * implementation to customize rendering. * <p> * Note this method is called by the BitmapFont constructors. If a subclass overrides this method, it will be called before the * subclass constructors. */ public BitmapFontCache newFontCache () { return new BitmapFontCache(this, integer); }
/** Creates a new BitmapFontCache for this font. Using this method allows the font to provide the BitmapFontCache * implementation to customize rendering. * <p> * Note this method is called by the BitmapFont constructors. If a subclass overrides this method, it will be called before the * subclass constructors. */ public BitmapFontCache newFontCache () { return new BitmapFontCache(this, integer); }
public void create () { TextureAtlas textureAtlas = new TextureAtlas("data/pack"); font = new BitmapFont(Gdx.files.internal("data/verdana39.fnt"), textureAtlas.findRegion("verdana39"), false); singleLineCache = new BitmapFontCache(font, true); multiLineCache = new BitmapFontCache(font, true); singleLineCacheNonInteger = new BitmapFontCache(font, false); multiLineCacheNonInteger = new BitmapFontCache(font, false); batch = new SpriteBatch(); fillCaches(); }
/** Creates a new BitmapFontCache for this font. Using this method allows the font to provide the BitmapFontCache * implementation to customize rendering. * <p> * Note this method is called by the BitmapFont constructors. If a subclass overrides this method, it will be called before the * subclass constructors. */ public BitmapFontCache newFontCache () { return new BitmapFontCache(this, integer); }
public void setStyle (WindowStyle style) { if (style == null) throw new IllegalArgumentException("style cannot be null."); this.style = style; setBackground(style.background); titleCache = new BitmapFontCache(style.titleFont); titleCache.setColor(style.titleFontColor); if (title != null) setTitle(title); invalidateHierarchy(); }