1. 设置系统编码UTF-8
sudo dpkg-reconfigure locales
用空格键选择zh_CN.UTF-8和en_US.UTF-8,接下来选择en_US.UTF-8作为系统默认编码。
2. 选择控制台字体
sudo dpkg-reconfigure console-setup
选择编码UTF-8
选择字符集Guess optimal character set(猜测最佳字符集),接着选择字体,Let the system select a suitable font,接下来选择字体大小,16X32(framebuffer only)
3. 乱码的处理
若在控制台操作过程中出现乱码,说明所选字体没有文本中相应的字符。需要安装或选择新的字体。
3.1 查看字体
ls /usr/share/fonts/truetype
3.2 利用fabterm选用字体
fbterm -s fontsize -n "font name"
特别的,对于IPA音标,28号LiberationMono-Regular可以较好的显示。
3.3 利用zhcon或kmscon来显示控制台
zhcon支持中文输入法
3.4 几个关于字体的命令:
安装某种字体
sudo install apt-get fontname
使得新安装字体生效
fc-cache -fv
查找默认字体
fc-match serif
fc-match sans-serif
fc-match monospace
显示字体列表
fc-list|grep noto
No comments:
Post a Comment