Customizing TTF font location for resources
The default font path in JReport Server is <install_root>\font
. You can set the font path to a different location by using the following three ways. These are in an order from higher to lower priority:
- Use the -D parameter to set the system properties key jreport.server.font.path
- Use the API HttpUtil.initEnv() to set the properties key server.font.path
- Add a property server.font.path in the server.properties file and set a full path to it.
Notes:
- The value specified by -D is not stored into the server.properties file.
- The value specified using API is stored into the server.properties file.