Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to be able to control value of UseNonZeroWinding #4

Closed
Zyl9393 opened this issue Feb 26, 2023 · 3 comments
Closed

Need to be able to control value of UseNonZeroWinding #4

Zyl9393 opened this issue Feb 26, 2023 · 3 comments

Comments

@Zyl9393
Copy link

Zyl9393 commented Feb 26, 2023

Over at golang#90 some discussion has been happening regarding incorrectly rendered glyphs. It appears (?) that true type fonts should generally set UseNonZeroWindOrder = true on the rasterizer. However, the rasterizer is inaccessible on instances of truetype.Face as well as in freetype.Context. Unless anyone knows more, we should make these accessible, i.e. change r to R in both structs. The value does not control any generated data and can be changed at any time between rasterization of glyphs.

@rcoreilly
Copy link
Member

sounds good -- will do so soon..

@rcoreilly
Copy link
Member

It was a lot simpler to just set UseNonZeroWindOrder = true on the rasterizer when it is first created. I verified that this fixes the issue -- Apple Chancery euro symbol had it, for example.

@Zyl9393
Copy link
Author

Zyl9393 commented Mar 30, 2023

As I said, not sure if a font could require even-odd winding order. The change does work for me, though. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants