Merge lp:~dobtor/openobject-server/trunk-bugfix-1213683 into lp:openobject-server

Proposed by Andy Cheng
Status: Needs review
Proposed branch: lp:~dobtor/openobject-server/trunk-bugfix-1213683
Merge into: lp:openobject-server
Diff against target: 22 lines (+5/-0)
1 file modified
openerp/report/render/rml2pdf/customfonts.py (+5/-0)
To merge this branch: bzr merge lp:~dobtor/openobject-server/trunk-bugfix-1213683
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+180737@code.launchpad.net

Description of the change

Add the font search path for FreeBSD

To post a comment you must log in.

Unmerged revisions

4937. By Andy Cheng

[FIX] Fixed missing report font search path for FreeBSD

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp/report/render/rml2pdf/customfonts.py'
2--- openerp/report/render/rml2pdf/customfonts.py 2013-05-28 18:51:47 +0000
3+++ openerp/report/render/rml2pdf/customfonts.py 2013-08-18 18:48:54 +0000
4@@ -71,6 +71,10 @@
5 '/usr/share/fonts/TTF', # Arch Linux
6 ]
7
8+TTFSearchPath_FreeBSD = [
9+ '/usr/local/share/fonts/TruType', # FreeBSD
10+ ]
11+
12 TTFSearchPath_Windows = [
13 'c:/winnt/fonts',
14 'c:/windows/fonts'
15@@ -89,6 +93,7 @@
16 'Darwin': TTFSearchPath_Darwin,
17 'Windows': TTFSearchPath_Windows,
18 'Linux': TTFSearchPath_Linux,
19+ 'freebsd': TTFSearchPath_FreeBSD
20 }
21
22 # ----- The code below is less distro-specific, please avoid editing! -------