Importing a Font to the Designer

  • Last update:October 15, 2024
  • 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.

    字体导入.png

    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.

    设计器显示字体.png

    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.

    Attachment List


    Theme: Report Application
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    9s后關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy