Font 'Trebuchet MS' is not available to the JVM

半城伤御伤魂 提交于 2020-01-16 05:43:46

问题


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.


回答1:


You must use Font Extensions to deal with fonts. Then you'll get beautiful PDFs (or at least PDFs with Trebuchet MS).



来源:https://stackoverflow.com/questions/8667845/font-trebuchet-ms-is-not-available-to-the-jvm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!