Possible Duplicates:
Accessing custom font from Jar
embedding a font in Java
Java offers a Font class which can be use to modify fonts in Swing GUI applications.
I would like to use a special font for my application and I don't want to rely on the fact that it may or may not be installed on a PC. I would like to embedded it in my Java Swing application.
Is this possible? How can I achieve this? I guess I need to add the font as a resource, what should be the format? How to load this resource into a Font class (or any appropriate class)? Has anyone achieved this successfully?