SetFont(string family [, string style [, float size]])
FPDF_FONTPATH
(se la costante esiste)include()
FPDF_FONTPATH
:
define('FPDF_FONTPATH','/home/www/font');
require('fpdf.php');
family
Courier
(fixed-width)Helvetica
o Arial
(sinonimi; sans serif)Times
(serif)Symbol
(symbolic)ZapfDingbats
(symbolic)style
B
: grassettoI
: corsivoU
: sottolineatoSymbol
e ZapfDingbats
.
size
// Times normale 12
$pdf->SetFont('Times');
// Arial grassetto 14
$pdf->SetFont('Arial','B',14);
// Rimuove il grassetto
$pdf->SetFont('');
// Times grassetto, corsivo e sottolineato 14
$pdf->SetFont('Times','BIU');