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

Ot svg support #174

Merged
merged 12 commits into from
Jun 30, 2023
Merged

Ot svg support #174

merged 12 commits into from
Jun 30, 2023

Conversation

HinTak
Copy link
Collaborator

@HinTak HinTak commented Jun 29, 2023

It works as is. There is a small problem as I haven't figured out how to populate a c pointer from the python side, so the ctx/state is currently a global instead. If I can't figure it out soon I'll probably add a comment about it and just merge as is.

This is as far as it could go - use global _state in svg_init/svg_free,
accessing it via the input argument "ctx" as a pointer to a py_object.

Conflicts:
	examples/ot-svg-example.py
@HinTak
Copy link
Collaborator Author

HinTak commented Jun 30, 2023

The global needs to stay at least partially, as otherwise python does not know that the state object kept by the c-side needs to stay around for the next call.

@HinTak HinTak merged commit 2fa0834 into rougier:master Jun 30, 2023
7 checks passed
@HinTak HinTak deleted the ot-svg-support branch June 30, 2023 01:53
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

Successfully merging this pull request may close these issues.

None yet

1 participant