How do you add custom fonts in TCPDF?
问题 I would like to add a custom font to a pdf I'm generating using TCPDF. I might be missing something but the docs seem to be out dated. They are referencing the addTTFfont() function but I think it's been deprecated and no longer exists in the latest version of TCPDF. I read that I need to convert the ttf file and put it in the fonts folder so I ran: php/tcpdf/tools/tcpdf_addfont.php -i php/font/rumpelstiltskin-webfont.ttf and it generated these files which are now in the fonts folder: