package-font /
Mark George on 4 Oct 2019 773 bytes Created the project

A test project to figure out how to package fonts in a Java application.


You can just run the project to test.

To create a standalone version you just need to run the installDist gradle target. In NetBeans, you do this using:

Right click the root project > Tasks > installDist

This generates a build/install/package-font folder which contains the standalone version.

Run by using the appropriate script in the bin folder (package-font.bat for Windows, and package-font for macOS, Linux).

If the script doesn't work it may be because Java is not in an obvious place. Add the following to the top of the script:

set JAVA_HOME="C:/Program Files/Java/jdk12.01"

Use the appropriate path for the Java location on your computer.