marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.55k stars 544 forks source link

CentOS Japanese characters not showing correctly on PDF #669

Closed 8432konia closed 2 years ago

8432konia commented 2 years ago

like #447 I published a pdf on centOS7, but only Japanese is not displayed.I have set ja_JP.UTF-8 in locale.conf, but nothing has changed. ref. https://www.server-world.info/query?os=CentOS_8&p=japanese

8432konia commented 2 years ago

I try command

$ localectl set-locale LANG=ja_JP.UTF-8
$ source /etc/locale.conf
8432konia commented 2 years ago

I resolved it by the following method.

$ sudo yum install ipa-gothic-fonts ipa-mincho-fonts