File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes How Does One Tell which {Font}s One Can Use? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How Does One Tell which {Font}s One Can Use?" Watch "How Does One Tell which {Font}s One Can Use?" New topic
Author

How Does One Tell which {Font}s One Can Use?

Kevin Simonson
Ranch Hand

Joined: Oct 22, 2011
Posts: 97
How does one tell which {Font}s one can use on one's machine? There's a {Font} constructor that takes as arguments a {String} and two {int}s. How does one determine what the legal values are for the {String} parameter?

Kevin S
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632


Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4522
    
    5

Additionally, if you need a Font that has glyphs for any but the most common characters, you can use the (IMHO rather badly named) canDisplayUpTo(...) method.


luck, db
There are no new questions, but there may be new answers.
 
Don't get me started about those stupid light bulbs.
 
subject: How Does One Tell which {Font}s One Can Use?
 
Similar Threads
GC
header in print method
Diff. between null & ""
the importance of wrappers
find the format of a string