public class MinecraftFont extends MalisisFont
| Modifier and Type | Class and Description |
|---|---|
class |
MinecraftFont.MCCharData |
class |
MinecraftFont.UnicodeCharData |
charData, drawingShadow, font, fontGeneratorOptions, frc, minecraftFont, size, textureRl| Constructor and Description |
|---|
MinecraftFont() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clean(MalisisRenderer<?> renderer,
boolean isDrawing) |
protected void |
drawChar(CharData cd,
float offsetX,
float offsetY,
FontOptions options) |
protected void |
drawLineChar(CharData cd,
float offsetX,
float offsetY,
FontOptions options) |
CharData |
getCharData(char c) |
float |
getStringHeight(FontOptions options)
Gets the rendering height of strings according to fontscale.
|
float |
getStringWidth(java.lang.String str,
FontOptions options,
int start,
int end)
Gets rendering width of a string according to fontScale.
|
protected void |
prepare(MalisisRenderer<?> renderer,
float x,
float y,
float z,
FontOptions options) |
cleanLines, cleanShadow, clipString, clipString, drawLines, drawString, generateTexture, getCharPosition, getCharWidth, getCharWidth, getMaxStringWidth, getMaxStringWidth, getResourceLocation, getShape, getStringHeight, getStringWidth, load, load, load, loadCharacterData, loadTexture, prepareLines, prepareShadow, processString, readTextureFile, readUVFile, render, roundUp, wrapText, wrapTextprotected void prepare(MalisisRenderer<?> renderer, float x, float y, float z, FontOptions options)
prepare in class MalisisFontprotected void clean(MalisisRenderer<?> renderer, boolean isDrawing)
clean in class MalisisFontpublic CharData getCharData(char c)
getCharData in class MalisisFontprotected void drawChar(CharData cd, float offsetX, float offsetY, FontOptions options)
drawChar in class MalisisFontprotected void drawLineChar(CharData cd, float offsetX, float offsetY, FontOptions options)
drawLineChar in class MalisisFontpublic float getStringWidth(java.lang.String str,
FontOptions options,
int start,
int end)
MalisisFontgetStringWidth in class MalisisFontstr - the stroptions - the optionsstart - the startend - the endpublic float getStringHeight(FontOptions options)
MalisisFontgetStringHeight in class MalisisFontoptions - the options