samhocevar / emoji.wpf

😸 Emoji support for WPF
Do What The F*ck You Want To Public License
369 stars 43 forks source link

[Feature Request] Support SVGINOT Format of Font #42

Open CoelWu opened 3 years ago

CoelWu commented 3 years ago

I was managed to make emoji.wpf to load fonts other than Segeo UI Emoji/Symbol. However, emoji.wpf seem to have a render issue when rendering fonts that are in SvgInOt format.

Rendering result of emoji.wpf fontviewer:

image

Rendering result of Character Map (A UWP application): image

Here is the font project I use: https://github.com/eosrei/twemoji-color-font

samhocevar commented 3 years ago

This will be hard to implement properly, but I’ll try to investigate this.

In the meantime, you may be interested in https://github.com/mozilla/twemoji-colr which is a version of twemoji that Emoji.Wpf will be able to render.

CoelWu commented 3 years ago

Hi, thank you so much for replying! It seems like emoji.wpf still have some issues rendering it(twemoji-colr):

image

The country/region could not be displayed properly.

While there are presented in the Font file, I can see them in Fontlab(A font editing software):

image

samhocevar commented 3 years ago

I had a closer look and it was caused by the ligatures not being properly applied. It should work properly with Emoji.Wpf 0.3.3:

image

There are still some problems with the U+FE0F character which is supposed to be invisible but still takes some space. I will try to fix that, too, but I hope this is already acceptable for you!

You may also be interested in the Openmoji project which has a COLR/CPAL font in the works, too: https://github.com/hfg-gmuend/openmoji/pull/260

CoelWu commented 3 years ago

Hi, Thank you so much for fixing! This is already acceptable for me. It would be great if U+FE0F character would be hidden since now some emoji take larger space than others.

jairbubbles commented 2 years ago

Hi @CoelWu, I made a simple fix for the rendering issue with Twemoji !55.