forked from Apple-2-Tools/jace
Fixed font missing issue when loading a packaged version of the application on OSX
This commit is contained in:
parent
9ce60ea00e
commit
09c1d78832
@ -45,7 +45,7 @@ public class Font {
|
||||
initialized = true;
|
||||
font = new int[256][8];
|
||||
Thread fontLoader = new Thread(() -> {
|
||||
InputStream in = ClassLoader.getSystemResourceAsStream("jace/data/font.png");
|
||||
InputStream in = Font.class.getClassLoader().getResourceAsStream("jace/data/font.png");
|
||||
Image image = new Image(in);
|
||||
PixelReader reader = image.getPixelReader();
|
||||
for (int i = 0; i < 256; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user