Top Left Text cha

Web & App Development

To create a custom font, I'll use custom.tff for this example...
  • Download a TTF font (custom.tff is the example font).
  • Create a folder in the home folder of your site, 'fonts', and upload the TTF file to this folder. Note that it must be writeable. I also created a fonts folder inside /administrator/components/com_chronoforms5/chronoforms/actions/tcpdf and put the custom font there also.
  • Put the following code before '//set header and footer fonts' in tcpdf.php (located at )... 
    $pdf->addTTFfont('fonts/Aspire-DemiBold.ttf', 'TrueTypeUnicode', '', 32);

Add comment


Security code
Refresh

  • No comments found

Leave your comments

Post comment as a guest

0
Your comments are subjected to administrator's moderation.
X