I have troubles to add cyrilic font.
This is what a do:
1.copy arial.ttf to my linux machine
2. ttf2pt1 -a arial.ttf arial
3. in php script I do MakeFont('arial.ttf','arial.afm','cp1251');
4. copy arial.php and arial.z to html2pdf/_fpdf/font directory
5. run php script:
<?php
require_once("html2pdf/html2pdf.class.php");
$content = "<h2>Some cyrilic characters</h2>";
$html2pdf = new HTML2PDF("P","A4","en");
$html2pdf->setEncoding("cp1251");
$html2pdf->AddFont("ArialMT");
$html2pdf->pdf->SetFont("ArialMT");
$html2pdf->WriteHTML($content,false);
$html2pdf->Output("doc.pdf");
?>
6. I get pdf file but with wrong characters, not cyrilic.
What I do wrong?