[FIX] report: default font set as helvetica

bzr revid: mat@openerp.com-20131003135018-2jr68cfbffda53m3
This commit is contained in:
Martin Trigaux 2013-10-03 15:50:18 +02:00
parent 61490461f6
commit dd2cbe92b5
2 changed files with 2 additions and 2 deletions

View File

@ -395,7 +395,7 @@ class res_company(osv.osv):
'rml_header2': _header2,
'rml_header3': _header3,
'logo':_get_logo,
'font':'DejaVuSans'
'font':'Helvetica',
}
_constraints = [

View File

@ -104,7 +104,7 @@ def RegisterCustomFonts():
"""
global CustomTTFonts
all_system_fonts = all_sysfonts_list()
if len(all_system_fonts) > _fonts_cache['total_system_fonts']:
if len(all_system_fonts) != _fonts_cache['total_system_fonts']:
font_modes, last_family, registered_font_list, _fonts_cache['registered_fonts'] = {}, "", [], list(BasePDFFonts)
#Prepares a list of registered fonts. Remove such fonts those don't have cmap for Unicode.