Re: Question about zero render issue

Alexei Podtelezhnikov <[email protected]>
Newsgroups gmane.comp.fonts.freetype.user
Message-ID <CAJU=AjVtrjsGuNCio8vnVZz+fsYptSd9tztqTAr3+D=0aQt67A@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.