You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means that any font file you want to load must be on the Java classpath. It would be nice to be able to load font images from any arbitrary file path instead.
As a workaround, you can add a directory containing your images to the classpath, and use a relative path when creating your AsciiFont. The way I ended up implementing this workaround in Gradle is as follows:
jar {
manifest {
attributes('Class-Path': '..')
}
}
(I used .. rather than . because my JAR was in a lib directory, and my paths were relative to the containing directory, but this should work in other situations too.)
The text was updated successfully, but these errors were encountered:
loadGlyphs()
uses the Java class loader to load image resources:AsciiPanel/src/main/java/asciiPanel/AsciiPanel.java
Line 373 in 4af3541
This means that any font file you want to load must be on the Java classpath. It would be nice to be able to load font images from any arbitrary file path instead.
As a workaround, you can add a directory containing your images to the classpath, and use a relative path when creating your
AsciiFont
. The way I ended up implementing this workaround in Gradle is as follows:(I used
..
rather than.
because my JAR was in alib
directory, and my paths were relative to the containing directory, but this should work in other situations too.)The text was updated successfully, but these errors were encountered: