Adding new fonts to TCPDF

Less agony way of doing…

Login

Blog History

Less agony way of doing it.

Download your fonts and then run the following

cd  /Users/jmcd/Sites/clam/vendor/tecnickcom/tcpdf

tools/tcpdf_addfont.php -i /Users/jmcd/Downloads/liberation-sans/LiberationSans-BoldItalic.ttf

cd fonts/

Bulk Load Multiple TTF's

for i in ls ~/Downloads/ubuntu-font-family-0.83/*.ttf; 
do 
tools/tcpdf_addfont.php -i "$i" ; 
done

 

ls | grep libera
liberationsans.ctg.z
liberationsans.php
liberationsans.z
liberationsansb.ctg.z
liberationsansb.php
liberationsansb.z
liberationsansbi.ctg.z
liberationsansbi.php
liberationsansbi.z
liberationsansi.ctg.z
liberationsansi.php
liberationsansi.z

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.