大家好,请问如何增加中文库呢?现在中文显示是???,ncurses显示中文乱码。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
到linux目录下,如/usr/share/fonts下新建一个目录 mkdir /usr/share/fonts/local
AD:
1.从windows系统的字体目录(一般为C:\WINDOWS\Fonts)下拷贝字体文件, 比如:simsun.ttc,到linux目录下,如/usr/share/fonts下新建一个目录 mkdir /usr/share/fonts/local
2.使用以下命令来更新字体信息:
ttmkfdir -d /usr/share/fonts/local/ -o /usr/share/fonts/local/fonts.scale
3.复制fonts.scale一份并更名为 fonts.dir.
4.添加到 X 字体服务器的路径中 chkfontpath --add /usr/share/fonts/local/
5.使用以下命令来重新启动 xfs 字体服务器:
service xfs reload
到此为止已经添加成功了!
感谢分享!若有其他朋友测试成功了之后,可以在这个帖子中进行反馈,谢谢!