http2pic icon indicating copy to clipboard operation
http2pic copied to clipboard

Font support

Open anujku opened this issue 10 years ago • 3 comments

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..

anujku avatar Sep 30 '15 16:09 anujku

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

geek-at avatar Sep 30 '15 17:09 geek-at

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 avatar Jan 10 '16 16:01 luckyjay

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

luckyjay avatar Jan 10 '16 18:01 luckyjay