herokuphantomjsfreetypefontconfig

Is it possible to install Freetype or Fontconfig on Heroku?


I'm trying to make phantom.js work on heroku, so far I've managed to launch a custom buildpack and run the binary file.

However, it seems that in order to render things correctly I need to also install Freetype and Fontconfig. Heroku doesn't seem to have them and I was wondering if this is something feasible or if I need to scrap this option and find another solution.

Does anyone know how to do this? Thank you.


Solution

  • Maybe you can simply use the phantomjs buildpack proposed from a third party. You can find here : https://devcenter.heroku.com/articles/third-party-buildpacks some third party buildpack. And one of them is phantomjs. This buildpack already includes Freetype and Fontconfig!