Font changed when generate pdf with wkhtmltopdf on online server
Font changed when generate pdf with wkhtmltopdf on online server I created pdf with wkhtml2pdf with Arial font, while generate on local does not matter. But at the time of generating in online, font changed to be Times New Roman. Code CSS .div1 { font-family: Arial; font-size: 10px; padding-left: 5px; padding-top: 0px; } 1 Answer 1 Try this .div1 { font-family: Arial!important; font-size: 10px; padding-left: 5px; padding-top: 0px; } Hope it will help. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.