I’m using SC9 and working on a report PDF. I like to use customized fonts. First, I added some TCPDF fonts to ./tcpdf/fonts directory.
In Report PDF > Layout PDF > Code, I added sc_pdf_set_font (“mycustomfont”). This page came out blank.
I changed to $pdf->SetFont(“mycustomfont”). Also came out blank.
I change to sc_pdf_set_font(“freeserif”). The page came out blank.
I then delete sc_pdf_set_font(“freeserif”) from the Layout PDF>Code section and changed Report PDF > Setting > TextFont to “freeserif”. The page came out with freeserif font.
How do I set custom fonts?
Thanks