Tom Hamilton Stubber
Tom Hamilton Stubber

Reputation: 767

Installing fonts that render Mandarin characters with WKHTMLtoPDF on Heroku

I'm trying to get wkhtmltopdf to render a PDF that contains Mandarin characters on Heroku.

After quite a lot of research, I followed the steps from here and installed all of the Chinese fonts into a fonts/ directory in my root folder from here, as well as ttf-droid. The Chinese fonts where .ttc files, so I tried them as that, then converted them to ttfs when that didn't work.

Has anyone got any idea how to get these to work?

Upvotes: 1

Views: 289

Answers (1)

Tom Hamilton Stubber
Tom Hamilton Stubber

Reputation: 767

For those that want a solution(ish), I ended up importing the font in CSS.

Upvotes: 1

Related Questions