Path to the .ttf or .pfb file.afmfile
Path to the .afm file.enc
Name of the encoding to use. Default value: cp1252.patch
Optional modification of the encoding. Empty by default.type
Type of the font (TrueType or Type1). Default value: TrueType.
| 
$pdf->AddFont('Comic','','comic.php'); | 
| 
$pdf->AddFont('Comic'); | 
| 
$pdf->AddFont('Comic','B','comicbd.php'); | 
| 
<?php | 
| 
<?php | 
| Encoding | Position | 
|---|---|
| cp1250 | 128 | 
| cp1251 | 136 | 
| cp1252 | 128 | 
| cp1253 | 128 | 
| cp1254 | 128 | 
| cp1255 | 128 | 
| cp1257 | 128 | 
| cp1258 | 128 | 
| cp874 | 128 | 
| ISO-8859-1 | absent | 
| ISO-8859-2 | absent | 
| ISO-8859-4 | absent | 
| ISO-8859-5 | absent | 
| ISO-8859-7 | absent | 
| ISO-8859-9 | absent | 
| ISO-8859-11 | absent | 
| ISO-8859-15 | 164 | 
| ISO-8859-16 | 164 | 
| KOI8-R | absent | 
| KOI8-U | absent | 
| 
$pdf->AddFont('Comic','I','comici.php'); |