AddFont(string family [, string style [, string file [, string dir]]])
Imports a TrueType, OpenType or Type1 font and makes it available. It is necessary to generate a font definition file first with the MakeFont utility.
The definition file (and the font file itself when embedding) must be present in:
ForgePDF_FONTPATH
constant (if it is defined)font
directory located in the same directory as fpdf.php
If the file is not found, the error "Could not include font definition file" will be generated.
family
Font family. The name can be chosen arbitrarily. If it is a standard family name, it will substitute the corresponding font.
style
Font style. Possible values are (case insensitive):
B
: boldI
: italicBI
or IB
: bold italicThe default value is regular.
file
The font definition file name.
By default, it is built from the family and style, in lowercase and without space.
dir
The directory where to load the definition file.
If not specified, the default directory will be used.
$pdf->AddFont('Comic', 'I');
is equivalent to:
$pdf->AddFont('Comic', 'I', 'comici.php');
SetFont F