★★★用xsl-fo转换PDF,设定了font-weight='bold',可是字体就是不变粗体★★★

Paradise_heida 2010-02-25 06:03:30
用xsl-fo转换PDF,


我的userconfig.xml文件:


<configuration>
<fonts>
<font metrics-file="C:\McSyugyo\WEB-INF\msmincho.xml" kerning="yes" embed-file="C:\WINDOWS\Fonts\MSMINCHO.TTC">
<font-triplet name="MS-Mincho" style="normal" weight="normal"/>
<font-triplet name="MS-Mincho" style="normal" weight="bold"/>
<font-triplet name="MS-Mincho" style="italic" weight="normal"/>
<font-triplet name="MS-Mincho" style="italic" weight="bold"/>
</font>
<font metrics-file="C:\McSyugyo\WEB-INF\msgothic.xml" kerning="yes" embed-file="C:\WINDOWS\Fonts\MSGOTHIC.TTC">
<font-triplet name="MS-Gothic" style="normal" weight="normal"/>
<font-triplet name="MS-Gothic" style="normal" weight="bold"/>
<font-triplet name="MS-Gothic" style="italic" weight="normal"/>
<font-triplet name="MS-Gothic" style="italic" weight="bold"/>
</font>
</fonts>
</configuration>



fo文件的部分代码:


<fo:table-row font-family='MS-Gothic' font-size='13pt'>
<fo:table-cell border-width='0'>
<fo:block font-weight='bold' text-align='center'>ABCDEFG</fo:block>
</fo:table-cell>
</fo:table-row>



在这里<fo:block font-weight='bold' text-align='center'>ABCDEFG</fo:block>
已经设定了font-weight='bold',可是生成的PDF的字体就是不变粗体!!
急!!
100分,不够开帖再给!!
...全文
272 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
Paradise_heida 2010-03-03
  • 打赏
  • 举报
回复
再顶!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Paradise_heida 2010-03-02
  • 打赏
  • 举报
回复
再顶!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Paradise_heida 2010-03-01
  • 打赏
  • 举报
回复
再顶!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
kinzey34 2010-02-26
  • 打赏
  • 举报
回复
加粗可能引起文字占用页面宽度增加,如果此 region 你已经限定了宽度,是否宽度不够呢?
Paradise_heida 2010-02-26
  • 打赏
  • 举报
回复
自己UP!自己UP!自己UP!自己UP!
kinzey34 2010-02-26
  • 打赏
  • 举报
回复
<fo:table-row font-family='MS-Gothic' font-size='13pt'>

将 13pt 改为 12pt 看看
Paradise_heida 2010-02-26
  • 打赏
  • 举报
回复

再顶!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Paradise_heida 2010-02-25
  • 打赏
  • 举报
回复
自己SF!自己SF!
自己SF!自己SF!

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧