How do I set and change the font in FPDF?
Of course, if you wish to use one of the non-core list of fonts, then you will need to install it first. Look in the font directory to see what the default fonts are.
Note that if you go to use Arial it will automatically use Helvetica.
So to set the font to arial for instance you use this:
$pdf->SetFont('Arial','B',12);
... which makes it bold and 12 point.
Comment on this Question and Answer >>>
ASK A QUESTION
More FPDF PHP Questions
What is FPDF?How do I add a line break to my PDF in FPDF?
How do I output text to a PDF with FPDF?
How do I add a new font to my PDF with FPDF?
How can I find out more about FPDF?
