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

ttf_outline_evenodd_base is calling ttf_outline_evenodd_base only for x component #22

Open
uuxxaa opened this issue Apr 17, 2024 · 0 comments

Comments

@uuxxaa
Copy link

uuxxaa commented Apr 17, 2024

The signature of ttf_outline_evenodd is

bool ttf_outline_evenodd(const ttf_outline_t *outline, const float point[2], int subglyph_order)

I noticed that ttf_outline_evenodd_base is calling ttf_outline_evenodd_base only for x component

 int res = ttf_outline_evenodd_base(outline, &outline->cont[contour].pt[test_point].x, i, &dist);
                                                                                    ^
                                                                                    ^

Shouldn't it be?

 int res = ttf_outline_evenodd_base(outline, &outline->cont[contour].pt[test_point], i, &dist);

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

1 participant