Hi, is it possible to embed a font in a JAR-package?
Because I have a small program that uses a custom font, but I want to be sure that the text displays correctly on other computers as well.
Thanks in advance!
Hi, is it possible to embed a font in a JAR-package?
Because I have a small program that uses a custom font, but I want to be sure that the text displays correctly on other computers as well.
Thanks in advance!
Yes, through a combination of Font.createFont() and ClassLoader.getResourceAsStream().
Got it working, thanks Reiger.
Bookmarks