freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Decomposing complicated glyphs


From: Michiel Kamermans
Subject: Re: [ft] Decomposing complicated glyphs
Date: Mon, 05 Apr 2010 09:08:23 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0

On 4/5/2010 5:08 AM, Ian Britten wrote:
So, can you confirm then that outer boundaries are always stored in one direction, and islands/holes are stored in the other? [ I'm not familiar with the TT file format. I could experiment, but I'd rather not base my final solution just on observations... ]

Technically it simply looks at directional nesting. The outermost vector will go in one direction, a contained vector in the other, a contained vector in that, original direction, a contained vector in that, the other, etc. etc.

Note that while programs like FontForge save fonts in such a way that the outermost vector is always counter-clockwise, this is not a requirement for TrueType outlines, so you may encounter fonts that don't follow that rule, and are perfectly legal TTF.

- Mike "Pomax" Kamermans
nihongoresources.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]