Can I use a specifc font in a Swing application without asking the user of the application to alter the font.properties file?

Sandip Chitale

The following resources may be helpful -

Jean-Baptiste Bugeaud adds...

You may use
Font.createfont(Font.TRUETYPE_FONT,this.getClass().getRessource("myfont.ttf"))

See http://java.sun.com/j2se/1.3/docs/api/java/awt/Font.html#createFont(int, java.io.InputStream) for details ...

Cool but only available in 1.3, and also works within applets!

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact