Jasper stops finding one font

前端 未结 6 1735
遥遥无期
遥遥无期 2020-12-09 04:56

After upgrading Jasper to the last version, it stopped finding one font: Symbol. The rest of the fonts seem to be fine. I have a bunch of ttfs in the same directory as where

6条回答
  •  北海茫月
    2020-12-09 05:50

    The easy steps to solve this problem would be

    1. Open jasperreports-x.x.x.jar, in my case jasperreports-3.7.2.jar.
    2. Locate default.jasperreports.properties file and open it.
    3. Find the line net.sf.jasperreports.awt.ignore.missing.font=false and change value from false to true net.sf.jasperreports.awt.ignore.missing.font=true.
    4. Update the jar.
    5. Add to classpath of your project.

    The problem is solved.

提交回复
热议问题