[FIX] res.font: re-introduce substitution for builtin PDF fonts
authorOlivier Dony <odo@openerp.com>
Mon, 7 Apr 2014 12:10:15 +0000 (14:10 +0200)
committerOlivier Dony <odo@openerp.com>
Mon, 7 Apr 2014 12:10:15 +0000 (14:10 +0200)
commitf042113b6fcf713b1dcb2803721268fe099ea5ad
treea45ca16d0577ed988c8ec9c41e4e3255ba8783c6
parent2372d305203deef40f19c075a8144113d3226a19
[FIX] res.font: re-introduce substitution for builtin PDF fonts

This substitution was removed when res.font was implemented
based on the idea that it would be best to allow the use of
the real Helvetica/Times/Courier font if really required.
However the builtin ones are always available and crippled
when it comes to Unicode supports. Combined with the fact
that many RML/SXW reports had Helvetica hardcoded, this
breaks unicode reports for many users.
This patch re-introduces a mapping to replace the builtin
fonts by a few common and free alternatives (DejaVu, Liberation
and Free font families).
When an actual Helvetica/Times/Courier font is installed
no substitution takes place for it, in the hope that it
comes with decent unicode support.

bzr revid: odo@openerp.com-20140407121015-jq1qmg0hfu0dt31s
openerp/addons/base/res/res_font.py