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

resvg silently skips emoji when raster-images feature is turned off #865

Open
si14 opened this issue Dec 17, 2024 · 3 comments
Open

resvg silently skips emoji when raster-images feature is turned off #865

si14 opened this issue Dec 17, 2024 · 3 comments

Comments

@si14
Copy link

si14 commented Dec 17, 2024

Reproduction repo: https://github.com/si14/resvg-emoji-bug

With raster-images enabled:

with-raster-images

Without:

without-raster-images

That was quite fun to debug 😅

@RazrFalcon
Copy link
Collaborator

How about enabling logs? It would print "Images decoding was disabled by a build feature.".

@si14
Copy link
Author

si14 commented Dec 18, 2024

@RazrFalcon at the very least the requirement is not reflected in the documentation or the log message itself. Emoji fonts might secretly be images and thus require raster-images, but it's not trivially evident.

@RazrFalcon
Copy link
Collaborator

Yes, we should add logging to examples and update docs.

Emoji fonts might secretly be images

They are PNGs in 99% of the cases.

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

No branches or pull requests

2 participants