反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Server installation fonts

  • Recent Updates: August 25, 2022
  • I. Overview

    1. Problem Description

    • Linux server export text overlap.

    • When exporting pdf, the Chinese characters in the chart become boxes.

    • Insert a diagonal scramble with a square diagonal line.

    2. Reason Analysis

    The server is missing the font used by the dashboard.

    3. Solution ideas

    The server installs the missing font.

    Note: In a clustered environment, missing fonts need to be installed on all nodes.

    II. How to install in Linux system

    1. Check Chinese Language Pack

    Check whether there is font package zh_cn.UTF-8 in the system, check whether the system default language is zh_cn.UTF-8:

    locale -a | grep zh_CN

    1619330481556168.png

    If not, please refer to the following for the method of installing the Chinese language pack and setting the system default language: Linux system installation Chinese language pack

    2. Confirm missing fonts

    The fonts used in the garbled parts of the dashboard are missing fonts.

    It is assumed that after the grouping table is exported, the header is garbled, and the header is in bold, so the bold font package is missing.

    3. Install missing fonts

    1)Usefc-listto view the font library, as shown in the following figure:

    Note: if prompted: -bash: fc-list: command not found, use yum -y install fontconfig statement to view the font library again.

    2.png

    2) Create a new directory chinese under the /usr/share/fonts directory, and upload the fonts in the local windows system C:\Windows\Fonts to the /usr/share/fonts/chinese directory.

    For example, upload the "SimHei" font, as shown in the following figure:

    image.png

    3) Modify the permissions of the chinese folder, as shown in the following figure:

    chmod -R 755 /usr/share/fonts/chinese

    37.png

    4) Execute the following command:

    cd /usr/share/fonts/chinese
    mkfontscale #Font extension
    mkfontdir #New font directory
    fc-cache -fv #Refresh cache, or execute
    fc-cache /usr/share/fonts/chinese/fc-list #View system fonts

    To execute mkfontscale, prompt mkfontscale: command not found, install: yum install mkfontscale.

    Execute the command: fc-list | grep SimHei.ttf to check whether the installation is successful:

    39.png

    4. Restart the project

    After the font is installed, restart the project, and the corresponding font will be displayed during preview and export.

    III. How to install in windows system

    1. Confirm the missing font

    The fonts used in the garbled parts of the dashboard are missing fonts.

    It is assumed that after the grouping table is exported, the header is garbled, and the header is in bold, so the bold font package is missing.

    2. Install missing fonts

    After confirming that there is no corresponding font in the C:\Windows\Fonts folder of the server, import the downloaded font into the C:\Windows\Fonts folder, or install it directly in the font settings of the system.

    If there is no boldface in the system, directly import fonts in the C:\Windows\Fonts folder. As shown in the following figure:

    3. Restart the project

    After the font is installed, restart the project, and the corresponding font will be displayed during preview, export and printing.

    Note: after the font is installed, if the font cannot be read, you can copy the font to the server JDK_HOME/jre/lib/fonts, restart the container where the project is located.

    Attachment List


    Theme: Deployment Integration
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    售前咨询电话

    400-811-8890转1

    在线技术支持

    在线QQ:800049425

    热线电话:400-811-8890转2

    总裁办24H投诉

    热线电话:173-1278-1526

    文 档反 馈

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    10s后关闭