安装oecn_base_font后,预览页眉页脚照样是黑方块
-
第一次源码安装OpenErp,按论坛说的安装oecn_base_font后。Font-Map参数如下:
[["Helvetica", "SimSun", "/usr/share/fonts/dejavu/simsun.ttc", "all"], ["DejaVuSans", "WenQuanYiZenHei", "/usr/share/fonts/dejavu/wqy-zenhei.ttc", "all"], ["Times", "WenQuanYiZenHei", "/usr/share/fonts/dejavu/wqy-zenhei.ttc", "all"], ["Times-Roman", "WenQuanYiZenHei", "/usr/share/fonts/dejavu/wqy-zenhei.ttc", "all"], ["Courier", "WenQuanYiZenHei", "/usr/share/fonts/dejavu/wqy-zenhei.ttc", "all"]]
查看页眉脚本已经变成新宋体
<header> <pageTemplate> <frame id="first" x1="1.3cm" y1="3.0cm" height="21.7cm" width="19.0cm"/> <stylesheet> <!-- Set here the default font to use for all <para> tags --> <paraStyle name='Normal' fontName="SimSun"/> <paraStyle name="main_footer" fontSize="10.0" alignment="CENTER"/> <paraStyle name="main_header" fontSize="10.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> </stylesheet> <pageGraphics> <!-- Set here the default font to use for all <drawString> tags --> <setFont name="SimSun" size="10"/> <!-- You Logo - Change X,Y,Width and Height --> <image x="1.3cm" y="27.7cm" height="40.0" >[[ company.logo or removeParentNode('image') ]]</image> <fill color="black"/> <stroke color="black"/>
但预览结果依然是黑方块。求助。。。