2

We are trying to add the https://fonts.google.com/specimen/Abel in WHMCS 7.1.2 invoice pdf. Initially we have tried with direct font conversion like below and its not working.

$fontname = TCPDF_FONTS::addTTFfont('/templates/six/Abel-Regular.ttf', 'TrueTypeUnicode', '', 96);
// use the font
$pdf->SetFont($fontname, '', 14, '', false);

Then we have converted the font into "abel.ctg.z","abel.php", "abel.z" and uploaded on "vendor/tecnickcom/tcpdf/fonts". Also defined the "Abel-Regular" on custom font settings.

Both ways are not working. Kindly help me to resolve the issue.

Star
  • 3,222
  • 5
  • 32
  • 48

1 Answers1

2

After applying the settings, delete the contents of the templates_c folder.

Mojtaba
  • 21
  • 4