1 To embed TrueType fonts (.TTF) files, you need to extract the font metrics and
2 build the required tables using the ttf2ufm utility.
4 TTF2UFM is a modified version of Mark Heath's TTF 2 PT1 converter
5 (http://ttf2pt1.sourceforge.net/) by Steven Wittens <steven@acko.net>
6 (http://www.acko.net/blog/ufpdf).
8 ttf2ufm, is not bundled with the Moodle distribution, but it is available with
9 the standard TCPDF distribution (http://tcpdf.sourceforge.net/):
11 - Source code is avaialable in in /ttf2ufm-src.
12 - The /fonts/ttf2ufm folder contains a compiled Windows binary.
14 TTF 2 UFM is identical to TTF 2 PT1 except that it also generates a .ufm file
15 for usage with makefontuni.php.
18 Setting up a Truetype font for usage with TCPDF:
19 1) Generate the font's .ufm metrics file by processing it with the provided
20 ttf2ufm program (modified ttf2pt1). For example:
21 $ ttf2ufm -a -F myfont.ttf
22 2) Run makefontuni.php with the .ttf and .ufm filenames as argument:
23 $ php -q makefontuni.php myfont.ttf myfont.ufm
24 3) Copy the resulting .php, .z and .ctg.z file to the TCPDF font directory.