freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Even-odd rule


From: Werner LEMBERG
Subject: Re: [ft-devel] Even-odd rule
Date: Thu, 07 Feb 2013 17:35:45 +0100 (CET)

> I think I read somewhere that TrueType should be rasterized with
> "non-zero" rule, isn't that true?

This is correct.

> Yes, I know FreeType supports both rules - I'm asking why it is the
> case.  Is the reason that it is "generic module" and can be used for
> different purposes than font rendering?

Yes.  You can feed (closed) outlines to the module which consist of
straight lines, second order, and third order Bézier curves

> Image FreeType could be used for font rendering only - would it
> still make sense to support both rules?

Well, supporting the even-odd rule is about 10 lines of code, so I
don't care :-) Besides this, the answer is clearly `yes': PostScript
Type 3 fonts can consist of arbitrary PostScript code, and PostScript
comes with both `fill' and `eofill' for filling using the non-zero and
even-odd rules, respectively.

FreeType doesn't contain a PS interpreter, thus Type 3 fonts are not
supported, but maybe someone is going to write an extension, who
knows...


    Werner



reply via email to

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