Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Kevin Simonson
Ranch Hand
Posts: 198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!