Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phantomjs font rendering issue

Using phantomjs v1.9.7, the latest version, there's a problem rendering some characters on my production server. No problems on dev server.

In rendering the phantomjs.org homepage, the fonts with "strong" tag or some kind of bold font like "700em" render correctly, but normal font-weight aren't.

I haven't noticed this problem with any other urls yet.

Also all Chinese characters from any url (that I've checked so far) render with boxes on the production server, but correctly on the dev server.

I have no idea what the problem is.

Here's a screenshot of a section of http://phantomjs.org for each server:

production server - debian 7 stable phantomjs.com - production server - debian 7 stable

dev server - debian 8 testing phantomjs.com - dev server - debian 8 testing


Here's the screenshots of http://taoboa.com

production - debian 7 stable

taobao.com - production server -debian 7 stable

dev server - debian 8 testing

taobao.com - dev server - debian 8 testing

Any thoughts? Thanks for the help.

like image 602
Jeff Agee Avatar asked Oct 30 '25 06:10

Jeff Agee


1 Answers

What I ended up doing is updating my server from Debian 7 to Ubuntu 13.10, and that solved the problem. I really don't know what packages were causing the problem -- possibly fontconfig or libfreetype6...I don't know.

like image 197
Jeff Agee Avatar answered Oct 31 '25 19:10

Jeff Agee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!