-
Notifications
You must be signed in to change notification settings - Fork 25
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
Bind hb-paint API #185
Bind hb-paint API #185
Conversation
Nice. Thanks. |
7d5e986
to
500c5f2
Compare
9f95ace
to
fafa235
Compare
I’m starting to think the PyCapsule stuff is not of much use here, since the C side would need to link to HarfBuzz to be able to access the various C objects ( The test failure is something I don’t understand. It seems that calling |
Tests in the next commit.
Test fonts and expected results are taking verbatim from HarfBuzz tests.
It does not seem to be of much use since the C callback functions need to link yo HarfBuzz to use its API to access various HarfBuzz objects.
For whatever reason, passing the individual functions as user_data results in a mixup between paint_color_glyph_func and push_clip_glyph_func. Passing the while PainFuncs instance instead seems to workaround this.
Coerces it to Python bool
Did you figure this out? |
No, but I did something different. I was passing the functions as user_data, but now I pass the PaintFuncs instance and access the functions from there. |
No description provided.