Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FontManager

        public FontManager()
    • 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 interface com.badlogic.gdx.utils.Disposable