If you are looking for software to use, go to Huajun Software Park! software release AI product list
Location: Home pageTutorial strategyTutorialComputer software tutorials Linux system J...

Solution to the problem that Linux system Java is not compatible with Siyuan boldface characters

Author: Xiaoqiao Liushui Date: 2017-05-19

Broadband Auto-Dialing King
Broadband Auto-Dialing King-1.2

Dial tool Storage size: 1160KB Time: 2019-10-08

Software introduction: Broadband Automatic Dial-up King is a free dial-up software specially designed for the majority of domestic broadband dial-up users. The dial-up speed of Broadband Automatic Dial-up King software...

Download now

It’s just that the Java program seems to be incompatible with Siyuan Hei fonts. So what is the solution to the problem that Linux system Java is not compatible with Siyuan Hei fonts?

Solution to the problem that Linux system Java is not compatible with Siyuan boldface characters

Although Oracle's official documentation states that OTF fonts have been supported starting from Java 7, methods such as createFont can still use parameters such as TRUETYPE_FONT to provide support for OTF fonts. However, when Siyuan HeiTi displays Chinese characters in a Java program, squares will appear, especially in the Simplified Chinese language environment. The font seems to be using the SiYuan HeiTi Taiwan and Hong Kong traditional version, and the simplified Chinese version is not used. Some characters cannot be displayed and are replaced by squares.

In the absence of extra energy to study font issues, the current guess is that the Siyuan font is released in OTF format and there is a problem with Hinting information inside, causing problems with Java recognition. In addition, the language encoding of the font may also be a problem. As a temporary alternative, it is best to use TTF fonts without Hinting information, such as fonts produced by communities such as XHei and Minglan (without Hinting information). It is also recommended to delete the fontconfig configuration that comes with the installation of the Siyuan Blackbody software package, and then directly modify files such as 65-nonlatin.conf in fontconfig to customize the matching priority of the alternative fonts you use, etc.

       Okay, the above is all the content brought to you by the editor of Huajun. Isn’t it very simple? Have you learned it? If you want to know more related content, please pay attention to Huajun information at any time. Welcome to Huajun to download!

Related articles