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 . j a v a2 s . co m import com.badlogic.gdx.graphics.g2d.BitmapFont; public class FontManager { private static FontManagerInterface manager; public static void initialize(FontManagerInterface man) { dispose(); manager = man; } /**Returns the largest font that is smaller than the given size*/ public static BitmapFont getFontForHeight(Integer size) { if (manager == null) throw new RuntimeException("Must call initialize before using this function"); return manager.getFontForHeight(size); } public static BitmapFont getFontForHeight(float size) { if (manager == null) throw new RuntimeException("Must call initialize before using this function"); return manager.getFontForHeight(size); } public static void dispose() { if (manager != null) manager.dispose(); manager = null; } }