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

Poland example SVG does not render correctly #373

Open
sirxyzzy opened this issue Oct 7, 2023 · 1 comment
Open

Poland example SVG does not render correctly #373

sirxyzzy opened this issue Oct 7, 2023 · 1 comment
Labels
I-SVG A problem with the SVG Integration

Comments

@sirxyzzy
Copy link

sirxyzzy commented Oct 7, 2023

On the edge of the wings there are flecks of black, where they should render white, see the good and bad images, the "good" was using Edge to render, the bad was a screen shot from loading the example flag of poland when running the examples (cargo run --p with_winit)

(ignore scaling differences in the images)

good bad
@raphlinus
Copy link
Contributor

I believe this may be a very simple problem, the black splotches correspond to transparent regions in the SVG. There is a rectangle, but it's set as display="none" and that appears to respected by usvg (I haven't dug into it).

A workaround is to add --base-color white to the command line.

@simbleau simbleau added the I-SVG A problem with the SVG Integration label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-SVG A problem with the SVG Integration
Projects
None yet
Development

No branches or pull requests

3 participants