Open ipbroad opened 3 years ago
If you could fill in as much of the template as possible when raising an issue, (Such as SuiteCRM Version/PHP Version/Steps to replicate), that would be very much appreciated and would help any developers investigating the issue.
Also, if you could provide some examples of Fonts used, that would also be appreciated
Thanks for raising!
Relevant Forum Thread: https://community.suitecrm.com/t/fonts-in-pdf-not-working/78716/
Built in mPDF 5.x supports specific fonts by default
https://mpdf.github.io/fonts-languages/fonts-in-mpdf-5-x.html https://github.com/salesagility/SuiteCRM/blob/master/modules/AOS_PDF_Templates/PDF_Lib/config_fonts.php https://github.com/salesagility/SuiteCRM/tree/master/modules/AOS_PDF_Templates/PDF_Lib/ttfonts
I found that I had to slipstream in and override the config_fonts.php
file and add in my custom fonts.
mPDF 7.x is easier but SuiteCRM has not yet upgraded to add hooks directly for fonts, its harder unless they upgrade to later mPDF.
afaik
thanks tsmgeek I tried the above and no luck - everything is the latest version but no matter what I try this just doesn't work.
cherub-chum explained the issue in the Forum Thread .
TinyMC and your browser are using different fonts then the module which prints the pdf's. Thus you have to add the fonts manually in mPDF.
There you go. Problem solved.
Hi all, not sure what I am doing wrong. I’ve changed the font in a pdf template to what I want but when I come to print/download/email the PDF it has not changed. All the HTML is correct to what I want and on screen in the editor it has changed but when I come to print it has not. For the life of me I cannot figure what I am doing wrong. Many thanks for any help.