Linux 上的 GNOME 2.2 桌面系统管理指南

设置字体首选项

要设置字体首选项,请修改两个首选项键的值。 下表显示要修改的键以及与这些键对应的用户界面组件:

GConf 位置 

用户界面组件 

/desktop/gnome/interface/font_name 

字体首选项工具,应用程序字体选项

/apps/nautilus/preferences/desktop_font 

字体 首选项工具,桌面字体选项

例如,要将 Sans 12 设置为强制的应用程序字体,请运行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/interface/font_name “Sans 12”

要将 palatino 12 设置为默认的桌面对象字体,请运行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /apps/nautilus/preferences/desktop_font “palatino 12”