Closed matthew-morris-cessda closed 8 months ago
When packaged into a JAR/WAR archive this.getClass().getResource("/fonts").getPath() won't return a path that is usable by fontProvider.addDirectory(). This PR explicitly adds the fonts using IOUtils.resourceToByteArray() to prevent this issue.
this.getClass().getResource("/fonts").getPath()
fontProvider.addDirectory()
IOUtils.resourceToByteArray()
When packaged into a JAR/WAR archive
this.getClass().getResource("/fonts").getPath()
won't return a path that is usable byfontProvider.addDirectory()
. This PR explicitly adds the fonts usingIOUtils.resourceToByteArray()
to prevent this issue.