Class Microfont

java.lang.Object
com.cake.azimuth.foundation.microfont.Microfont

public class Microfont extends Object
Teeny tiny barely even readable font used for type annotations on pins / data
  • Field Details

  • Constructor Details

    • Microfont

      public Microfont()
  • Method Details

    • render

      public static void render(net.minecraft.client.gui.GuiGraphics guiGraphics, String text, int x, int y, int color)
    • renderHighlighted

      public static void renderHighlighted(net.minecraft.client.gui.GuiGraphics guiGraphics, String text, int x, int y, int color, int bgColor)
    • calculateWidth

      public static int calculateWidth(String text)
    • getCharHeight

      public static int getCharHeight()
    • renderSmart

      public static void renderSmart(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font mcFont, String text, int x, int y, int color)
      Smart render that auto-detects charset compatibility. If all characters are in the microfont charset, renders using crisp sprites. If any character is unsupported, falls back to Minecraft's Font at 0.5x scale.
    • calculateSmartWidth

      public static int calculateSmartWidth(net.minecraft.client.gui.Font mcFont, String text)
    • getSmartHeight

      public static int getSmartHeight(String text)