IAsset, IDisposablepublic interface IFont extends IAsset
| Modifier and Type | Field | Description |
|---|---|---|
static ResourceName |
ID |
| Modifier and Type | Method | Description |
|---|---|---|
void |
drawAutoScaledString(float x,
float y,
java.lang.String s,
float maxScale,
int width,
int color,
int shadowColor,
boolean centeredOnX,
boolean centeredOnY) |
|
void |
drawCenteredString(float x,
float y,
java.lang.String s,
float scale,
boolean centeredOnY) |
|
void |
drawCharacter(float x,
float y,
char character,
float scale,
int color,
FontProp prop) |
|
void |
drawCharacter(float x,
float y,
char character,
float scale,
int color,
FontProp prop,
int shadowColor) |
|
void |
drawCutOffString(float x,
float y,
java.lang.String s,
float scale,
int length,
boolean fromRight,
boolean basedOnCharAmount) |
|
void |
drawFadingString(float x,
float y,
java.lang.String s,
float scale,
float fadeTotal,
float fadeInEnd,
float fadeOutStart) |
|
void |
drawSplitString(float x,
float y,
java.lang.String s,
float scale,
int length) |
|
void |
drawSplitString(float x,
float y,
java.lang.String s,
float scale,
int... lengths) |
|
void |
drawString(float x,
float y,
java.lang.String s,
float scale) |
|
void |
drawString(float x,
float y,
java.lang.String s,
float scale,
int color) |
|
void |
drawString(float x,
float y,
java.lang.String s,
int drawStart,
int drawEnd,
float scale,
int color) |
|
void |
drawString(float x,
float y,
java.lang.String s,
int drawStart,
int drawEnd,
float scale,
int color,
int shadowColor) |
|
void |
drawStringFromRight(float x,
float y,
java.lang.String s,
float scale) |
|
float |
getHeight(float scale) |
|
float |
getWidth(java.lang.String s,
float scale) |
|
java.lang.String |
removeFormatting(java.lang.String s) |
|
java.util.List<java.lang.String> |
splitTextToLength(float scale,
boolean wrapFormatting,
java.util.List<java.lang.String> lines,
int... lengths) |
|
java.util.List<java.lang.String> |
splitTextToLength(int[] lengths,
float scale,
boolean wrapFormatting,
java.lang.String... lines) |
|
java.util.List<java.lang.String> |
splitTextToLength(int length,
float scale,
boolean wrapFormatting,
java.lang.String... lines) |
|
java.util.List<java.lang.String> |
splitTextToLength(int length,
float scale,
boolean wrapFormatting,
java.util.List<java.lang.String> lines) |
disposestatic final ResourceName ID
void drawStringFromRight(float x,
float y,
java.lang.String s,
float scale)
void drawCenteredString(float x,
float y,
java.lang.String s,
float scale,
boolean centeredOnY)
void drawFadingString(float x,
float y,
java.lang.String s,
float scale,
float fadeTotal,
float fadeInEnd,
float fadeOutStart)
void drawString(float x,
float y,
java.lang.String s,
float scale)
void drawString(float x,
float y,
java.lang.String s,
float scale,
int color)
void drawCutOffString(float x,
float y,
java.lang.String s,
float scale,
int length,
boolean fromRight,
boolean basedOnCharAmount)
void drawSplitString(float x,
float y,
java.lang.String s,
float scale,
int length)
void drawSplitString(float x,
float y,
java.lang.String s,
float scale,
int... lengths)
void drawString(float x,
float y,
java.lang.String s,
int drawStart,
int drawEnd,
float scale,
int color,
int shadowColor)
void drawString(float x,
float y,
java.lang.String s,
int drawStart,
int drawEnd,
float scale,
int color)
void drawAutoScaledString(float x,
float y,
java.lang.String s,
float maxScale,
int width,
int color,
int shadowColor,
boolean centeredOnX,
boolean centeredOnY)
void drawCharacter(float x,
float y,
char character,
float scale,
int color,
FontProp prop,
int shadowColor)
void drawCharacter(float x,
float y,
char character,
float scale,
int color,
FontProp prop)
java.lang.String removeFormatting(java.lang.String s)
float getWidth(java.lang.String s,
float scale)
float getHeight(float scale)
java.util.List<java.lang.String> splitTextToLength(int length,
float scale,
boolean wrapFormatting,
java.lang.String... lines)
java.util.List<java.lang.String> splitTextToLength(int length,
float scale,
boolean wrapFormatting,
java.util.List<java.lang.String> lines)
java.util.List<java.lang.String> splitTextToLength(int[] lengths,
float scale,
boolean wrapFormatting,
java.lang.String... lines)
java.util.List<java.lang.String> splitTextToLength(float scale,
boolean wrapFormatting,
java.util.List<java.lang.String> lines,
int... lengths)