Class TTFont


  • public final class TTFont
    extends java.lang.Object
    Represents a TrueType font that can be used to draw text. Fonts can be loaded from .ttf using the MediaLoader, which will convert the font into a format that can be used by the renderer.
    • Constructor Detail

      • TTFont

        public TTFont​(java.lang.String family,
                      int size,
                      ColorRGB color,
                      boolean bold)
    • Method Detail

      • getFamily

        public java.lang.String getFamily()
      • getSize

        public int getSize()
      • isBold

        public boolean isBold()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object