MakeFont(string fontfile [, string enc [, boolean embed [, boolean subset]]])
fontfile
Path to the .ttf, .otf or .pfb file.
enc
Name of the encoding to use. Default value: cp1252
.
embed
Whether to embed the font or not. Default value: true
.
subset
Whether to subset the font or not. Default value: true
.
$file
in the .php file accordingly.
<?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('CevicheOne-Regular.ttf','cp1252');
?>
<?php
require('fpdf.php');
$pdf = new FPDF();
$pdf->AddFont('CevicheOne','','CevicheOne-Regular.php');
$pdf->AddPage();
$pdf->SetFont('CevicheOne','',35);
$pdf->Write(10,'Enjoy new fonts with FPDF!');
$pdf->Output();
?>