Package cs.eng1.piazzapanic.ui
Class FontManager
- java.lang.Object
-
- cs.eng1.piazzapanic.ui.FontManager
-
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
public class FontManager extends java.lang.Object implements com.badlogic.gdx.utils.Disposable
It takes a TrueTypeFont (ttf) and converts it to all the necessary BitmapFonts that are required for the UI elements.
-
-
Constructor Summary
Constructors Constructor Description FontManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
com.badlogic.gdx.graphics.g2d.BitmapFont
generateFont(com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.FreeTypeFontParameter parameter)
com.badlogic.gdx.graphics.g2d.BitmapFont
getHeaderFont()
com.badlogic.gdx.graphics.g2d.BitmapFont
getLabelFont()
com.badlogic.gdx.graphics.g2d.BitmapFont
getTitleFont()
-
-
-
Method Detail
-
getTitleFont
public com.badlogic.gdx.graphics.g2d.BitmapFont getTitleFont()
-
getHeaderFont
public com.badlogic.gdx.graphics.g2d.BitmapFont getHeaderFont()
-
getLabelFont
public com.badlogic.gdx.graphics.g2d.BitmapFont getLabelFont()
-
generateFont
public com.badlogic.gdx.graphics.g2d.BitmapFont generateFont(com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.FreeTypeFontParameter parameter)
-
dispose
public void dispose()
- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-
-