'Font problem in odoo 15 wkhtmltopdf Ubuntu 20.04

Good afternoon. Odoo 15, wkhtmltopdf, Ubuntu 20.04 The problem with displaying fonts in odoo 15. No characters are displayed except for the characters of the English alphabet. (Checked Czech and Russian). When calling the wkhtmltopdf utility from the terminal, the pdf is generated normally. The fonts are ok.

If in ir_actions_report.py you print out the html that is passed for "transformation" into pdf, then the fonts are also displayed normally there. (module base, file ir_actions_report.py , line 467)

But when generating pdf through odoo, the characters are displayed like this: Gramáž. This is how a label with Czech characters is generated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source