| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -724,7 +724,9 @@ static private Font createFont(String filename, int size) throws IOException, Fo | |||
| 724 | 724 | File fontFile = new File(System.getProperty("java.home"), "lib/fonts/" + filename); | |
| 725 | 725 | if (!fontFile.exists()) { | |
| 726 | 726 | // 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); | ||
| 728 | 730 | } | |
| 729 | 731 | BufferedInputStream input = new BufferedInputStream(new FileInputStream(fontFile)); | |
| 730 | 732 | Font font = Font.createFont(Font.TRUETYPE_FONT, input); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments