Re: (freely) Rotating Text
Re: (freely) Rotating Text
- Subject: Re: (freely) Rotating Text
- From: Douglas Davidson <email@hidden>
- Date: Mon, 2 May 2005 10:32:58 -0700
On May 2, 2005, at 10:09 AM, Stephane Sudre wrote: Isn't there also a limitation with the bounds of the view?
IIRC what I've seen in the past, depending on the order in which you do the translation and rotation, you might end up with a cut or blank string.
There have been some bugs in this area, but this would be the solution I would try first. If you do run into problems with this, you can try e.g. using an NSCell for drawing, using an NSTextView subview or a custom subview with a rotated coordinate system, or using an NSLayoutManager--all of these have different characteristics. If you do end up using an NSLayoutManager, you can modify the CircleView example to remove the for(glyphIndex... loop and call drawGlyphsForGlyphRange: with a range (0, [layoutManager numberOfGlyphs]). If you run into problems with this last solution, then I can probably help with those, but the original poster didn't mention any specific issues. The trickiest part, however, is getting the correct affine transform, which is an issue that would occur with any solution.
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