I used this way to add font and print pdf but font order is not corrected. In pdf.php
require_once('tcpdf_include.php'); $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); $pdf->setPrintHeader(false); $pdf->setPrintFooter(false); $pdf->AddPage('P', 'A7'); $fontname = TCPDF_FONTS::addTTFfont('../fonts/Pyidaungsu-2.5.1_Regular.ttf', 'TrueTypeUnicode', '', 32); $pdf->SetFont($fontname, '', 14, true);
1.4m articles
1.4m replys
5 comments
57.0k users