jsreport / jsreport-phantom-pdf

jsreport recipe which is rendering pdf from html using phantomjs
GNU Lesser General Public License v3.0
11 stars 8 forks source link

Unicode Characters (eg. Ω) #5

Closed metachris closed 8 years ago

metachris commented 8 years ago

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

pofider commented 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.

metachris commented 8 years ago

Edit: Yes it's because of the fonts installed on the server. Thanks

pofider commented 8 years ago

There are some fontconfig and libfontconfig packages mentioned for linux in the phantomjs docs http://phantomjs.org/download.html

metachris commented 8 years ago

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

vunb commented 7 years ago

For Microsoft TrueType Fonts, i found the link How to install Microsoft TrueType Fonts in CentOS 6 / RHEL 6