Class FontSheet
java.lang.Object
com.cake.azimuth.foundation.microfont.FontSheet
Helper of spritesheet based monospace fonts
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcalculateWidth(String text) booleanCheck if this font sheet can render every character in the given text.intbooleanhasGlyph(char c) Check if this font sheet has a glyph for the given character.void
-
Constructor Details
-
FontSheet
-
-
Method Details
-
render
public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, String text, int x, int y, int color) -
getCharHeight
public int getCharHeight() -
calculateWidth
-
hasGlyph
public boolean hasGlyph(char c) Check if this font sheet has a glyph for the given character. Space characters are always considered renderable (they produce visual gaps). -
canRender
Check if this font sheet can render every character in the given text. Returns true if all characters have sprite mappings (or are spaces). Returns true for empty/null strings.
-