Hi everyone,
My PDF Template generated PDF files in only Dejavu font family even I have changed it to other fonts like Time News Roman or Arial.
I’ve checked raw code in database and its tag font-family is correct in format but the PDF Template keep rendering contents in Dejavu font.
Is there a work around to check and fix this issue? Thanks in advance
Hello, thanks for replying.
I’m working on CRM Suite version 7.10.36
I haven’t seen any errors in the log
I really want to add another font to use in my PDFs
But I’ve come to this post because the same thing is happening to me.
In modules/AOS_PDF_Templates/generatePdf.php
the value is set by default: dejavusanscondensed
in modules/AOS_PDF_Templates/PDF_Lib/classes/ttfontsuni.php
There are some exceptions that occur on lines 110 and 116, if I send a aos_quote to print, I get the error: “Postscript outlines are not supported”
So I went there and commented out the lines:
This caused the font files to be generated in: modules/AOS_PDF_Templates/PDF_Lib/ttfontdata
Then I uncommented the code
if ($version==0x4F54544F) {
die("Postscript outlines are not supported");
}
if ($version==0x74746366 && !$TTCfontID) {
die("ERROR - You must define the TTCfontID for a TrueType Collection in config_fonts.php (". $file.")");
}
if (!in_array($version, array(0x00010000,0x74727565)) && !$TTCfontID) {
die("Not a TrueType font: version=".$version);
}
in modules/AOS_PDF_Templates/views/view.edit.php
I add the font to tiny.init, in the theme_advanced_fonts property