obsolete.ChilliProject/vendor/plugins/rfpdf/lib/fonts/ttf2ufm
Toshi MARUYAMA 3a58444199 PDF: update rfpdf (#61).
https://github.com/edwinmoss/rfpdf
revision a04724b4af95c15a99675b34e353c15534d20411

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5247 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 16:11:50 -07:00
..
README.TXT PDF: update rfpdf (#61). 2011-04-16 16:11:50 -07:00
makefontuni_ruby.php PDF: update rfpdf (#61). 2011-04-16 16:11:50 -07:00
ttf2ufm PDF: update rfpdf (#61). 2011-04-16 16:11:50 -07:00
ttf2ufm.exe PDF: update rfpdf (#61). 2011-04-16 16:11:50 -07:00

README.TXT

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

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 included 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 or makefontuni.rb.


Setting up a Truetype font for usage with UFPDF:
  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_ruby.php with the .ttf and .ufm filenames as argument:
      $ php -q makefontuni_ruby.php myfont.ttf myfont.ufm
  
  3) Copy the resulting .rb, .z and .ctg.z file to the TCPDF font directory.
  
  4) Rename php font files variations for bold and italic using the following schema:
    	[basic-font-name]b.rb for bold variation
    	[basic-font-name]i.rb for oblique variation
    	[basic-font-name]bi.rb for bold oblique variation
  	
  5) Rename the name of the font in the first line of each .rb file:
      TCPDFFontDescriptor.define('dtlargotitalic') do |font|
     becomes:
      TCPDFFontDescriptor.define('dtlargoti') do |font|