• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I increase the size of a Font?

 
Ashok Pradhan
Ranch Hand
Posts: 180
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
deriveFont()
 
Brian Cole
Author
Ranch Hand
Posts: 908
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 180
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic