Re: underlining for misspelled words draws in the wrong place
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