反馈已提交
网络繁忙
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.
The server is missing the font used by the dashboard.
The server installs the missing font.
Note: In a clustered environment, missing fonts need to be installed on all nodes.
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
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
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.
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) 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:
3) Modify the permissions of the chinese folder, as shown in the following figure:
chmod -R 755 /usr/share/fonts/chinese
4) Execute the following command:
cd /usr/share/fonts/chinesemkfontscale #Font extensionmkfontdir #New font directoryfc-cache -fv #Refresh cache, or executefc-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:
After the font is installed, restart the project, and the corresponding font will be displayed during preview and export.
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:
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.
售前咨询电话
400-811-8890转1
在线技术支持
在线QQ:800049425
热线电话:400-811-8890转2
总裁办24H投诉
热线电话:173-1278-1526
文 档反 馈
鼠标选中内容,快速反馈问题
鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。
不再提示
10s后关闭