-----------------------------Exception Info----------------------
----Net.sf.jasperreports.engine.util.JRFontNotFoundException:Font ' Yue à 綋 ' is not available to the JVM. See the Javadoc for more details.
-----------font xx not found in Linux environment
There are two types of---solution, the first one is not limited by the deployment environment, the second is constrained by the deployment environment, the Linux environment that is not deployed to a place needs to be set up, does not conform to loosely coupled software design principles,
It is recommended that the first type of
The first way to add a font jar
Specific steps: Import the desired font file in ireport, then import it into a jar package, add it to the project's Classpath directory, and build path to add it in.
The second way is to add the required fonts to the Linux service because the default Windows is GB encoded (GB18050 or GB2312) and Linux defaults to Unicode-encoded
Copy the Chinese font of Windows (typically in the C:\Windows\Fonts directory) to the Linux/usr/share/fonts/chinese/truetype directory
-----Example: The following is an example of a imitation font
Installation steps:
1, Simfang.ttf Copy to/usr/share/fonts below
2. Execute the following commands sequentially
Mkfontscale
Mkfontdir
Fc-cache
Simfang.ttf This is a font file, in C:\WINDOWS\Fonts this directory has
Linux under the JDK Chinese garbled
Reference Blog Address: http://blog.csdn.net/a19881029/article/details/9031743
This article from "There is nothing, know in Providence" blog, please be sure to keep this source http://yangsj.blog.51cto.com/8702844/1697065
Solving the problem of Chinese garbled characters and Chinese fonts missing in Linux