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

Fix #870: Added the stylesheet option to the C API #873

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

michabay05
Copy link

Fix #870. I made slight changes the resvg/crates/c-api/resvg.h and resvg/crates/c-api/lib.rs. Take a look at #870 for more details.

@waywardmonkeys
Copy link
Collaborator

I can review this in about 36-48 hours. Feel free to ping me here if I forget!

@michabay05
Copy link
Author

@waywardmonkeys

Copy link
Contributor

@LaurenzV LaurenzV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me, although I would like someone with more C knowledge to confirm.

Copy link
Collaborator

@waywardmonkeys waywardmonkeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes by themselves seem fine, I think. But could you add / modify an example?

@michabay05
Copy link
Author

I have updated an existing example (resvg/crates/c-api/examples/cairo/example.c) to illustrate how the stylesheet option would apply.

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.

Can not set stylesheet path from c via the c-api
3 participants