debian11安装中文字体

1.首先在/usr/share/fonts/truetype/目录下新建一个目录chinese

cd /usr/share/fonts/truetype/
mkdir chinese

2.拷贝windows字体到chinese目录 ,调整*.TTC权限

chmod 777 *.TTC

3.安装字体

apt install fontconfig xfonts-utils

mkfontscale
mkfontdir
fc-cache -fv

4.查看

fc-list :lang=zh-cn

5.添加中文支持

安装locale

apt-get install locales 

配置

dpkg-reconfigure locales

输入zh_CN UTF-8 UTF-8对应的序号,并且设置为默认

参考:https://blog.csdn.net/Yang838020787/article/details/118141643

posted @ 2022-06-18 10:41  b̶i̶n̶g̶.̶  阅读(1954)  评论(0编辑  收藏  举报