diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-12-09 18:13:38 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-12-09 18:13:38 +0100 |
| commit | f3e7afaacadc5348d16dc4eabb5fe899f665323c (patch) | |
| tree | c0b3400ede5dfaa40f4c1e92f10b7755a1af5cd7 /addons/web_graph/static/src/xml | |
| parent | 89bc58bae61a50039be0918e00c4533971fe8c0f (diff) | |
| parent | efdfcfc90e016fc1c912db4598428cc2eabea893 (diff) | |
[MERGE] [FIX] res_font: make it works in multiworker environment
res_font model gains family, path and mode field
Basic fonts embedded in pdf (Helvetica, Times and Courier) are data
Fix reports using font names to be valid (eg: DejaVu Sans Bold -> DejaVuSans-Bold)
default_get of res_company does not scan the filesystem anymore
family field is new name_get font for res_font (more user friendly)
Domain on displayed font to only 'normal ones' (not bold or italic)
Handle fonts in 'book' mode as normal in setTTFontMapping
Relax constraint on res_font to unique family and name ('name' was actually family before)
font_scan is called on 'reload fonts' action button and for each report rendering
font_scan is lazy when loaded from report and scanning the filesystem only if no font recorded in filesystem
'/dev/null' in font path is used to add fonts in the list but not loaded by reportlab
Scanning the filesystem triggers clear_caches
clear_cache resets the list of found fonts to empty list to make font_scan call to reload the full list (when redering a report on any worker, will always get the updated font list after a scan)
Add access rights for fonts (read everybody, create admin, call font_scan as superuser in report rendering)
Remove font hack with BaseCustomTTFonts, rely fully on the system fonts
Use glob instead of listdir (needed for path like '/usr/share/fonts/TTF/*')
Make warning message from reportlab more self-explaining.
Also make the runbot green (which is nice)
bzr revid: mat@openerp.com-20131209171338-o796pldia9da3kt2
Diffstat (limited to 'addons/web_graph/static/src/xml')
0 files changed, 0 insertions, 0 deletions
