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

Is it possiable using [png](https://lib.rs/crates/png) for decode emoji png? #48

Open
declantsien opened this issue Mar 5, 2024 · 2 comments

Comments

@declantsien
Copy link

I am having an issue using swash with WebRender glyph rasterizer. The swash-demo works just fine. So I guess it's that webrender using different gl shader when rendering font glyphs.

Without any changes to swash this is output of emojis using wr_glyph_rasterizer

swappy-20240305_122521

My fork using png crate's decode

swappy-20240305_122140

@notgull
Copy link

notgull commented Mar 5, 2024

Agreed on this count. swash shouldn't try to re-invent the wheel.

@declantsien
Copy link
Author

Also resizing the emoji pngs is not necessary in my case. wr_glyph_rasterizer just need to know the scale of the Image

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