Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
3429 Vizualizări

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?


Imagine profil
Abandonează
Cel mai bun răspuns



Imagine profil
Abandonează
Autor

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.

Cel mai bun răspuns

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


Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
0
mai 24
1726
3
feb. 24
2945
2
nov. 22
5790
0
apr. 24
1659
2
oct. 23
4690