Re: Aliased text renders to the left of the drawing origin
On May 6, 2010, at 1:41 PM, Jonah Petri wrote: I'm seeing a problem with rendering of certain fonts, when rendering them in a graphics context where antialiasing has been disabled. In particular, ArialMT 11 pt seems to render its double-u's one pixel to the left of the origin point. Lots of glyphs extend to the left of the origin. It's especially common for italic letters with descenders. In some fonts, swashes extend way, way to the left. What is the value of boundingRect.origin.x? —Jens___ 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
Re: Aliased text renders to the left of the drawing origin
On May 6, 2010, at 5:12 PM, Jens Alfke wrote: On May 6, 2010, at 1:41 PM, Jonah Petri wrote: I'm seeing a problem with rendering of certain fonts, when rendering them in a graphics context where antialiasing has been disabled. In particular, ArialMT 11 pt seems to render its double-u's one pixel to the left of the origin point. Lots of glyphs extend to the left of the origin. It's especially common for italic letters with descenders. In some fonts, swashes extend way, way to the left. What is the value of boundingRect.origin.x? Zero, when I pass the options specified. -Jonah___ 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
Re: Aliased text renders to the left of the drawing origin
On May 6, 2010, at 2:40 PM, Jonah Petri wrote: Lots of glyphs extend to the left of the origin. It's especially common for italic letters with descenders. In some fonts, swashes extend way, way to the left. What is the value of boundingRect.origin.x? Zero, when I pass the options specified. Huh. Sounds like a bug, then: I would guess that the bounding box calculation doesn't take into account the effect of hinting on the glyph outlines. (Normal antialiased text rendering doesn't use hinting.) I think you could work around this by outsetting the bounding box by 1 pixel, since hinting is extremely unlikely to move anything by more than a pixel. —Jens___ 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