【问题标题】:Could not load the following font on WebSphere无法在 WebSphere 上加载以下字体
【发布时间】:2014-06-04 14:56:49
【问题描述】:

尝试使用 JasperReports 导出到 PDF 时出现以下错误。

打印错误信息时的错误如下:

无法加载以下字体:

pdfFontName : Arial.ttf

pdfEncoding : Identity-H

isPdfEmbedded : true]

我的 JRXML <textElement> <font pdfFontName="Arial.ttf" isPdfEmbedded ="true" pdfEncoding ="Identity-H"/> </textElement>

使用: WebSphere Application Server 版本 7
JasperReports 版本 3 jar

Arial.ttf 字体文件存在于 .../web-inf/classes 和 unix 机器中字体的默认位置。

我对 JasperReports 几乎一无所知,需要调试这个问题。请帮助我解决我可能遗漏/忽略的事情,或者任何部分需要更具体的信息。

【问题讨论】:

  • 您是在谈论自定义 Java 应用程序还是在谈论 JasperReports Server

标签: java fonts jasper-reports websphere jasperserver


【解决方案1】:

您可以尝试将字体 ttf 文件复制到:

<WAS_INSTALLATION>java/jre/lib/fonts

然后重新启动 WAS 服务器。

【讨论】:

    猜你喜欢
    • 2013-09-10
    • 2014-10-22
    • 1970-01-01
    • 2014-06-09
    • 2016-04-06
    • 2016-08-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多