aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How can I increase the size of a Font? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How can I increase the size of a Font?" Watch "How can I increase the size of a Font?" New topic
Author

How can I increase the size of a Font?

Ashok Pradhan
Ranch Hand

Joined: Dec 17, 2007
Posts: 180

I have Created a Font object by createFont() method by default its size is 1,How can I increase its size ,please help me.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
deriveFont()
Brian Cole
Author
Ranch Hand

Joined: Sep 20, 2005
Posts: 862
Michael Dunn wrote:deriveFont()


Be sure to pass a float value to deriveFont(), even if you want an integral font size.

Passing an int may not work as you might expect.
Ashok Pradhan
Ranch Hand

Joined: Dec 17, 2007
Posts: 180

Thanks !!!
 
Don't get me started about those stupid light bulbs.
 
subject: How can I increase the size of a Font?