Bug Fixes
This commit is contained in:
parent
58e0435cb8
commit
0a34862090
7 changed files with 102 additions and 109 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue