我们正在尝试在WHMCS 7.1.2 invoice pdf
中添加https://fonts.google.com/specimen/Abel。最初我们尝试使用下面的直接字体转换,但它无法正常工作。
$fontname = TCPDF_FONTS::addTTFfont('/templates/six/Abel-Regular.ttf', 'TrueTypeUnicode', '', 96);
// use the font
$pdf->SetFont($fontname, '', 14, '', false);
然后我们将字体转换为" abel.ctg.z"," abel.php"," abel.z"并上传到" vendor/tecnickcom/tcpdf/fonts
"。还定义了" Abel-Regular
"自定义字体设置。
两种方式都不起作用。请帮我解决这个问题。
答案 0 :(得分:1)
应用设置后,删除templates_c文件夹中的内容。