Make text aligned
This commit is contained in:
parent
0745a04b8e
commit
cc99bf7f1d
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ public class Renderer {
|
|||
Rectangle2D bounds = font.getStringBounds(text, frc);
|
||||
int textWidth = (int) bounds.getWidth();
|
||||
int textHeight = (int) bounds.getHeight();
|
||||
y += textHeight;
|
||||
String[] lines;
|
||||
|
||||
if (textWidth > TILE_SIZE) { // TODO ideally this should be splitting by word
|
||||
|
|
Loading…
Reference in a new issue