Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange paths from some font sizes




On May 31, 2006, at 2:04 PM, Steve Mills wrote:

We're getting very strange results from calls to ATSUGlyphGetQuadraticPaths for some sizes of Geneva. Here are the results for the 'c' glyph in 2 sizes. Notice how the 9pt has only linetos, but the 8pt correctly has quadtos. What is causing totally different paths to be generated? The result is that the fonts/sizes that use only linetos look totally wrong, like rough polygons instead of smooth curves. The points listed are all the points sent to our callbacks.

I've seen this before and worked with some engineers at Apple on this during a Carbon kitchen. It's been a while, but as I recall what happens is that beyond a certain point size, the glyphs start running into precision problems with the math inside of ATS. As I recall, what I did to fix it, was to always ask for a 1000 pt font and then scaled the curves to the appropriate size.


Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Strange paths from some font sizes (From: "Steve Mills" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.