One idea would be to draw the text into the view at the normal angle, then 
convert the contents of the view into an NSImage, put that into an NSImageView 
and rotate that instead. I'm not sure how good of a solution this is, or if 
there is a better solution, but I've found that manipulating images of elements 
rather than the elements directly is smoother.


Independent Cocoa Developer, Macatomy Software
http://macatomy.com


On 2010-01-04, at 2:47 PM, Sander Stoks wrote:

> Hello all,
> 
> I wrote some code to draw an NSString rotated by an arbitrary angle, which 
> can be manipulated interactively.  The results are surprisingly bad (compared 
> to how good font rendering is in general on the Mac).  Most notably, the 
> character positions "jump around" in whole pixel increments while I'm 
> rotating the text.  Usually, this is caused by hinting which tries to place 
> vertical and horizontal lines at integer pixels.  Does anyone know of a way 
> to switch this off (temporarily) for a given context?
> 
> Thanks in advance,
> Sander_______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/pcwiz.support%40gmail.com
> 
> This email sent to pcwiz.supp...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to