使用yum update之后,终端字体变得不正常了。

手动配置一下,选择 编辑-》侧写首选项-》常规-》字体


在中文环境的GNOME中,终端字体总是不正常,本文介绍一种简单的设置方法。

GNOME终端配置后的效果

英文字体设置

默认的英文字符不清晰,是由于系统的Monospace字体不正确导致的。只要换一个字体就可以成功。

打开GNOME终端,在菜单中选择编辑->配置文件首选项 ,在常规一栏中,去掉“使用系统的等宽字体”一项,选择字体为Dejavu Sans MonoBitstream Vera Sans Mono,字号12。确定下来,英文字体就会有明显的改观。

中文字体配置

此时终端的中文字体可能还不太清晰,一种较简便的解决办法是安装文泉驿点阵字体。如在Fedora中的安装方法为:

# yum install wqy-bitmap-fonts

至此,GNOME的终端应该就比较美观了。


也可以试试

yum -y install dejavu-sans-* dejavu-serif-fonts


GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec "HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 8 天前
e83434ff Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!). Bonus points: - we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly - ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether. Validated command palette with multiple high contrast themes. See PR thread for demo. Closes #17914 8 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐