Commit Graph

13 Commits

Author SHA1 Message Date
Olivier Dony f042113b6f [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
2014-04-07 14:10:15 +02:00
Stephane Wirtel 8eebb40313 [FIX] On OSX, the system has a lot of Bitmap fonts, and in this case, Reportlab
can not load the 'head' table from the structure of the TTF file. There is no
good way to check if a TTF file is an old style or new style.

bzr revid: stw@openerp.com-20140109095420-uixw7u1b0dbhcp4v
2014-01-09 10:54:20 +01:00
Martin Trigaux b48b746dd1 [IMP] fix licence
bzr revid: mat@openerp.com-20131209154537-r5hpcveuxmvcdj10
2013-12-09 16:45:37 +01:00
Martin Trigaux b37d3b7989 [FIX] font: trigger signal for clear cache instead on self
bzr revid: mat@openerp.com-20131209153842-l13zfc24at7cfisc
2013-12-09 16:38:42 +01:00
Martin Trigaux aac5c9d6eb [IMP] font: better handeling of multiworker environement
bzr revid: mat@openerp.com-20131209151454-5rylu5alldd3ixmh
2013-12-09 16:14:54 +01:00
Martin Trigaux 48cce10a7a [FIX] font: correct call to font_scan, add book to displayed mode
bzr revid: mat@openerp.com-20131209132109-c2bluohdj7hkp2px
2013-12-09 14:21:09 +01:00
Martin Trigaux b2313634af [FIX] font: avoid removing fake fonts
bzr revid: mat@openerp.com-20131209130844-b8gvcfgqf5t744ir
2013-12-09 14:08:44 +01:00
Martin Trigaux 75d92a40bd [FIX] font: correctly place font_scan call, use superuser_id, restrict rights for general users, invert name and family
bzr revid: mat@openerp.com-20131209125705-gk2sjiwxqyxc702r
2013-12-09 13:57:05 +01:00
Martin Trigaux a9b98a88a9 [IMP] font: add security rule, lazy loading at first report rendering
bzr revid: mat@openerp.com-20131209110511-l72dgop00bfdeq3v
2013-12-09 12:05:11 +01:00
Martin Trigaux eda37d12e6 [FIX] font: add columns for family, path and mode
bzr revid: mat@openerp.com-20131203151753-ycz8pyp1eg382qps
2013-12-03 16:17:53 +01:00
Martin Trigaux b9c3d93416 [IMP] font: handle better the difference of fonts
bzr revid: mat@openerp.com-20131014150507-4ueuyyneo6h2f6ju
2013-10-14 17:05:07 +02:00
Martin Trigaux 53e8625cea [FIX] font: cleaning and better default data
bzr revid: mat@openerp.com-20131014123815-6tnegdiv4cnaimtf
2013-10-14 14:38:15 +02:00
Martin Trigaux b3a8a4493d [IMP] fonts: adapt fonts to many2one instead of list
bzr revid: mat@openerp.com-20131014094122-6ndc5scni2xyzksy
2013-10-14 11:41:22 +02:00