Apache Fop生成PDF时阿拉伯字符分离问题求助
Apache FOP生成PDF时阿拉伯文本字符分离问题求助
我使用Apache Fop从XML生成PDF,英文内容显示正常,但阿拉伯文本出现字符分离的情况(附图:
)。
已尝试以下操作但问题仍未解决:
- 测试过Apache Fop 2.1、2.5及最新稳定版2.6
- 在Fop配置文件中嵌入字体
- 启用complex-scripts配置
- 更换过不同字体
以下是我的Apache Fop配置文件:
<fop version="1.0"> <complex-scripts disabled="false" /> <renderers lang="ar"> <renderer mime="application/pdf"> <fonts> <font kerning="yes" embed-url="src/main/resources/fonts/trado.ttf" embedding-mode="auto" encoding="UTF-8"> <font-triplet name="trado-ar-font" style="normal" weight="normal" /> </font> </fonts> </renderer> </renderers> </fop>
我还查阅过关于XSL-FO显示阿拉伯字符、FOP阿拉伯字母间距的相关问题,但均无效,恳请提供技术支持。
内容的提问来源于stack exchange,提问作者mshehata
相关产品推荐
相关产品推荐

