Reputation: 422
I am stuck to generate image using wkhtmltoimage with my custom fonts.
wkhtmltoimage
and wkhtmltopdf
version is 0.11.0_rc1-static-amd64
Example of Expected Result:
and My OUTPUT is:
You can test this link:
After Googling, I found that by encoding the fonts with base64 you can get the exact result but after encoding i got success in loading the fonts but still facing problem with font-weight
Expected Result:
My Output:
You can check this link:
This all works fine on my windows server using wkhtmltoimage.exe version 0.12.1.2 but i am not being able to solve this issue on my hostgator shared hosting which has linux CentOs6 64-bit.
Your help would be appreciated.
Upvotes: 3
Views: 1748
Reputation: 840
wkhtmltoimage requires several font libraries that hostgator obviously don't have. I don't think you can install them on a shared hosting account.
Upvotes: 1