xlucn / fontpreview-ueberzug

preview fonts in fzf
MIT License
163 stars 11 forks source link

Emoji in preview text? #12

Open vatosarmat opened 3 years ago

vatosarmat commented 3 years ago

Looks like Unicode notation \Uxxxx and emoji aren't supported. I've tried fontpreview -t 😀 but it didn't work.

xlucn commented 3 years ago

I also had this. I couldn't make color emoji work after a while of research. For JoyPixels apparently imagemagick is not able to read the font:

$ convert xc:white -font JoyPixels -annotate +0+0 "😀" example.png
convert: unable to read font `/usr/share/fonts/joypixels/JoyPixels.ttf' @ error/annotate.c/RenderFreetype/1505.

However the following command works, but I haven't tried to extend this usage to work with fontpreview-ueberzug. I might look into it later. Suggestions and help to make special font work in the preview script are welcome.

$ convert pango:'Hello! 😀How are you?' example.png