• 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: underlining for misspelled words draws in the wrong place
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: underlining for misspelled words draws in the wrong place


  • Subject: Re: underlining for misspelled words draws in the wrong place
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 23 Feb 2005 14:31:27 -0800

On 2005-02-23 14:19:44 -0800 Robert Clair <email@hidden> wrote:

I use -[NSLayoutManager drawGlyphsForGlyphRange:atPoint:] with a transformed
coordinate system to display arbitrarily scaled, rotated and positioned text. The problem
is: the text is transformed as I expect, but the underlining isn't. It resolutely appears where
the text would be if I drew it without the transforms.

The spelling underline is drawn using a pattern, so it's not going to draw properly in an arbitrary coordinate system. It's designed to work with an arbitrary (non-rotated) NSTextView, but not with more general views. That's one reason why it's private and used only by NSTextView.


Douglas Davidson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: underlining for misspelled words draws in the wrong place
      • From: Robert Clair <email@hidden>
References: 
 >underlining for misspelled words draws in the wrong place (From: Robert Clair <email@hidden>)

  • Prev by Date: Re: Recommendations for localization management
  • Next by Date: Re: IB crash with custom binding
  • Previous by thread: underlining for misspelled words draws in the wrong place
  • Next by thread: Re: underlining for misspelled words draws in the wrong place
  • Index(es):
    • Date
    • Thread