• Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT Fontmetrics  RSS feed

 
muthu muruges
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to change the default fontmetrics in AWT?, I want to change the default ascent,descent and height attributes of the fontmetrics to a differnt value.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't change the FontMetrics... you change the Font. FontMetrics just gets its values from the current Font.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!