Forums

tcpdf

ernst@volny.cz 10 Jan, 2020
Czech characters are displayed incorrectly in pdf created in tcppdf. For example, "č"

How to fix it?
ernst@volny.cz 11 Jan, 2020
I know that there must be a font that knows Czech characters.
Just copy it to / libraries / cetcpdf / tcpdf / fonts /?
where do I need to change php tcpdf.php to use the font?
healyhatman 11 Jan, 2020
If you have a search on the forums I posted a how-to about adding extra fonts
ernst@volny.cz 11 Jan, 2020
so I was intensively looking at the forum and I did not find this guide. Maybe it would be better to include a link to this tutorial here.

I have personally tried to upload the required font to / www / libraries / cetcpdf / tcpdf / fonts / and change php tcpdf.php to / www / libraries / cetcpdf / tcpdf /.

On line 1890, add the necessary font to the array, for example:
 $this->CoreFonts = array(
'courier'=>'Courier',
'courierB'=>'Courier-Bold',
'courierI'=>'Courier-Oblique',
'courierBI'=>'Courier-BoldOblique',
'helvetica'=>'Helvetica',
'helveticaB'=>'Helvetica-Bold',
'helveticaI'=>'Helvetica-Oblique',
'helveticaBI'=>'Helvetica-BoldOblique',
'times'=>'Times-Roman',
'timesB'=>'Times-Bold',
'timesI'=>'Times-Italic',
'timesBI'=>'Times-BoldItalic',
'symbol'=>'Symbol',
'dejavusans'=>'dejavusans',
'zapfdingbats'=>'ZapfDingbats'
);
This topic is locked and no more replies can be posted.