How do I use custom fonts with the LibreOffice Report Designer Plugin?

I am trying to edit the invoice report. I "Modify existing report" and installed the "Futura Lt BT" font in my system. If I change the font in OpenOffice to something supported (such as DejaVu) and upload it, it is shown correctly in the printed invoice.

I also installed the Futura font on the server. In the header/footer-section, that works fine. But when using Futura in OpenOffice, it is completely ignored by openERP and falls back to some standard font.

Can anybody please help me and explain in Detail how I get the desired fonts into my reports? Thanks in advance.

1 Antwort
Best Answer

There seems to be no direct solution.

What I did was this: 1. Edited the report in OpenOffice as far as that was possible. Doing this results in the sxw and rml beeing stored in the database in table "ir_act_report_xml", field "report_sxw_content_data" and "report_rml_content_data" with the id of the report you are working on, as binaries. Any changes can now only be made in the database, the rml file in the filesystem is ignored.

  1. Download the rml content data to a file. Edit the fonts manually according to your specifications or change other stuff that couldn't be done with OpenOffice.

  2. Update the according field in the database with the edited rml data.

If anyone has a better idea how to do this, I'd be pleased to hear.