How to implement custom fonts in TCPDF

后端 未结 13 1030
鱼传尺愫
鱼传尺愫 2020-11-28 10:07

In TCPDF, there are only a few fonts to choose from, to create pdf files. I want to set Tahoma as my pdf font. How can I include Tahoma in TCPDF??<

13条回答
  •  星月不相逢
    2020-11-28 10:57

    I found the addTTFfont method a little finicky (ok, probably didn't try very hard) and the online tool mentioned above works for FPDF but misses the ctg.z file that TCPDF requires.

    This one - http://fonts.snm-portal.com/ - generates the 3 required files (.php, .z and .ctg.z) for TCPDF. Convert the TTF, upload the three files to your fonts folder and you're good to go.

提交回复
热议问题