Class AngelCodeFont

java.lang.Object
zombie.core.fonts.AngelCodeFont
All Implemented Interfaces:
AssetStateObserver, Font

public final class AngelCodeFont extends Object implements Font, AssetStateObserver
  • Field Details

    • chars

      public AngelCodeFont.CharDef[] chars
    • xoff

      public static int xoff
    • yoff

      public static int yoff
    • curCol

      public static Color curCol
    • curR

      public static float curR
    • curG

      public static float curG
    • curB

      public static float curB
    • curA

      public static float curA
  • Constructor Details

  • Method Details

    • drawString

      public void drawString(float x, float y, String text)
      Specified by:
      drawString in interface Font
    • drawString

      public void drawString(float x, float y, String text, Color col)
      Specified by:
      drawString in interface Font
    • drawString

      public void drawString(float x, float y, String text, float r, float g, float b, float a)
    • drawString

      public void drawString(float x, float y, float scale, String text, float r, float g, float b, float a)
    • drawString

      public void drawString(float x, float y, String text, Color col, int startIndex, int endIndex)
      Specified by:
      drawString in interface Font
    • drawString

      public void drawString(float x, float y, String text, float r, float g, float b, float a, int startIndex, int endIndex)
    • drawString

      public void drawString(float x, float y, float scale, String text, float r, float g, float b, float a, int startIndex, int endIndex)
    • getHeight

      public int getHeight(String text)
      Specified by:
      getHeight in interface Font
    • getHeight

      public int getHeight(String text, boolean returnActualHeight, boolean returnOffset)
    • getLineHeight

      public int getLineHeight()
      Specified by:
      getLineHeight in interface Font
    • getWidth

      public int getWidth(String text)
      Specified by:
      getWidth in interface Font
    • getWidth

      public int getWidth(String text, boolean xAdvance)
      Specified by:
      getWidth in interface Font
    • getWidth

      public int getWidth(String text, int start, int end)
      Specified by:
      getWidth in interface Font
    • getWidth

      public int getWidth(String text, int start, int end, boolean xadvance)
      Specified by:
      getWidth in interface Font
    • getYOffset

      public int getYOffset(String text)
    • onStateChanged

      public void onStateChanged(Asset.State oldState, Asset.State newState, Asset asset)
      Specified by:
      onStateChanged in interface AssetStateObserver
    • isLoading

      public boolean isLoading()
    • isSdf

      public boolean isSdf()
    • setSdf

      public void setSdf(boolean b)
    • destroy

      public void destroy()