moodle/lib/tcpdf/fonts
2006-09-04 08:11:37 +00:00
..
FreeMono.ctg.z
freemono.php
FreeMono.z
freemonob.php
freemonobi.php
FreeMonoBold.ctg.z
FreeMonoBold.z
FreeMonoBoldOblique.ctg.z
FreeMonoBoldOblique.z
freemonoi.php
FreeMonoOblique.ctg.z
FreeMonoOblique.z
FreeSans.ctg.z
freesans.php
FreeSans.z
freesansb.php
freesansbi.php
FreeSansBold.ctg.z
FreeSansBold.z
FreeSansBoldOblique.ctg.z
FreeSansBoldOblique.z
freesansi.php
FreeSansOblique.ctg.z
FreeSansOblique.z
FreeSerif.ctg.z
freeserif.php
FreeSerif.z
freeserifb.php
freeserifbi.php
FreeSerifBold.ctg.z
FreeSerifBold.z
FreeSerifBoldItalic.ctg.z
FreeSerifBoldItalic.z
freeserifi.php
FreeSerifItalic.ctg.z
FreeSerifItalic.z
README.TXT

To embed TrueType fonts (.TTF) files, you need to extract the font metrics and 
build the required tables using the ttf2ufm utility. 

TTF2UFM is a modified version of Mark Heath's TTF 2 PT1 converter 
(http://ttf2pt1.sourceforge.net/) by Steven Wittens <steven@acko.net> 
(http://www.acko.net/blog/ufpdf).

ttf2ufm, is not bundled with the Moodle distribution, but it is available with
the standard TCPDF distribution (http://tcpdf.sourceforge.net/):

 - Source code is avaialable in in /ttf2ufm-src. 
 - The /fonts/ttf2ufm folder contains a compiled Windows binary. 

TTF 2 UFM is identical to TTF 2 PT1 except that it also generates a .ufm file 
for usage with makefontuni.php.


Setting up a Truetype font for usage with TCPDF:
  1) Generate the font's .ufm metrics file by processing it with the provided 
     ttf2ufm program (modified ttf2pt1). For example:
     $ ttf2ufm -a -F myfont.ttf
  2) Run makefontuni.php with the .ttf and .ufm filenames as argument:
     $ php -q makefontuni.php myfont.ttf myfont.ufm
  3) Copy the resulting .php, .z and .ctg.z file to the TCPDF font directory.