Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Change ascent value on Font LineMetrics  RSS feed

 
Joao Cunha
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

How can I set the ascent value of a font?
I'd Like to have the text height equal to the font size. So, if the font size is 20, I'd like to have the text height equal 20, without any spacing at the top and bottom of the text.

The code to get the ascent of font is:


Thanks a lot for the help!
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!