php-tcpdfHow do I use the setfont function in PHP TCPDF?
The setFont
function in PHP TCPDF is used to set the font type, style and size for the document.
Example
$pdf->SetFont('helvetica', 'B', 20);
The code above sets the font type to Helvetica, the style to bold, and the font size to 20.
Code explanation
SetFont
: The name of the function.helvetica
: The font type.B
: The font style.20
: The font size.
Helpful links
More of Php Tcpdf
- How do I install TCPDF using Yum on a PHP server?
- How do I use the PHP TCPDF WriteHTMLCell function?
- How do I add a watermark to PDFs using PHP and TCPDF?
- How can I generate a QR code using PHP and TCPDF?
- How do I install TCPDF with Composer in a PHP project?
- How can I use TCPDF's writeHTML() function in PHP?
- How do I use the setxy function in PHP TCPDF?
- How do I set the page orientation when using PHP TCPDF?
- How do I set the margins using PHP TCPDF?
See more codes...