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.DisposableIt 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 voiddispose()com.badlogic.gdx.graphics.g2d.BitmapFontgenerateFont(com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.FreeTypeFontParameter parameter)com.badlogic.gdx.graphics.g2d.BitmapFontgetHeaderFont()com.badlogic.gdx.graphics.g2d.BitmapFontgetLabelFont()com.badlogic.gdx.graphics.g2d.BitmapFontgetTitleFont()
-
-
-
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:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
-