Java Jasper报告字体未找到异常
当我在windows和mac上使用jasper report时,它工作正常;当我将我的应用程序部署到linux机器时,它尝试生成它抛出的报告Java Jasper报告字体未找到异常,java,fonts,jasper-reports,ireport,Java,Fonts,Jasper Reports,Ireport,当我在windows和mac上使用jasper report时,它工作正常;当我将我的应用程序部署到linux机器时,它尝试生成它抛出的报告 net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Times New Roman' is not available to the JVM. See the Javadoc for more details. 我知道我们可以通过在linux机器上安装缺少的字体来解决这个问题(h
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Times New Roman' is not available to the JVM. See the Javadoc for more details.
我知道我们可以通过在linux机器上安装缺少的字体来解决这个问题(http://stackoverflow.com/questions/3987804/jasper-stops-finding-one-font). 我的问题是,我们可以将字体打包为jar,并将其作为应用程序的包提供吗。如何做到这一点?您需要Jasper来实现这一点。这说明了实现这一点的步骤,并将其扩展到可用于PDF导出。您需要Jasper来实现这一点。这说明了实现这一点的步骤,并将其扩展到可用于PDF导出