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 protected])

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 [email protected]

Reply via email to