Can someone tell me what I'm doing wrong? I need the Arial font in my pdf created by TCPDF. First I tried to use this: 1) I got Arial from window caltalog fonts and put them in the TCPDF directory. 2) Next, I wrote in the script:
$fontname = $pdf->addTTFfont('../lib/tcpdf/arial.ttf', '', '', 32);
After that, 3 files appear in tcpdf / fonts (arial.ctg.z, arial.php and arial.z). I thought everything was fine, but if in TCPDF I use this font:
$pdf->SetFont('arial', '', 16);
The font in the document is really aryal, but without special curtains (ΔΔΕΕΌΕΕΊ)
I also tried to prepare the font myself: I downloaded ttf2afm and makefontuni.php script, then on the command line I wrote this:
ttf2ufm -a arial.ttf php -q makefontuni.php arial.ttf arial.ufm
this command also gave me 3 files (arial.ctg.z, arial.php and arial.z), but the final situation is the same as before.
I admit that all data records in pdf in UTF-8 and in the TCPDF construct look like this:
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'utf-8', false);
I don't know what I'm doing wrong .:(