字体 'Trebuchet MS'不适用于 JVM
我正在使用 ubuntu 操作系统来生成 ireport pdf。例外是 jvm 找不到 Trebuchet MS。我没有在 ubuntu 中安装 msfont 包。当我在 ireport 工具中添加外部字体(选项->字体)时,它正在编译并生成pdf但是当我通过java代码生成时它抛出异常。我将ttf字体jar添加到类路径但仍然出现异常。jvm是否依赖于操作系统中安装的字体pkg Trebuchet MS 是 Windows 字体,未安装在我的操作系统中。
提前致谢。
I am using ubuntu OS for ireport pdf generation.The exception is Trebuchet MS not found by jvm.I have not installed msfont package in ubuntu.when i added external font in (option->font) to ireport tool then it is compiling and generating pdf But when i am generating through java code it is throwing exception.I added the ttf font jar to class path but still the exception is coming.Is jvm depends on font pkg installed in OS as Trebuchet MS is windows font which is not installed in my OS.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须使用字体扩展来处理字体。然后您将获得漂亮的 PDF(或者至少使用 Trebuchet MS 获得 PDF)。
You must use Font Extensions to deal with fonts. Then you'll get beautiful PDFs (or at least PDFs with Trebuchet MS).