回复: Question about zero render issue

Yi tiger <[email protected]>
Newsgroups gmane.comp.fonts.freetype.user
Message-ID <MEYP282MB157673E57BB1F6124215201CB2469@MEYP282MB1576.AUSP282.PROD.OUTLOOK.COM>
Alexei & Werner,

Your comments really solved my question, thank you very much.

Thanks,
Tiger

发送自 Windows 10 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>应用

发件人: Alexei Podtelezhnikov<mailto:[email protected]>
发送时间: 2021年4月21日 23:35
收件人: [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>
主题: Re: Question about zero render issue

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.