- 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);
Dev & Tech Notes
San Diego | Los Angeles | Big Bear | USA
Terms & Conditions ©2005-2024 TJohns.co
Terms & Conditions ©2005-2024 TJohns.co
Articles in this Category
- Chronoforms 5 Random Amount at PayPal
- Chronoforms checkbox group not emailing all selections
- Chronoforms Example: adding 2 fields together
- Chronoforms Random Paypal Payment Fix
- Populating Form Field from Database with Chronoforms (Easy Directions)
- TCPDF Custom Font
- Using Operators on the DB Read Action
Top Left Text cha
Web & App Development
TCPDF Custom Font
- Details
- Written by Timothy Johns
- Category: Chronoforms
- Hits: 7191
To create a custom font, I'll use custom.tff for this example...
Comments