1
0
Fork 0

Bug Fixes

This commit is contained in:
MrDev023 2017-01-21 03:51:35 +01:00
parent 58e0435cb8
commit 0a34862090
7 changed files with 102 additions and 109 deletions

View file

@ -28,7 +28,8 @@ public class Texture {
}
public static Texture loadFont(String text, Color color, String font, int size){
Font f_font = new Font(font, Font.PLAIN, size);
text = text.toUpperCase();
Font f_font = new Font(font, Font.BOLD, size);
// to get the width of the text
BufferedImage img = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);