I'm running some FunctionalJavascript tests from https://www.drupal.org/node/3036850/qa in order to create screenshots for the User Guide.

Currently I'm running 7 languages. Most of them are working well, but the Chinese and Japanese screenshots seem to be missing fonts in the chrome/chromedriver browser where the screenshots come from.

Here's an example image that was produced for Japanese:
non-working Japanese image

The other language that is failing is Simplified Chinese (zh-hans). The images there look very similar to that Japanese one (boxes instead of characters).

The fonts probably need to land in https://cgit.drupalcode.org/drupalci_environments/tree/webdriver/chromed... (according to @drumm).

CommentFileSizeAuthor
#3 3038054-add-cjk-fonts.patch830 bytesjhodgdon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon created an issue. See original summary.

jhodgdon’s picture

See also https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/syyO...

That forum post suggests some font packages, and says what you need is TTF fonts for each language, for Chrome/Chromium to be able to use them.

The suggested packages for Ubuntu are:

Japanese: ttf-takao-mincho, ttf-takao-gothic
Chinese: ttf-wqy-zenhei, ttf-arphic-uming, ttf-arphic-ukai
Korean: ttf-unfonts-extra, ttf-alee

Here's a list of font packages in Ubuntu currently:
https://packages.ubuntu.com/cosmic/fonts/
(Are we using Ubunutu?) Anyway, it seems like those font packages would be a good choice.

jhodgdon’s picture

Status: Active » Needs review
FileSize
830 bytes

Ah, looks like we are using Debian. Found font packages listed here:
https://packages.debian.org/stable/fonts/

So, here's a patch (totally untested of course) that hopefully (??) would add Chinese, Japanese, and Korean fonts to the chromedriver environment.

Mixologic’s picture

Status: Needs review » Postponed (maintainer needs more info)

Hey Thanks for the patch, I have applied it, rebuilt the docker containers and deployed them. Give it a shot and we'll see if it impacted what fonts chrome has available to it.

Please mark this issue fixed if the fonts worked.

jhodgdon’s picture

Status: Postponed (maintainer needs more info) » Fixed

Looks great for both Chinese and Japanese (we don't yet have a Korean translation of the User Guide, so I don't know about that, but if it comes up again I will open another issue). Thanks very much for the apply/rebuild!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.