RE: Simple way to find out baseline for NSAttributedString?
RE: Simple way to find out baseline for NSAttributedString?
- Subject: RE: Simple way to find out baseline for NSAttributedString?
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Thu, 4 Sep 2003 13:27:43 -0400
>
I am trying to calculate the overall metrics for an NSAttributedString
>
(to display on a single line) -- basically, its total height, width,
>
and offset from the bottom the the baseline. I can use
>
-[NSAttributedString size] to get the width and height of the string --
>
but what about the baseline?
>
Have you looked at NSFont's ascender, descender, and
defaultLineHeightForFont methods?
Jonathan
_______________________________________________
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.