字体 'Trebuchet MS'不适用于 JVM

发布于 2024-12-23 05:40:28 字数 254 浏览 2 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

打小就很酷 2024-12-30 05:40:28

您必须使用字体扩展来处理字体。然后您将获得漂亮的 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文