You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
body {
padding:0;
margin:0;
height:100%;
width:100%;
font-family:"EuclidCircularB Regular";
}
but it does not work. The font is installed and added correctly. Is there any way to add this custom font to PDF?
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?
The text was updated successfully, but these errors were encountered: