我正在使用 ImageMagick(在 NodeJS 中)在 svg 图像上写入一个字符串。
如果字符串中包含标准的 unicode 表情符号,则会呈现为“?”。
"This string has a 🇫🇷 emoji in it"
渲染为:
"This string has a ? emoji in it"
有没有办法让 ImageMagick 用实际的表情符号渲染字符串?
最佳答案
来自 this forum thread 中的 ImageMagick 管理员2016 年 7 月:
We made an initial attempt at supporting color Emoji's and could not get it working. We don't have an ETA on when we will add support. In the mean-time, any user is welcome to submit a patch against the current code base to support color Emoji's.
这很可能是目前的情况。
This answer不过,声称 Freetype 和一个名为 ftview 的工具支持渲染 Emoji。检查一下,也许值得一试。
关于node.js - ImageMagick:字符串中的表情符号被写成问号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39798879/