posted 17 years ago
I am using a font in my program which may not be available to my users. I need to distribute the ttf file for the font along with my application JAR. Can anyone please advice where I need to place the ttf file within my application directory in order to be able to load it from within my program and also distribute it as part of my JAR. (I am using NetBeans 5.5)
Thanks a lot in advance!
I used the following code as suggested in another forum,
URL url = getClass().getResource("ARIALUNI.ttf");
File f = new File(url.toURI());
font=Font.createFont(Font.TRUETYPE_FONT,f);
But this didnt work either...
No idea of how to do it.....