I've been stuggling myself with setting the fonts the right way, and stumbled upon the same error when trying to create a PDF files from eclipse.
I ended up adding an external jar for each of the fonts (without the xml or properties files) and put the in the classpath (WEB-INF/lib) - arial.jar, timesNewRoman.jar etc.
In the jrxml files each of the text elements contained the attribute pdfFontName that specified the .ttf file to be used, for example pdfFontName="arial.ttf" without a specified path.
Hope that helps you or anyone else struggling to figure out the whole fonts issue (-:
Font '’Arial’' is not available to the JVM
in Products
Posted
I've been stuggling myself with setting the fonts the right way, and stumbled upon the same error when trying to create a PDF files from eclipse.
I ended up adding an external jar for each of the fonts (without the xml or properties files) and put the in the classpath (WEB-INF/lib) - arial.jar, timesNewRoman.jar etc.
In the jrxml files each of the text elements contained the attribute pdfFontName that specified the .ttf file to be used, for example pdfFontName="arial.ttf" without a specified path.
Hope that helps you or anyone else struggling to figure out the whole fonts issue (-: