[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/tcpdf/fonts/ttf2ufm/ -> README.TXT (source)

   1  To embed TrueType fonts (.TTF) files, you need to extract the font metrics and 
   2  build the required tables using the provided utility (/fonts/ttf2ufm). 
   3  
   4  TTF2UFM is a modified version of Mark Heath's TTF 2 PT1 converter 
   5  (http://ttf2pt1.sourceforge.net/) by Steven Wittens <[email protected]> 
   6  (http://www.acko.net/blog/ufpdf). ttf2ufm, is included in /ttf2ufm-src. 
   7  The /fonts/ttf2ufm folder contains a compiled Windows binary. 
   8  TTF 2 UFM is identical to TTF 2 PT1 except that it also generates a .ufm file 
   9  for usage with makefontuni.php.
  10  
  11  
  12  Setting up a Truetype font for usage with TCPDF:
  13    1) Generate the font's .ufm metrics file by processing it with the provided 
  14       ttf2ufm program (modified ttf2pt1). For example:
  15       $ ttf2ufm -a -F myfont.ttf
  16    2) Run makefontuni.php with the .ttf and .ufm filenames as argument:
  17       $ php -q makefontuni.php myfont.ttf myfont.ufm
  18    3) Copy the resulting .php, .z and .ctg.z file to the TCPDF font directory.
  19    4) Rename php font files variations for bold and italic using the following schema:
  20        [basic-font-name]b.php for bold variation
  21        [basic-font-name]i.php for oblique variation
  22        [basic-font-name]bi.php for bold oblique variation
  23    5) Convert all fonts filenames to lowercase.
  24        


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1