Re: Aliased text renders to the left of the drawing origin
Re: Aliased text renders to the left of the drawing origin
- Subject: Re: Aliased text renders to the left of the drawing origin
- From: Jens Alfke <email@hidden>
- Date: Thu, 6 May 2010 14:48:05 -0700
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 (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