odoo / docker

Other
932 stars 1.52k forks source link

Odoo 15 fonts #400

Closed yousef-soliman closed 2 years ago

yousef-soliman commented 2 years ago

Hello All, I faced a problem that when I print a report that contains Arabic characters it shows as a black square. Screenshot from 2021-12-14 09-11-45 I investigated this problem I found the fonts not installed i checked the Arabic fonts in Odoo 15 fc-list :lang=ar ``

Arabic Reports works on Odoo 14, so I checked the Arabic fonts in Odoo 14

fc-list :lang=ar

/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: DejaVu Sans:style=Book /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf: DejaVu Sans:style=Bold /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold

i think we should install Arabic fonts in Odoo 15.

avbasic commented 2 years ago

Hi , The problem still exists even with Arabic fonts exists !

The fonts of the invoices html reports did not change to be the Arabic font so the wkhtmltopdf still generate the error shapes

I think there is a step missing here

yousef-soliman commented 2 years ago

Hi @avbasic i solved my issue by installing this font fonts-dejavu-core please check #401

d-fence commented 2 years ago

Thanks for the reporting. It appears that this is a real bug in the packaging and probably occurs for other languages that needs a multilingual font package.

That's why I propose a fix in the packaging system that will fix the Docker image once merged.

The description of the problem was very helpful to track the issue to its roots. Thanks.