Jasper stops finding one font

前端 未结 6 1743
遥遥无期
遥遥无期 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:46

    I'm using JasperReports 6.3.1. I solved the problem by adding the following line in my .jrxml:

    
    

    This way our report will look something different, depending on the fonts that are preinstalled in the system. In my case it does not represent a problem, and I'm not interested in adding an extra font in my project, since I need to be as light as possible.


    In case you want to use the original fonts of the report in all runtime environments, an easy solution is to add the necessary dependencies to the project.

    An example, for Maven:

    
        net.sf.jasperreports
        jasperreports-fonts
        6.0.0
    
    

    You can also download the libraries and add them manually to the project, however it will work.


    I hope you find them useful.

提交回复
热议问题