Re: Unwanted clip of rotated text
Re: Unwanted clip of rotated text
- Subject: Re: Unwanted clip of rotated text
- From: Douglas Davidson <email@hidden>
- Date: Tue, 24 Feb 2004 09:38:50 -0800
On Feb 23, 2004, at 7:03 PM, Erez Anzel wrote:
Thanks, Allan, for hinting that I should stop banging my head against
the wall. If you had problems with undesired clipping as well, then I
should look elsewhere. You pointed me towards ATSU, which smelled of
Carbon. So instead I looked to the CircleView example from Apple
(AppKit), and "simplified" it. It sure is "expensive" code just to
rotate text 90 degrees; maybe one day Cocoa will have something
simpler, waiting for the taking.
You're on the right track here, but you could save a lot of the work
and code by not drawing each glyph individually. The CircleView
example needs a different transform for each glyph, but you don't--you
can just perform one overall transform, then ask for all of the glyphs
to be drawn at once.
We know about clipping problems under some circumstances with the stock
string drawing code, but unfortunately it's very difficult to make
changes in this area due to backward compatibility issues. We are
working on potential solutions for this.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.