I'm 100% sure the code works because I've tested this in a basic HTML page and the font is rendered. otf file on the same level as the XML report file. My code: This is to test my custom font.īut this doesn't work either. So then I decided to give it a try with inline css (style). Neither the font is used and neither is the color applied. #This creates the default items in the model, so we don't ever have to create it manually.īut doing so did not change anything to my report. I've added the CSS file to my _openerp_.py: # any module necessary for this one to work correctly In this file I've added the following: cool_font In my module I've made static/src/css and added a file mylayout.css. My initial idea was to add a CSS file that references the font file but that doesn't seem to work. Has anybody had any succes adding a custom font to a QWeb report?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |