my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Java Font Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Font" Watch "Java Font" New topic
Author

Java Font

Kingsley Mullers
Ranch Hand

Joined: Jan 14, 2005
Posts: 48
Hi, how can i print output or just one line of text so that it appears in a different font style e.g Arial font
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Where are you writing your output? There's no Java support for doing anything like that to the console, but in AWT or Swing you can control the fonts you use. Share a bit of code that generates output and we'll see if we can point you toward something good.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Font