Make text aligned

This commit is contained in:
Minecon724 2024-10-04 18:40:10 +02:00
parent 0745a04b8e
commit cc99bf7f1d
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -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