MakeFont(string fontfile [, string enc [, boolean embed [, boolean subset]]])
fontfileUbicación del fichero .ttf, .otf o .pfb.
encNombre de la codificación. Valor por defecto: cp1252.
embedSi se incorpora o no la fuente. Valor por defecto: true.
subsetSi un subconjunto de la fuente o no. Valor por defecto: true.
$file en el fichero
.php consecuentemente.
<?php
require('makefont/makefont.php');
MakeFont('c:\\Windows\\Fonts\\comic.ttf','cp1252');
?>
$pdf->AddFont('Comic','','comic.php');
$pdf->AddFont('Comic','B','comicbd.php');
<?php
require('makefont/makefont.php');
MakeFont('calligra.ttf','cp1252');
?>
<?php
require('fpdf.php');
$pdf = new FPDF();
$pdf->AddFont('Calligrapher','','calligra.php');
$pdf->AddPage();
$pdf->SetFont('Calligrapher','',35);
$pdf->Write(10,'Enjoy new fonts with FPDF!');
$pdf->Output();
?>