1. Get the font and copy it to/usr/share/fonts/zh_CN. If there is no zh_CN, create a new one. Next (very important), change the font permission to 755 or 7772. run sudomkfontscalesudomkfontdir3. under/usr/share/fonts/zh_CN to copy the configuration file to/etc/fonts/conf. avail/99-myfonts.conf
1. Get the font and copy it to/usr/share/fonts/zh_CN. If there is no zh_CN, create a new one.
Next (very important), change the font permission to 755 or simply 777.
2. Run the command under/usr/share/fonts/zh_CN.
Sudo mkfontscale
Sudo mkfontdir
3. Copy the configuration file to/etc/fonts/conf. avail/99-myfonts.conf.
The configuration files for LCD and flat are slightly different. The details are as follows:
Flat:
CODE:
Serif
DejaVu Serif
Microsoft YaHei
Sans-serif
DejaVu Sans
Microsoft YaHei
Monospace
DejaVu Sans Mono
Microsoft YaHei
Microsoft Yahei
False
Simsun
Microsoft Yahei
Arial
DejaVu Sans Serif
Times
DejaVu Sans Serif
Courier
DejaVu Sans Mono
Helvetica
DejaVu Sans Serif
Zh
En
LCD:
CODE:
Serif
DejaVu Serif
Microsoft YaHei
Sans-serif
DejaVu Sans
Microsoft YaHei
Monospace
DejaVu Sans Mono
Microsoft YaHei
Rgb
True
False
True
Hintfull
Microsoft Yahei
False
Simsun
Microsoft Yahei
Arial
DejaVu Sans Serif
Times
DejaVu Sans Serif
Courier
DejaVu Sans Mono
Helvetica
DejaVu Sans Serif
Zh
En
4. In the/etc/fonts/directory, first Delete the language-selector.conf and then create a soft link pointing to 99-myfont.conf.
Sudo ln-s/etc/fonts/conf. avail/99-myfont.conf language-selector.conf
The original language-selector.conf points to/usr/share/language-selector/fontconfig/zh_CN, if the problem is modified, you can restore it.
5. Run sudo fc-cache-fv to refresh the font cache.