PyChart Unicode Report (Support CJK Font)

by
Odoo          
v 6.1 Third Party 1535
Download for 6.1 series
You bought this module and need support ? Click here !
Technical name l10n_pychart_unicode_report
LicenseAGPL-3
Websitehttp://my.oschina.net/wangbuke
Repositorylp:~wangbuke/oe-pychart-unicode-report/6.1

PyChart Unicode Report (Support CJK Font)

Add unicode support to pychart report, such as "Stock Level Forecase" or "Work Center Load" etc.

This module let pychart make report as svg file, then use cairosvg turn svg to pdf file.

Depend on python-cairo & python-cairosvg. Install it on Debian/Ubuntu: $ su apt-get install python-cairo python-cairosvg

If oecn_base_fonts is installed ,It would read oecn_base_fonts module font setting . or else it would read "pychart_ttfont_name" parameter from OpenERP config file.

Such as TTFont name in OpenERP config file, as below: ; Simsun is chinese font name, insteaded by your font(the font file must exist in you sys font path) pychart_ttfont_name = Simsun

Have fun !


支持pychart中文报表,如“库存预测”、“工作中心负载” 等报表。

本模块原理是先让pychart 生成svg 文件,然后用cairosvg 模块生成PDF报表。

依赖模块:python-cairo python-cairosvg Debian/Ubuntu安装方法: $ sudo apt-get install python-cairo python-cairosvg

如果你安装了oecn_base_fonts模块,会自动读取oecn_base_fonts 的字体设置. 否则将会读取 OpenERP 配置文件中的 pychart_ttfont_name 参数, 示例如下: ; 默认使用宋体,可以修改。注意字体文件必须存在系统字体目录下。 pychart_ttfont_name = Simsun

祝你好运 ~

Please log in to comment on this module

Please choose a rating from 1 to 5 for this module.