Fixed default font
This commit is contained in:
@@ -36,11 +36,7 @@ public class Fonts {
|
|||||||
for (String line : text.split("\n")) {
|
for (String line : text.split("\n")) {
|
||||||
w = Math.max(w, getWidth(line, getFont(font)));
|
w = Math.max(w, getWidth(line, getFont(font)));
|
||||||
}
|
}
|
||||||
if (font == 0) {
|
return w;
|
||||||
return w * 2;
|
|
||||||
} else {
|
|
||||||
return w;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int getWidth(String text, Identifier font) {
|
private static int getWidth(String text, Identifier font) {
|
||||||
|
|||||||
Reference in New Issue
Block a user