Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Clip text when using clip_path in AGG#10811
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Thanks for the PR! Can this get a descriptive title that does not refer to the issue number? But please refer to issue number in the text of the PR. You will get more reviewers if they know what this is about |
Does this mean that this clipping was working correctly with pdf / svg / eps / cairo backends? Any idea what is going wrong with the tests? The "gw3] node down: Not properly terminated" warnings make me concerned that there is a segfault or similar introduced by this change. Good job chasing this down to the Agg level! |
@ronnh, are you planning to come back to this? It'll need a rebase, and will need to pass the tests. |
I rebased this, and tried for quite a while to figure out why it was crashing, but right now I don't think this is quite the correct way to do it. It changes the type of the source image in the C code, but not the Python side. But doing that change on the Python side would be quite a far-reaching thing. This needs to be a bit more focused on the scanline rendering part, only. Since this has not been touched for about 2 years and isn't working, I'm going to close this. Please re-open if you decide to come back to this. |
PR Summary
In response to issue#8270
Added a partial fix for when the text is not clipped.
When the text is being rendered, inside _backend_agg.h the draw_text_image function is not handling whether the text need to be clipped or not. Thus we added a condition to check. Currently if it needs to be clipped it will be rendered as an image.
Currently a clippath cannot be initialized together with the text because there is a separate where the clippath is not being passed properly.
With this fix a clippath can be added like this.
PR Checklist