Skip to content

Commit dd27dca

Browse files
committed
font changes
1 parent 2475e09 commit dd27dca

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ PHP AUTH: This is a simple boilerplate for PHP Auth.
3838
- [ttf font to fpdf or tcpdf online conversion](https://www.xml-convert.com/en/convert-tff-font-to-afm-pfa-fpdf-tcpdf)
3939
- [TCPDF font converter e.g. for Magento Extension pdfPRINT](http://fonts.snm-portal.com/)
4040
- [Using Unicode with TCPDF](https://stackoverflow.com/questions/18200919/using-unicode-with-tcpdf)
41+
- [encode-utf-8-in-tcpdf](https://stackoverflow.com/questions/52286964/how-to-encode-utf-8-in-tcpdf)
42+
- [Font changed](https://stackoverflow.com/a/55722814/7574023)
4143

4244
### TODOs
4345

tcpdf.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@
3030
$obj_pdf->setPrintFooter(false);
3131
$obj_pdf->SetAutoPageBreak(TRUE, 10);
3232

33-
$obj_pdf->SetFont('helvetica', '', 12, false);
34-
35-
// $font_name = 'sovorakan';
36-
// TCPDF_FONTS::addTTFfont(realpath('tcpdf/fonts') . DIRECTORY_SEPARATOR . $font_name . '.ttf', 'TrueTypeUnicode', '', 32);
37-
// $obj_pdf->SetFont($font_name, '', 14, '', false);
33+
$obj_pdf->SetFont('dejavusans', '', 12, false);
3834

3935
$obj_pdf->AddPage();
4036

0 commit comments

Comments
 (0)