Re: Cocoa text via Quartz CGLayer
Re: Cocoa text via Quartz CGLayer
- Subject: Re: Cocoa text via Quartz CGLayer
- From: Sander Stoks <email@hidden>
- Date: Sat, 6 Feb 2010 21:55:59 +0100
Hi Aki,
Thanks! That was indeed the problem. I checked whether my whole CGLayer detour was still needed after disabling screen fonts (the reason was that rotated text looked bad) but I see that's still the case even with screen fonts disabled.
Thanks again,
Sander
On Feb 6, 2010, at 7:54 PM, Aki Inoue wrote:
> It's the screen font setting that's causing the shift between the two.
>
> When you use the screen font, CoreGraphics tries to position the glyph origin at the pixel boundary as much as possible.
>
> In this case, because of the way two rendering types differ how interpret the pixel boundary, the shift could occur.
>
> The best solution is to disable the screen font via [layoutManager setUsesScreenFonts:NO] to both cases.
>
> Aki
_______________________________________________
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