Closed metachris closed 8 years ago
It works on windows: https://playground.jsreport.net/studio/workspace/S13dQsS4/3
So maybe it is about some missing fonts installed on the server.
Edit: Yes it's because of the fonts installed on the server. Thanks
There are some fontconfig and libfontconfig packages mentioned for linux in the phantomjs docs http://phantomjs.org/download.html
Was related to this issue: https://github.com/ariya/phantomjs/issues/13464
Actual Solution: yum install cjkuni-fonts-common cjkuni-ukai-fonts cjkuni-uming-fonts
For Microsoft TrueType Fonts, i found the link How to install Microsoft TrueType Fonts in CentOS 6 / RHEL 6
The "National characters" example from http://jsreport.net/learn/phantom-pdf works, but unicode characters such as the Ohm symbol (Ω) are not rendered in the pdf. The handlebars engine with html output renders the symbol correctly.
Edit: Perhaps related to https://github.com/marcbachmann/node-html-pdf/issues/20