DEV Community

Pappu Ji
Pappu Ji

Posted on

1

TCPDF: How to add new custom font in tcpdf

1) Download required font's ttf file
2) Open http://www.fpdf.org/makefont website in the browser and upload the ttf font on this website
3) Download two files customfontname.php and customfontname.z
4) Copy these two files into /yourproject/vendor/tecnickcom/tcpdf/fonts/ folder
5) include / set the font in your script before tcpdf html code $pdf->SetFont('customfontname', '', 12);

Alternate font generation website:
https://fonts.palettize.me

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More