Re: Problem: how to get glyph descent and ascent
Re: Problem: how to get glyph descent and ascent
- Subject: Re: Problem: how to get glyph descent and ascent
- From: Anders Lassen <email@hidden>
- Date: Tue, 23 Jun 2009 19:32:36 +0200
Hi,
I am working on a project that involves writing math formulas.:
2 * x^2 + sqrt(3)
--------------------- + aB
3
note that the above is only to explain, what I mean by math formulas.
In my project, I have a object type that handles letters. Because
letters must be aligned to special math symbols I need to know the
ascent and descent of the character.
But maybe, I have now found a way to do this, although it is not
tested yet.
I hope that the function:
ATSUGetUnjustifiedBounds
will help me.
Anders Lassen
On Jun 23, 2009, at 7:10 PM, I. Savant wrote:
On Jun 23, 2009, at 12:44 PM, Anders Lassen wrote:
To clarify this and my original question: It is easy to find
infomation about how to get a fonts ascent and descent, but I cant
find any info about getting ascent/descent fot individual glyph
What exactly are you trying to accomplish? In other words, what are
you using this information for? Because there doesn't seem to be a
way to do this easily / directly for individual glyphs, the best way
forward likely depends heavily on your ultimate goal.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden