Im using DOMPDF on top of http://dompdf.github.com/
I am trying to set the font for the whole page. In the template I made, I have a font set to Helvetica in CSS, but when it generates a PDF, it defaults to Times New Roman. When i try
<script type="text/php">{literal}if ( isset($pdf) ) {
$font = Font_Metrics::get_font("helvetica", "bold");
$pdf->page_text(72, 18, "TEST!", $font, 6, array(0,0,0));}
{/literal}</script>
He prints a TEST! text in the font. However, how can I apply it to the whole page?
thanks
source
share