字体'Trebuchet MS'不适用于JVM [英] Font 'Trebuchet MS' is not available to the JVM

查看:122
本文介绍了字体'Trebuchet MS'不适用于JVM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ubuntu OS进行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.

提前致谢。

推荐答案

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

这篇关于字体'Trebuchet MS'不适用于JVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆