仅在14.04中使用终端更改默认系统字体
以下问题回答了如何使用调整工具调整字体,但我想知道如何在不安装unity-tweak-tool
情况下执行此操作。
如何从终端调整默认系统字体。
gsettings
为gsettings
提供了一个简单的命令行界面。 它允许您获取,设置或监控单个密钥以进行更改。
-
您可以通过以下命令在终端中设置字体:
gsettings set org.gnome.desktop.interface document-font-name 'Sans 10' gsettings set org.gnome.desktop.interface font-name 'Ubuntu 10' gsettings set org.gnome.desktop.interface monospace-font-name 'Ubuntu Mono 11' gsettings set org.gnome.nautilus.desktop font 'Ubuntu 10'
-
要了解当前设置,请在终端中输入以下命令:
gsettings get org.gnome.desktop.interface document-font-name gsettings get org.gnome.desktop.interface font-name gsettings get org.gnome.desktop.interface monospace-font-name gsettings get org.gnome.nautilus.desktop font
额外:
-
要在模式类型后面找到所有类似的键,请执
gsettings list-recursively org.gnome.desktop.interface
-
要重置所有键的值,请在终端中执行以下命令:
gsettings reset-recursively org.gnome.desktop.interface
最近的更新一直在改变我的系统上的字体缩放因子,使用此命令重置它们…
gsettings set org.gnome.desktop.interface text-scaling-factor '1.0'
您可以使用dconf
更改默认系统字体:
dconf write /org/gnome/desktop/interface/font-name "'NanumGothic Italic 11'"
要恢复原始值:
dconf write /org/gnome/desktop/interface/font-name "'Ubuntu 11'"
注意 :要检查当前值,请使用以下命令:
dconf read /org/gnome/desktop/interface/font-name