Buy Now
Sign in

tcpdf

ernst@volny.cz , January 10 2020, 10:09
E
ernst@volny.cz 113
January 10 2020, 10:09 #390653
Czech characters are displayed incorrectly in pdf created in tcppdf. For example, "č"

How to fix it?
E
ernst@volny.cz 113
January 11 2020, 09:08 #390666
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 9
January 11 2020, 10:45 #390672
If you have a search on the forums I posted a how-to about adding extra fonts
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
E
ernst@volny.cz 113
January 11 2020, 13:33 #390673
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'
);