2014/05/19

Jasper report Font not found exception

★reportでやる場合

If the fonts you used are not yet installed (they probably aren't), you'll need to install them.
Click the "Install Font" button. A wizard will pop up, asking you the font name and the location of the ttf files.
Just direct the application to the location of the ttf files (for windows systems this is generally in the windows\fonts folder).
Make sure to check the "Embed this font in PDF" checkbox on the second page! All other settings can be left at their defaults.
Once all the fonts are installed, you select all the fonts you used in your report (hold <code>ctrl</code> to select multiple entries from the list).
Then you click the "Export as extension" button. This will create a jar file.
All you need to do is add the created jar file to the classpath of your application and you're done!
===>うまくいかない。。。


==>そのfontのファイルをjreのfontにコピーする
.../jre/lib/fonts/
==>OK