• 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: Unwanted clip of rotated text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unwanted clip of rotated text


  • Subject: Re: Unwanted clip of rotated text
  • From: Allan Odgaard <email@hidden>
  • Date: Mon, 23 Feb 2004 19:27:23 +0100

On 23. Feb 2004, at 18:58, Erez Anzel wrote:

I want to draw rotated strings into a vertical ruler. But the text
appears to get clipped by the unrotated clipping rect.

I'd be grateful for any solutions, workarounds or hints, such as how to
rotate the clipping rect (which I'll refer to as clipRect). This must
run on Mac OS X 10.2 minimum. [...]

Try to draw something else than text, I am almost certain that this will be drawn with the correct clip rect -- the problem is in NSString's drawText, at least I have previously had problems related with this in relation to clip rects and transformations.

My workaround was not to use NSString's text drawing functions but instead use ATSU. This is a hell of a lot more code, but it works...
_______________________________________________
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.
  • Follow-Ups:
    • Re: Unwanted clip of rotated text
      • From: Erez Anzel <email@hidden>
References: 
 >Unwanted clip of rotated text (From: Erez Anzel <email@hidden>)

  • Prev by Date: daemon processes at boot time
  • Next by Date: Filtering tableview problems
  • Previous by thread: Unwanted clip of rotated text
  • Next by thread: Re: Unwanted clip of rotated text
  • Index(es):
    • Date
    • Thread