daust / JasperReportsIntegration

JasperReportsIntegration provides an interface to use the JasperReports reporting engine in an Oracle database application, specifically with Oracle Application Express (Oracle APEX).
BSD 3-Clause "New" or "Revised" License
56 stars 25 forks source link

Additional fonts: setConfigDir.sh works, but OC_JASPER_CONFIG_HOME doesn't #149

Open gomanuke opened 2 months ago

gomanuke commented 2 months ago

Hi, Diaetmar. It seems to be a bug.

As it says here https://github.com/daust/JasperReportsIntegration/blob/v2.11.0/src/doc/github/installation-full.md

We have two options here: Configure the server environment using an operating system environment variable Configure the setting in the web.xml file of the jri.war file

As it says here https://github.com/daust/JasperReportsIntegration/tree/v2.11.0?tab=readme-ov-file

Using additional fonts ... Some fonts are bundled with jasperreports itself into a jar and make them work irrespective of underlying platform. Those are the DejaVuSans fonts. They are always available on all platforms because they are included in the file jasperreports-fonts- .jar. https://community.jaspersoft.com/wiki/custom-font-font-extension (this is the easiest one), then add it to the classpath

But if i follow first way with setting OC_JASPER_CONFIG_HOME for Tomcat, but not ./setConfigDir.sh ../webapp/jri.war /opt/JasperReportsIntegration then JRI doesn't see font's jars placed into ./webapps/jri/WEB-INF/lib

JRI1