• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Font metrics
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Font metrics


  • Subject: Font metrics
  • From: Andreas Mayer <email@hidden>
  • Date: Mon, 2 Feb 2004 05:33:56 +0100

I have a problem understanding font metrics.

I've got a font with these metrics:

boundingRectForFont.size.height: 21.893066
lineHeight: 16.000000
xHeight: 8.169434
capHeight: 12.568359
ascender: 12.568359
descender: -2.742188

Now, suppose I draw a string with that font using drawInRect:withAttributes:

At which position will the base line be when drawing in a flipped/non flipped view?


Thankful for any insight,

Andreas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Unicode and various NSString questions ...
  • Next by Date: Re: Multiple problems caused by changing NSThread sleepUntilDate interval
  • Previous by thread: Re: Unicode and various NSString questions ...
  • Next by thread: Proper use of controllers
  • Index(es):
    • Date
    • Thread