Re: boundingRectForGlyphRange is very inaccurate
Re: boundingRectForGlyphRange is very inaccurate
- Subject: Re: boundingRectForGlyphRange is very inaccurate
- From: Ken Thomases <email@hidden>
- Date: Wed, 08 Mar 2017 09:24:39 -0600
On Mar 8, 2017, at 12:42 AM, Gerriet M. Denkmann <email@hidden> wrote:
>
> Both boundingRectForGlyphRange and enumerateEnclosingRectsForGlyphRange are right in the case of lines just containing Ascii chars.
>
> But for more general cases (e.g. lines containing Thai chars) boundingRectForGlyphRange is wrong and enumerateEnclosingRectsForGlyphRange is still right.
It's not really about ASCII vs. Thai (or character sets in general), it's about the glyphs and whether they draw outside the line fragment rectangle. For example, plenty of ASCII characters would if the font were Zapfino.
> Sorry for my flawed initial tests. And thanks a lot for your help!
You're welcome! Glad I could help!
Cheers,
Ken
_______________________________________________
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