Interface IFont

All Superinterfaces:
IAsset, IDisposable

public interface IFont extends IAsset
  • Field Details

  • Method Details

    • drawStringFromRight

      void drawStringFromRight(float x, float y, String s, float scale)
    • drawCenteredString

      void drawCenteredString(float x, float y, String s, float scale, boolean centeredOnY)
    • drawFadingString

      void drawFadingString(float x, float y, String s, float scale, float fadeTotal, float fadeInEnd, float fadeOutStart)
    • drawString

      void drawString(float x, float y, String s, float scale)
    • drawString

      void drawString(float x, float y, String s, float scale, int color)
    • drawCutOffString

      void drawCutOffString(float x, float y, String s, float scale, int length, boolean fromRight, boolean basedOnCharAmount)
    • drawSplitString

      void drawSplitString(float x, float y, String s, float scale, int length)
    • drawSplitString

      void drawSplitString(float x, float y, String s, float scale, int... lengths)
    • drawString

      void drawString(float x, float y, String s, int drawStart, int drawEnd, float scale, int color, int shadowColor)
    • drawString

      void drawString(float x, float y, String s, int drawStart, int drawEnd, float scale, int color)
    • drawAutoScaledString

      void drawAutoScaledString(float x, float y, String s, float maxScale, int width, int color, int shadowColor, boolean centeredOnX, boolean centeredOnY)
    • drawCharacter

      void drawCharacter(float x, float y, char character, float scale, int color, FontProp prop, int shadowColor)
    • drawCharacter

      void drawCharacter(float x, float y, char character, float scale, int color, FontProp prop)
    • removeFormatting

      String removeFormatting(String s)
    • getWidth

      float getWidth(String s, float scale)
    • getHeight

      float getHeight(float scale)
    • splitTextToLength

      List<String> splitTextToLength(int length, float scale, boolean wrapFormatting, String... lines)
    • splitTextToLength

      List<String> splitTextToLength(int length, float scale, boolean wrapFormatting, List<String> lines)
    • splitTextToLength

      List<String> splitTextToLength(int[] lengths, float scale, boolean wrapFormatting, String... lines)
    • splitTextToLength

      List<String> splitTextToLength(float scale, boolean wrapFormatting, List<String> lines, int... lengths)