textimg icon indicating copy to clipboard operation
textimg copied to clipboard

Emoji TTF font setting not working

Open noraj opened this issue 1 year ago • 22 comments

Describe the bug

Emoji TTF font setting not working.

To Reproduce

Whatever the TTF font I use from the env. var. or with the option, emojis are not displayed.

# set emoji font in env var
export TEXTIMG_EMOJI_FONT_FILE=/usr/share/fonts/noto/NotoColorEmoji.ttf
export TEXTIMG_EMOJI_FONT_FILE=/usr/share/fonts/joypixels/JoyPixels.ttf
# from env var
echo あ😃a👍!👀ん👄 | ./textimg -i -o emoji.png
# explicit option
echo あ😃a👍!👀ん👄 | ./textimg -i -e /usr/share/fonts/joypixels/JoyPixels.ttf -o emoji.png

Output image:

emoji

Expected behavior

Emoji displayed as in the documentation https://github.com/jiro4989/textimg#emoji-font-ttf.

Environment (please complete the following information)

  • OS: ArchLinux
  • Version: textimg 3.1.7

noraj avatar Feb 05 '23 22:02 noraj