Skip to content

Commit 8a20a4d

Browse files
committed
add items from the theme
1 parent c04074c commit 8a20a4d

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

app/src/processing/app/Toolkit.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,9 @@ static private Font createFont(String filename, int size) throws IOException, Fo
724724
File fontFile = new File(System.getProperty("java.home"), "lib/fonts/" + filename);
725725
if (!fontFile.exists()) {
726726
// if we're debugging from Eclipse, grab it from the work folder (user.dir is /app)
727-
fontFile = new File(System.getProperty("user.dir"), "../build/shared/lib/fonts/" + filename);
727+
//fontFile = new File(System.getProperty("user.dir"), "../build/shared/lib/fonts/" + filename);
728+
// if we're debugging Java Mode from Eclipse, user.dir is the work folder
729+
fontFile = new File(System.getProperty("user.dir"), "../../build/shared/lib/fonts/" + filename);
728730
}
729731
BufferedInputStream input = new BufferedInputStream(new FileInputStream(fontFile));
730732
Font font = Font.createFont(Font.TRUETYPE_FONT, input);

0 commit comments

Comments
 (0)