define('FPDF_FONTPATH','/home/www/font/'); require('fpdf.php'); |
Family font. Possible values are (case insensitive):styleIt is also possible to pass an empty string. In that case, the current family is retained.
- Courier (fixed-width)
- Helvetica or Arial (synonymous; sans serif)
- Times (serif)
- Symbol (symbols)
- ZapfDingbats (symbols)
Font style. Possible values are (case insensitive):sizeThe default value is normal. Style does not apply to Symbol and ZapfDingbats.
- empty string: normal
- B: bold
- I: italic
- BI or IB: bold italic
Font size in points.
The default value is the current size. If no size has been specified since the beginning of the document, the value taken is 12.
//Times normal 12 $pdf->SetFont('Times'); //Arial bold 14 $pdf->SetFont('Arial','B',14); //Removes bold $pdf->SetFont(''); //Times normal 14 $pdf->SetFont('Times'); |