Encoding fop 0.93中的嵌入式字体
我使用FOP0.93将xml转换为pdf,但我有一个字体问题 我的xml有西里尔字符,所以当我打开生成的pdf时 这是我的fop配置文件:Encoding fop 0.93中的嵌入式字体,encoding,utf-8,apache-fop,Encoding,Utf 8,Apache Fop,我使用FOP0.93将xml转换为pdf,但我有一个字体问题 我的xml有西里尔字符,所以当我打开生成的pdf时 这是我的fop配置文件: <fonts> <font metrics-url="/FontMetrica/cour.xml" kerning="yes" embed-url="/Fonts/CourierNew.ttf"> <font-triplet name="CourierNew
<fonts>
<font
metrics-url="/FontMetrica/cour.xml"
kerning="yes"
embed-url="/Fonts/CourierNew.ttf">
<font-triplet name="CourierNew" style="normal" weight="normal" />
</font>
</fonts>
在本文档中使用的结果pdf文件-属性字体中,我看到了以下字体:
信使
粗体信使
有人能帮我吗?我认为您应该编写配置文件的完整路径。或者将fopConfig.xml放在类路径中。我使用fop0.93。My///C:/Windows/
fopFactory.setUserConfig(new File("fopConfig.xml"));
fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);