marmachineLe 18/04/2011 à 16:15
Hi folks,
I've been going over the examples and searched the form, but i can't figure out how to set a default font;
i have a variable $font which has the value freeserif
so now i want to set the default font with the following code:
$html2pdf->pdf->setDefaultFont($font);
this returns: Fatal error: Call to undefined method MyPDF::setDefaultFont() ....
also i have tried this: $html2pdf->pdf->setDefaultFont('freeserif');
which did return a pdf instead of an error, although the plain text that was parsed looked like arial, the html looked like this: 来汩敶攠瑥⁶敲浥汤敮 瀠畷潲牥獰潮摥湴楥
so, basicly... just to understand how to use a different font (present in the fonts folder that came with the zip), how do i set this? Am i missing something here?
Thanks!
Marco