Dompdf font family issue
I am using Bamboo invoice as an invoice generator and I am trying to customize the invoice template, but no matter what I do, the font just won't adjust.
currently I have
body {
margin: 0.5in;
font-family: 'helvetica';
font-size: 10pt;}
I read about this and helvetica is the installed font, so it should work
to make sure I changed it to "courier"; which is also in the lib / fonts directory, but the font remains the same.
Any help?
+2
a source to share
4 answers
Late, but still applicable for Google visitors.
I had a similar problem with DomPDF, but since BambooInvoice uses it ... DomPDF is having trouble defining font family in CSS anyway. I applied inline style to the top div to solve the problem.
<div id="container" style="font-family:sans-serif;">
....
</div>
+3
a source to share