MS ttf 的字体缩进、对齐和制表符空间在 Red Hat Linux 中不同
我在 Red Hat Linux 中生成的 pdf 缩进和对齐格式方面遇到问题。我用Ubuntu 10.1进行了测试;它正在生成正确的格式。我使用的字体是 Trebuchet MS。我将 ttf jar 放在类路径中并使用了正确的字体扩展名,因此 PDF 在 Ubuntu 中生成得非常好。但当我使用 Red Hat 5.4 进行测试时,缩进、制表符空间和对齐方式差异很大,导致单词和行被打乱。我在 ubuntu“cp1252”中使用编码技术,与 Red Hat 中运行的 jrxml 相同。你能建议任何设置吗?
预先感谢您的回复。
I am facing trouble with indent and align format of pdf generated in Red Hat Linux. I tested with Ubuntu 10.1; it is generating correct format. The font I am using is Trebuchet MS. I put the ttf jar in the class path and used proper font extension, so the PDF is generating very nicely in Ubuntu. But when I tested with Red Hat 5.4 the indent and tab space and align is so different that words and lines are scrambled. I am using encoding technique in ubuntu "cp1252" same jrxml running in Red Hat. Can you suggest any settings?
Thanks in advance for your reply.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RedHat 5.4 版本仅支持 Jdk 1.5,以便生成具有正确字体对齐的 jasper pdf。因此,设置 jdk 1.5 的路径解决了我的字体对齐问题。但是当我设置 jdk 1.6 对齐时,对齐会变得混乱。
The
RedHat 5.4 version supports Jdk 1.5
only for jasper pdf generation with correct font alignment.So setting path to jdk 1.5 solved my font alignment problem.But when i am setting jdk 1.6 alignment gets scrambled.