Inlyne-Project/inlyne

Bug: emojis like ๐Ÿš€ are not shown

Closed this issue ยท 7 comments

Bug: emojis like ๐Ÿš€ are not shown

We don't have font fallback setup for using multiple fonts to render the same block of text, so that all depends on what the font that gets picked for rendering supports

I think you could fix this (and generally greatly improve text rendering quality) by using https://github.com/pop-os/cosmic-text for text

I've been following it's development, and it's definitely been on my wishlist to use for this project. Just haven't had the time to try switching over

Just noticed that cosmic-text is getting integrated into iced. May be able to pull some inspiration from those changes

iced-rs/iced#1830

image

Got cosmic text 80% working but with severe performance penalties in it's current state. Hope to fix things up to a PR ready state soon!

Amazing. Do you have a glyph cache setup yet? It's my understanding that this is key to good performance with cosmic text as glyph rendering is done on the CPU and relatively slow.

Not yet. I've only done enough to just get it in a semi working state. Getting everything working smoothly is going to require quite a bit of redesign.