Interface Font
- All Known Implementing Classes:
AngelCodeFont
public interface Font
-
Method Summary
Modifier and TypeMethodDescriptionvoiddrawString(float x, float y, String text) Draw a string to the screenvoiddrawString(float x, float y, String text, Color col) Draw a string to the screenvoiddrawString(float x, float y, String text, Color col, int startIndex, int endIndex) Draw part of a string to the screen.intget the height of the given stringintget the maximum height of any line drawn by this fontintget the width of the given stringintintint
-
Method Details
-
drawString
Draw a string to the screen- Parameters:
ERROR- The x location at which to draw the stringERROR- The y location at which to draw the stringERROR- The text to be displayed
-
drawString
-
drawString
Draw part of a string to the screen. Note that this will still position the text as though it's part of the bigger string.- Parameters:
ERROR- The x location at which to draw the stringERROR- The y location at which to draw the stringERROR- The text to be displayedERROR- The colour to draw withERROR- The index of the first character to drawERROR- The index of the last character from the string to draw
-
getHeight
get the height of the given string- Parameters:
ERROR- The string to obtain the rendered with of- Returns:
- The width of the given string
-
getWidth
get the width of the given string- Parameters:
ERROR- The string to obtain the rendered with of- Returns:
- The width of the given string
-
getWidth
-
getWidth
-
getWidth
-
getLineHeight
int getLineHeight()get the maximum height of any line drawn by this font- Returns:
- The maxium height of any line drawn by this font
-