Linux system Java is not compatible with Siyuan blackbody solution

  
                

The default font for the Fedora 22 system is Siyuan Blackface. It should be said that this font is a more advanced and beautiful font. It’s just that the Java program doesn't seem to be compatible with Siyuan Blackface. So what is the solution for Linux system Java not compatible with Siyuan Blackface?

Despite the official said on Oracle Java 7 document from the beginning has been able to support OTF fonts, such as createFont other methods can still provide support for OTF fonts with TRUETYPE_FONT and other parameters, but the source is displayed in bold in Java programs Chinese characters will appear in the box, especially in the Simplified Chinese language environment, the font seems to use the traditional version of Siyuan Blackbody Hong Kong, and does not use the simplified Chinese version, some words can not be displayed, replaced by squares.

In the absence of extra effort to study font problems, the current guess is that the problem of Java recognition is caused by the issue of the source font in the OTF format and the existence of Hinting information. In addition, the language encoding of the font may also be problem. A temporary alternative is to use TTF fonts without Hinting information, such as XHei, Minglan and other community-made fonts (without Hinting information). It is also recommended to remove the fontconfig configuration that comes with the installation of the Siyuan Blackbody package. Directly modify files such as 65-nonlatin.conf in fontconfig, customize the matching priority of the alternate fonts you use, and more.

The above is the solution to the Linux system Java is not compatible with the source of the blackbody, if it is not, then you can only recommend a non-OTF format font. Specific methods can refer to: how to add custom fonts on Linux.

Copyright © Windows knowledge All Rights Reserved