Page MenuHomePhabricator

SVG rasterizer renders non Latin text as tofu glyph randomly (as thumbor-k8s lack noto fonts)
Closed, ResolvedPublicBUG REPORT

Description

Some SVG images with non Latin text such as Chinese or Japanese when uploaded to Wikimedia, the non Latin text in the PNG render turn into tofu glyph completely. This issue happens very randomly. Sometimes it fixed itself after I had re-uploaded the SVG with non-essential changes; the other time it reverts to tofu glyph again. It doesn't matter whether we specify the exact typeface for the non Latin character or not.

SVG files observed with this glitch are File:Tokyu Railways topological diagram.svg and File:Min Kingdom, 945 v2 (zh-hans).svg.

Event Timeline

Change 912258 had a related patch set uploaded (by Hnowlan; author: Hnowlan):

[operations/software/thumbor-plugins@master] Install noto fonts by default

https://gerrit.wikimedia.org/r/912258

The inconsistency here is between old Thumbor and thumbor-k8s - older hosts had some noto fonts installed but the (much more minimal) docker images used in k8s don't. Installing more font packages fixes this issue.

Aklapper renamed this task from SVG rasterizer renders non Latin text as tofu glyph randomly to SVG rasterizer renders non Latin text as tofu glyph randomly (as thumbor-k8s lack noto fonts).Apr 26 2023, 11:27 AM

Change 912258 merged by jenkins-bot:

[operations/software/thumbor-plugins@master] Install noto fonts by default

https://gerrit.wikimedia.org/r/912258

Change 912801 had a related patch set uploaded (by Hnowlan; author: Hnowlan):

[operations/deployment-charts@master] thumbor: new image version

https://gerrit.wikimedia.org/r/912801

Change 912801 merged by jenkins-bot:

[operations/deployment-charts@master] thumbor: new image version

https://gerrit.wikimedia.org/r/912801

These images have been purged. Closing for now, please reopen if you see more encoding issues.

hnowlan claimed this task.

FYI, SVG authors consider this to be the official list of supported fonts:

https://noc.wikimedia.org/conf/fc-list

FYI, SVG authors consider this to be the official list of supported fonts:

https://noc.wikimedia.org/conf/fc-list

Obligatory insertion of T335271. This ^ URL is going to become increasingly out of date and thus not useful pretty soon. On the plus side, we might now be able to generate and publish that file more easily.