Installing Free type and Fontconfig on Heroku?

429 views
Skip to first unread message

vladimir polaski

unread,
Jun 20, 2012, 4:02:47 AM6/20/12
to phan...@googlegroups.com
Hi after a long day of struggle, I've managed to get phantom.js to work on my heroku app, using a heroku custom buildpack over here (https://github.com/stomita/heroku-buildpack-phantomjs).
But now I've run into the problem of installing Fontconfig and Free type. Without these most of the texts appear as boxes.
Anyone know if there is a way to install Free type and Fontconfig on Heroku? Thank you!

Joseph Fouad

unread,
Jun 20, 2012, 7:28:02 AM6/20/12
to phan...@googlegroups.com
Hi dear

I think it is better to ask the heroku support team :), they are helpful 

and please, do not forget to tell us here about the solution or the work aroud, as i am planning to use it on heroku also

Joe

Alex Anderson

unread,
Jun 20, 2012, 7:47:47 AM6/20/12
to phan...@googlegroups.com
> and please, do not forget to tell us here about the solution or the work
> aroud, as i am planning to use it on heroku also

+1: also very interested in Heroku deployment

Joseph Fouad

unread,
Jun 21, 2012, 5:46:56 AM6/21/12
to phan...@googlegroups.com
Hi dear

Hey, Is there any progress? :)

I did some investigation though , but not tested it live yet

The phantomjs build pack you are using is pointing to a tar.gz file containing the phantomjs binaries
when unpacking this archive, it contain a mini linux file system on it

I think that if you updated this file system with what you need , and used this new archive insttead , it will work fine

This of course means that yoy need to create your own buildpack, which is easy, just fork phantomjs buildpack on git hub
upload your archive to aws s3, point the buildpack to that file , and then use this buildpack to create new apps

Joseph Fouad

unread,
Jun 21, 2012, 9:28:53 AM6/21/12
to phan...@googlegroups.com
Actually, after taking a closer look at the package , i found that it already contains  Fontconfig and Free type. 

So, it is strange that it does not work for you
May be you are trying to render a page have text in a language which do not have font installed

that is just a guess

Joe

vladimir polaski

unread,
Jun 21, 2012, 5:15:38 PM6/21/12
to phan...@googlegroups.com
Thank you Joseph, I would have never guessed the buildpack would contain them!
I think then the problem might be this: http://code.google.com/p/phantomjs/issues/detail?id=460
Since this issue is supposed to be fixed and should have been integrated into 1.6, hopefully it works now.
Let me test it, will let you know how it goes. BTW how come there is no linux version of 1.6 available yet? Seems mac version is available...

Joan Roig

unread,
Jan 2, 2014, 6:15:24 PM1/2/14
to phan...@googlegroups.com
How do you guys know that the Buildpack contains the fonts?

I am having a similar problem here. The fonts that are shown from my script in Heroku differ from the ones I see in local.
Reply all
Reply to author
Forward
0 new messages