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:
... which makes it bold and 12 point.
ASK A QUESTION
More FPDF PHP QuestionsHow can I find out more about FPDF?
What is FPDF?
How do I output text to a PDF with FPDF?
How do I add a new font to my PDF with FPDF?
How do I add a line break to my PDF in FPDF?