LoginSignup
0
0

More than 5 years have passed since last update.

Chrome Headless - 2

Posted at

When use Headless Browsers to take screenshots of a web page, the non-English characters might not be displayed correctly if no right fonts installed.

To fix this, we have to install special fonts.

Fix Steps

Copy TTF files to /usr/share/fonts/east_asian

You can get TTF files from a windows PC(c:\windows\fonts or so), etc. Rename TTC to TTF if needed.

Restore Debian Font Cache

mkfontscale
# if this is not found, install it
# apt-get install ttf-mscorefonts-installer

mkfontdir

fc-cache -fv

Refresh System

Call . /etc/profile or reboot.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0