public interface Font
| Modifier and Type | Method and Description |
|---|---|
void |
drawString(float x,
float y,
java.lang.String text)
Draw a string to the screen
|
void |
drawString(float x,
float y,
java.lang.String text,
Color col)
Draw a string to the screen
|
void |
drawString(float x,
float y,
java.lang.String text,
Color col,
int startIndex,
int endIndex)
Draw part of a string to the screen.
|
int |
getHeight(java.lang.String str)
Get the height of the given string
|
int |
getLineHeight()
Get the maximum height of any line drawn by this font
|
int |
getWidth(java.lang.String str)
Get the width of the given string
|
int getWidth(java.lang.String str)
str - The string to obtain the rendered with ofint getHeight(java.lang.String str)
str - The string to obtain the rendered with ofint getLineHeight()
void drawString(float x,
float y,
java.lang.String text)
x - The x location at which to draw the stringy - The y location at which to draw the stringtext - The text to be displayedvoid drawString(float x,
float y,
java.lang.String text,
Color col)
x - The x location at which to draw the stringy - The y location at which to draw the stringtext - The text to be displayedcol - The colour to draw withvoid drawString(float x,
float y,
java.lang.String text,
Color col,
int startIndex,
int endIndex)
x - The x location at which to draw the stringy - The y location at which to draw the stringtext - The text to be displayedcol - The colour to draw withstartIndex - The index of the first character to drawendIndex - The index of the last character from the string to draw