Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The problem of Chinese disorderly code #1143

Closed
lisiyizu opened this issue Oct 24, 2017 · 13 comments
Closed

The problem of Chinese disorderly code #1143

lisiyizu opened this issue Oct 24, 2017 · 13 comments

Comments

@lisiyizu
Copy link

my puppeteer web deploy in heroku!
the test heroku site: https://urlforpdf.herokuapp.com/urltoimg?url=http://www.baidu.com
The problem of Chinese disorderly code:

image

@dickeylth
Copy link
Contributor

You're missing fonts support on the system, try install Chinese fonts, for example in RedHat/CentOS:

yum install wqy-unibit-fonts.noarch wqy-zenhei-fonts.noarch -y

@Samlin901211
Copy link

Ubuntu: try to install sudo apt-get install fonts-wqy-zenhei

@lisiyizu
Copy link
Author

lisiyizu commented Oct 25, 2017

the proplem is solved!
heroku need the buildpack:heroku-buildpack-converter-fonts
https://elements.heroku.com/buildpacks/debitoor/heroku-buildpack-converter-fonts

@broncha
Copy link

broncha commented Nov 15, 2017

I have installed ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy but none of them is working!

@fly0o0
Copy link

fly0o0 commented Apr 10, 2018

Thanks dickeylth!

@Code1912
Copy link

Code1912 commented Jul 3, 2018

@dickeylth thx

@JasonBoy
Copy link

JasonBoy commented Aug 6, 2018

@dickeylth thx, fix the issue in centos7.3

@xgqfrms
Copy link

xgqfrms commented Oct 9, 2018

CentOS 7 & Puppeteer

test ok

# root
$ yum groupinstall "Chinese Support"
$ yum groupinstall "Font"

@jiahut
Copy link

jiahut commented Dec 11, 2018

By the way, I had packed a image at hub.docker

docker pull jiahut/puppeteer

@ruenke
Copy link

ruenke commented Oct 22, 2020

Ubuntu: try to install sudo apt-get install fonts-wqy-zenhei

same problem in debia system was solved by use this cmd!

@arika163
Copy link

same problem in alpine docker image. was solved by use the following cmd
apk add wqy-zenhei --update-cache --repository http://nl.alpinelinux.org/alpine/edge/testing

@21paradox
Copy link

手动安装notosans字体的方法 (manual install notosans method)

wget https://github.com/googlefonts/noto-cjk/releases/download/Sans2.004/08_NotoSansCJKsc.zip
unzip 08_NotoSansCJKsc.zip
mv NotoSansCJKsc-* ~/.local/share/fonts
fc-cache
fc-list

@andyliu1985
Copy link

render or Heroku can install fonts like this

wget https://github.com/notofonts/noto-cjk/raw/main/google-fonts/NotoSerifSC%5Bwght%5D.ttf && mkdir -p ~/.local/share/fonts/noto && cp *.ttf ~/.local/share/fonts/noto && fc-cache -f -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests