Overview
For some projects, the file format is very important with strict font requirements. However, in some cases, the required font is not available in the designer. What should be done in this situation?
Solution
Currently, the selectable fonts in the FineReport designer are from the font library installed in the system. If you want to add fonts to the designer, you just need to install new fonts in the system. If a font cannot be read, you can copy the font file, paste it to jre/lib/fonts in the designer, and restart the designer. The fonts of the Mac system are stored in /.install4j/jre.bundle/Contents/Home/jre/lib/fonts. .install4j is a hidden folder located in the installation directory, which needs to be found by yourself.
Procedure
For example, you want to use the FangSong_GB2312 font (that does not exist in the Windows 7 system) in the designer.
Installing the Font in the System
Download the font file from the internet and import it to C:\Windows\Fonts, as shown in the following figure.
Designer
Restart the designer and select the cell. You can see the new font in the Font drop-down list on Cell Attribute tab page, as shown in the following figure.
Notes
To import a font, pay attention to the following points.
1. To use a font that is not available in the system during report designing in the designer, you need to import the system font to the machine where the designer is located so that the font can be selected in the designer.
2. To display the font effect during report preview on the client, you need to install the font in the client system.
3. To print and export images on the server, you need to install the font in the server system.
4. If the font cannot be read, you can copy and paste the font to jre\lib\fonts in the designer and restart the designer.
5. If the system environments are different between the designer and the server, problems such as font replacement and display incompleteness during template preview may occur. This is because the font used in the template is not installed in the server system. In this case, you need to install the font in the server system.