mirror of
https://github.com/badvision/jace.git
synced 2024-11-28 10:52:33 +00:00
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;
|
initialized = true;
|
||||||
font = new int[256][8];
|
font = new int[256][8];
|
||||||
Thread fontLoader = new Thread(() -> {
|
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);
|
Image image = new Image(in);
|
||||||
PixelReader reader = image.getPixelReader();
|
PixelReader reader = image.getPixelReader();
|
||||||
for (int i = 0; i < 256; i++) {
|
for (int i = 0; i < 256; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user