Back to project page Airplanes.
The source code is released under:
GNU General Public License
If you think the Android project Airplanes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.axnsan.airplanes.util; /* ww w . ja v a 2s .c om*/ import com.badlogic.gdx.graphics.g2d.BitmapFont; public class BasicFontManager implements FontManagerInterface { private BitmapFont defaultFont = null; /**Initialize the font manager*/ private void init() { defaultFont = new BitmapFont(); } @Override public BitmapFont getFontForHeight(Integer size) { if (defaultFont == null) init(); return defaultFont; } @Override public BitmapFont getFontForHeight(float size) { if (defaultFont == null) init(); return defaultFont; } @Override public void dispose() { if (defaultFont != null) defaultFont.dispose(); defaultFont = null; } }