• 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: (freely) Rotating Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >(freely) Rotating Text (From: Thomas Bruhin <email@hidden>)
 >Re: (freely) Rotating Text (From: Douglas Davidson <email@hidden>)
 >Re: (freely) Rotating Text (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Trouble with Cocoa windows in the Finder
  • Next by Date: Re: NSView scrolling (NSTextView)
  • Previous by thread: Re: (freely) Rotating Text
  • Next by thread: Re: (freely) Rotating Text
  • Index(es):
    • Date
    • Thread