Heroku

How to use custom fonts in Heroku apps

I run PhantomJS in a Heroku app and use it to generate PDFs from a website. It works very well, but I noticed that Japanese texts are not rendered correctly in the generated PDFs. The reason is simple. PhantomJS uses the system fonts to generate the PDFs. Out of the box, Heroku only has a couple of system fonts pre-installed and none of them support Asian languages. Luckily there is an easy way h…

Read more