Re: Pixel-perfect migration from ATSUI to Core Text
Re: Pixel-perfect migration from ATSUI to Core Text
- Subject: Re: Pixel-perfect migration from ATSUI to Core Text
- From: Alastair Houghton <email@hidden>
- Date: Wed, 31 Aug 2016 19:08:17 +0100
On 31 Aug 2016, at 15:52, Andreas Falkenhahn <email@hidden> wrote:
>
> But I still don't understand how computing glyph positioning manually
> should work around the fact that there are no APIs that measure the text
> like ATSUI. I mean, internally, CTLineGetOffsetForStringIndex() probably
> does exactly that, it returns the positioning obtained from CTRunGetAdvances().
You need to get the advances of individual glyphs, and sum the rounded values.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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