swash icon indicating copy to clipboard operation
swash copied to clipboard

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

Open declantsien opened this issue 11 months ago • 2 comments

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

declantsien avatar Mar 05 '24 04:03 declantsien

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

notgull avatar Mar 05 '24 04:03 notgull

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

declantsien avatar Mar 05 '24 05:03 declantsien