Re: Turn off font hinting?
Re: Turn off font hinting?
- Subject: Re: Turn off font hinting?
- From: Alastair Houghton <email@hidden>
- Date: Tue, 5 Jan 2010 17:29:22 +0000
On 4 Jan 2010, at 21:47, Sander Stoks wrote:
> 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?
How are you drawing your NSString? Are you using NSLayoutManager? If so, try sending your layout manager the -setUsesScreenFonts: message with the argument NO and see if that fixes the issue.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden