问题
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