• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: boundingRectForGlyphRange is very inaccurate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >boundingRectForGlyphRange is very inaccurate (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: boundingRectForGlyphRange is very inaccurate (From: Ken Thomases <email@hidden>)
 >Re: boundingRectForGlyphRange is very inaccurate (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: boundingRectForGlyphRange is very inaccurate (From: Ken Thomases <email@hidden>)
 >Re: boundingRectForGlyphRange is very inaccurate (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: boundingRectForGlyphRange is very inaccurate
  • Next by Date: needsDisplay and subviews
  • Previous by thread: Re: boundingRectForGlyphRange is very inaccurate
  • Next by thread: Binding NSTextField to an array
  • Index(es):
    • Date
    • Thread