簡體   English   中英

Jasper報告字體未找到異常

[英]Jasper report Font not found exception

當我在Windows和Mac上使用jasper報告時它工作正常,當我將我的應用程序部署到linux計算機並嘗試生成它引發的報告時

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並與application一起打包 這個怎么做 ?

您需要Jasper的字體擴展名才能實現此目的。 博客介紹了實現此目標的步驟,並將其擴展到可用於PDF導出。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM