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 can I use TCPDF's writeHTML() function in PHP?
- How do I set the page orientation when using PHP TCPDF?
- How can I use PHP and TCPDF to merge multiple PDFs into one?
- How do I install TCPDF using Yum on a PHP server?
- How do I add a watermark to PDFs using PHP and TCPDF?
- How do I use the setxy function in PHP TCPDF?
- How do I create a table using PHP and TCPDF?
- How can I generate a PDF from XML data using PHP and TCPDF?
- How do I use the PHP TCPDF WriteHTMLCell function?
See more codes...