freetype
[Top][All Lists]
Advanced

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

Re: Question about zero render issue


From: Alexei Podtelezhnikov
Subject: Re: Question about zero render issue
Date: Wed, 21 Apr 2021 11:34:48 -0400

You can add this to mimic Adobe for this glyph

> error = FT_Load_Glyph(pFTFace, 3, FT_LOAD_DEFAULT);

   pFTFace->glyph->outline.flags |= FT_OUTLINE_EVEN_ODD_FILL;

> error = FT_Get_Glyph(pFTFace->glyph, &glyph);
> FT_Glyph_To_Bitmap(&glyph, FT_RENDER_MODE_NORMAL, 0, 1);

As Werner said, this is a matter of wrong contour orientation. Adobe
likely utilizes the even-odd winding rule at this size whereas
FreeType always defaults to the non-zero rule. Note that the even-odd
rule might have been expected in the old PostScript fonts, but
presently it will cause a lot of pain with modern variation fonts, and
TrueType in general.

Alexei



reply via email to

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