• Post Reply Bookmark Topic Watch Topic
  • New Topic

Loading font file from synth XML  RSS feed

 
Tom Josephits
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to make my entire program's look and feel run off a synth XML file so it would be easier to manage and have add-ons. The problem is, I need to be able to load a font file from a local directory, not in the fonts folder in the user's system. Would I do this just like an image or is there something else I need to do?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems to me you would just use the Font.createFont(int, File) method to create a Font from an arbitrary File. Check out the API documentation for details about that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!