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 require('../font/makefont/makefont.php'); MakeFont('calligra.ttf','calligra.afm'); ?> |
<?php require('fpdf.php'); $pdf=new FPDF(); $pdf->Open(); $pdf->AddPage(); $pdf->AddFont('Calligrapher','','calligra.php'); $pdf->SetFont('Calligrapher','',35); $pdf->Cell(0,10,'Enjoy new fonts with FPDF!'); $pdf->Output(); ?> |
cp1250 | 128 |
cp1251 | 136 |
cp1252 | 128 |
cp1253 | 128 |
cp1257 | 128 |
ISO-8859-1 | absent |
ISO-8859-2 | absent |
ISO-8859-4 | absent |
ISO-8859-5 | absent |
ISO-8859-7 | absent |
ISO-8859-15 | 164 |
ISO-8859-16 | 164 |
KOI8-R | absent |
$pdf->AddFont('Comic','I','comici.php'); |