Adding new fonts to TCPDF

Written by James McDonald

June 8, 2016

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 *

You May Also Like…