geek-at / http2pic

Simple API for creating screenshots of websites
https://http2pic.haschek.at
Apache License 2.0
194 stars 26 forks source link

Font support #4

Open anujku opened 8 years ago

anujku commented 8 years ago

Have a look at this - https://http2pic.haschek.at/api.php?[OPTIONS]&url=http://www.loksatta.com/

It does not render all font correctly. I have added that site as an example but I am sure the font support will be required for many more websites..

geek-at commented 8 years ago

Interesting this seems to be a general wkhtmltoimage problem. I have tried a few solutions mentioned on the internet but nothing worked so far. Will hopefully work once we switch to PhantomJS as rendering engine

luckyjay commented 8 years ago

Hello anujku. According to PhantomJS folks, this is fixed in 2.0 of PhantomJS. See https://github.com/ariya/phantomjs/issues/11569. Unfortunately, as of today they still don't have Linux-based binaries. If you have Linux, use the build procedure here: http://phantomjs.org/build.html.

luckyjay commented 8 years ago

Actually, I just built and installed PhantomJS 2.0 and it didn't work with that with the website you mentioned. I had to install the Mengal font on my system, and re-build the font cache and then it worked! http://www.ffonts.net/Mangal.font.download