public class MinecraftFont extends MalisisFont
| Modifier and Type | Class and Description |
|---|---|
class |
MinecraftFont.MCCharData |
class |
MinecraftFont.UnicodeCharData |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
forceUnicode
Whether the character should drawn with unicode font even if unicode is disabled in MC options.
|
protected java.util.Map<java.lang.Character,CharData> |
unicodeCharData
CharData for Unicode characters
|
charData, CHARLIST, drawingShadow, font, fontGeneratorOptions, frc, minecraftFont, size, textureRl, zIndex| 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,
int color) |
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, drawLine, generateTexture, getCharPosition, getCharWidth, getCharWidth, getMaxStringWidth, getMaxStringWidth, getRandomChar, getResourceLocation, getShape, getStringHeight, getStringWidth, load, load, load, loadCharacterData, loadTexture, prepareLines, prepareShadow, processString, readTextureFile, readUVFile, render, render, renderCharacter, roundUp, wrapTextprotected java.util.Map<java.lang.Character,CharData> unicodeCharData
protected boolean forceUnicode
protected 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, int color)
drawChar 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