On Mar 8, 2017, at 12:42 AM, Gerriet M. Denkmann <gerri...@icloud.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to