Skip to Content
Menu
This question has been flagged
2 Replies
9335 Zobrazenia

Hello, how can I add custom font in my report. It doesn't change my font when I generate a pdf report.


@font-face {
font-family: 'CourierPrime-Regular';
src: local('CourierPrime-Regular'), local('CourierPrime-Regular'),
  url('/sales_invoice_report/static/src/fonts/CourierPrime-Regular.ttf') format('truetype');
 }


<?xml version="1.0" encoding="utf-8"?>
<odoo>
	<data>
		<template id="centaur_invoice_template" name="centaur_invoice" inherit_id="web.report_assets_pdf">
			<xpath expr="." position="inside">
				<link rel="stylesheet" href="/sales_invoice_report/static/src/css/sales_invoice.css" type="text/css"/>
			</xpath>
		</template>
	</data>
</odoo>
Avatar
Zrušiť
Best Answer

Did you see this answer to "Can I use a custom font in an Odoo report? Like a cursive one?"

https://www.odoo.com/forum/help-1/can-i-use-a-custom-font-in-an-odoo-report-like-a-cursive-one-184064#answer-184069

 

Avatar
Zrušiť

Wow, thanks for this. I don't have enough karma so I upvote your answer.

Related Posts Replies Zobrazenia Aktivita
0
mar 21
3998
0
apr 22
2136
0
mar 22
3516
2
máj 23
4954
2
jan 23
12056