Method | Description | |
---|---|---|
clampText ( |
Clamp the text to fit on a limited space. Should be only used with single line Strings.
|
|
measureText ( |
Measures the Size of a Text.
|
public static clampText ( |
||
g | Graphics object used to draw the text | |
text | string | The string with the text to be clamped |
font | The font that will be used to render the text | |
maxWidth | int | The maximum space the text can use |
return | string |
public static measureText ( |
||
g | Graphics object used to draw the text | |
text | string | The text |
font | Font used to draw the text | |
return |