![]() ![]() To make this example so pretty easy to understand and show how easy is to add a custom font to TCPDF, we are going to use a pretty weird custom font namely Just Beautiful Simplicity. Download the source files of the Font that you want Otherwise, when you generate the PDF you will see weird characters instead of that what you need. ![]() $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, "letter", $unicode, $format, false) You can import only TTF or OTF fonts into TCPDF, which means that you will work with the UTF-8 encoding, so be sure that your PDF is instantiated with unicode format set to true and UTF-8:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |