コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
9339 ビュー

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>
アバター
破棄
最善の回答

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

 

アバター
破棄

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

最善の回答

You can check this module that helps! https://apps.odoo.com/apps/modules/15.0/advanced_report_templates/

アバター
破棄
関連投稿 返信 ビュー 活動
0
3月 21
4008
0
4月 22
2146
0
3月 22
3534
2
5月 23
4964
2
1月 23
12066