I use this and this commands to get the supported font of desired text:
$ printf '%x' \' | xargs -I{} fc-list ":charset={}"
/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf: Noto Color Emoji:style=Regular
$ python3 findfont.py
SHORTCAKE in /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf
But I get error when adding the text to GIF image:
$ convert -font /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf -fill white -pointsize 50 -annotate +30+150 '' input.gif out.gif
convert-im6.q16: unable to read font `/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf' @ error/annotate.c/RenderFreetype/1423.
Even I adding 'a' is not working:
$ convert -font /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf -fill green -pointsize 50 -annotate +30+30 'a' input.gif out.gif
convert-im6.q16: unable to read font `/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf' @ error/annotate.c/RenderFreetype/1423.
$ ls -la /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf
-rw-r--r-- 1 root root 10847156 Apr 25 2021 /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf
Other font with other text(including other unicode language) is working, such as noto with .ttc and non-noto with .ttf:
$ convert -font /usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc -fill green -pointsize 50 -annotate +30+30 '✽' input.gif out.gif
$ convert -font /usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf -fill green -pointsize 50 -annotate +30+30 '我' input.gif out.gif
How to add emoji text to GIF image?