Interface TextFont

  • All Known Implementing Classes:
    BitmapFont, TTFont

    public interface TextFont
    Shared interface between TrueType fonts and bitmap fonts, so that applications can easily switch between the two.
    • Method Detail

      • getFamily

        java.lang.String getFamily()
      • getSize

        int getSize()
      • derive

        TextFont derive​(int newSize)
        Returns a version of this font that uses the same font family and color, but has a different size.
      • derive

        TextFont derive​(ColorRGB newColor)
        Returns a version of this font which uses the same font family and size, but has a different color.
      • deriveBold

        TextFont deriveBold()
        Returns a bold version of this font. All all properties will be identical to the current font.