Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3364 Lượt xem

I have created a QWeb template for PDF report. Can i use a custom font for it. I have tried downloading font and creating SCSS file. but it didn't work. Is there any other ways to do it?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất



Ảnh đại diện
Huỷ bỏ
Tác giả

When I give like this, the font is changed in HTML format. but when i download PDF file, font isn't changing.

Which PDF report did you modify? How did you modify it? In some cases we have QWEB applicable to just the PDF version and some applicable just to the Portal version.

Câu trả lời hay nhất

Hi,


To change the font, we can use the following code in our template,


<div class="page" style="font-size: 18pt;font-family:Helvetica,Verdana,Arial,sans,Lucida Grande,Calibri;">


Hope it helps


Ảnh đại diện
Huỷ bỏ
Tác giả

This method isn't working. I am using odoo v17

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 24
1685
3
thg 2 24
2884
2
thg 11 22
5729
0
thg 4 24
1619
2
thg 10 23
4611