Some parts still have different fonts
-
Hi,
I’m using a custom font and made a custom template for my PDF invoices.
I changed the following lines in the style.css and it basically works but some parts like the shop name, the document title, table header, subtotal, total etc. are still using the old font:#/* Load font */ @font-face { font-family: 'PorterFTRound-Light'; font-style: normal; font-weight: normal; src: local('PorterFTRound-Light'), local('PorterFTRound-Light'), url(<?php echo $this->get_template_path(); ?>/fonts/PorterFTRound-Light.ttf) format('truetype'); } body { background: #fff; color: #000; margin: 0cm; font-family: 'PorterFTRound-light'; /* want to use custom fonts? https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/using-custom-fonts/ */ font-size: 8pt; line-height: 100%; /* fixes inherit dompdf bug */ }
When I output the invoice to HTML it looks all good. Not when outputting to PDF though.
Any idea how to change that behaviour ?Thank you.
Cheers
SteffenThe page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Some parts still have different fonts’ is closed to new replies.