jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes Loading Font through .ttf file but issue with the size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Loading Font through .ttf file but issue with the size" Watch "Loading Font through .ttf file but issue with the size" New topic
Author

Loading Font through .ttf file but issue with the size

buntha Choudhary
Ranch Hand

Joined: Jul 03, 2009
Posts: 136

I am loading a font from a .ttf file but the size is coming very small ie 1.
How to set that to a larger size

buntha Choudhary
Ranch Hand

Joined: Jul 03, 2009
Posts: 136

deriveFont is the responsible method to achieve
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Loading Font through .ttf file but issue with the size