node.js - ImageMagick:字符串中的表情符号被写成问号

标签 node.js imagemagick imagemagick-convert

我正在使用 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/

相关文章:

imagemagick - 在 ImageMagick 命令行中将 RGB 转换为灰度

imagemagick - 我可以只链接没有冲突的文件吗?

node.js - 通过 mailgun 发送邮件

javascript - 在 node.js 中,为什么会有一个 util.isArray 和一个 Array.isArray?

node.js - 如何使用 imagemagick 在图像周围添加更多空白

javascript - jQuery 选择器和 Cheerio

c# - 在 Windows 服务器上启动 ImageMagick 进程失败,出现 "the specified module could not be found."

ruby-on-rails - 通过回形针上传大文本文件的性能问题

c++ - 在 vc++ 中哪里可以找到 ImageMagicK 操作描述的更多详细信息?

c# - 如何使用 Magick.Net 调整 jpeg 质量