Closed nijatmursali closed 1 year ago
You need to follow the mpdf instructions for adding custom fonts. I also recommend to use the mpdf_adjust_settings
filter to modify the mpdf instance and to call the AddFontDirectory
method (as if you place the font file inside the plugin folder it would be overwritten during an update).
Hello,
I'm currently working on a project and using this WordPress plugin. It works perfectly fine and I'm able to generate PDF with selected theme which is basically PHP code that includes HTML and CSS. I want to change the font family to custom one like:
but it does not work. The font is installed and added correctly. Is there any way to add this custom font to PDF?
My PDF generation code looks like this:
Functions are basically returning HTML content as a string. Is there any way to specify the specific font?