如何在登录屏幕上更改字体?


Answers:


1

您可以尝试这里提到的方法:https : //askubuntu.com/a/224060。该命令将抱怨“未指定协议”,但应该可以工作(在命令末尾省略感叹号)。虽然它仅更改greeter中顶部面板的字体。
您还可以获取其他设置列表,可以使用此方法进行调整:

sudo -u lightdm dbus-launch gsettings list-keys com.canonical.unity-greeter

0

首先打开一个终端,开始在单位破折号中键入“ terminal”以查看该选项,或按ctrl + alt + t

让我们转到正确的目录:

cd /etc/lightdm

现在,在进行任何更改之前,请先备份文件:

sudo cp unity-greeter.conf unity-greeter.conf.bak 

现在我们需要打开此文件,看看有什么更改,键入/复制:

gksu gedit /etc/lightdm/unity-greeter.conf

该文件应如下所示:

#
# background = Background file to use, either an image path or a color (e.g. #772953)
# logo = Logo file to use
# theme-name = GTK+ theme to use
# font-name = Font to use
# xft-antialias = Whether to antialias Xft fonts (true or false)
# xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
# xft-hintstyle = What degree of hinting to use (hintnone, hintslight, hintmedium, or hintfull)
# xft-rgba = Type of subpixel antialiasing (none, rgb, bgr, vrgb or vbgr)
#
[greeter]
background=/usr/share/backgrounds/warty-final-ubuntu.png
logo=/usr/share/unity-greeter/logo.png
theme-name=Ambiance
icon-theme-name=ubuntu-mono-dark
font-name=Ubuntu 11
xft-antialias=true
xft-dpi=96
xft-hintstyle=hintslight
xft-rgba=rgb

然后保存并注销。


嗨,感谢您的答复,但仍然是默认字体(Ubuntu)。我放置了Segoe 11(字体Segoe,大小11),但对重启没有任何影响。
gabeweb

3
至少在12.04甚至更早之前,所有单位欢迎程序设置都已移至gsettings。此信息现在已过时。
mfisch 2012年

0

如果您想自定义显示管理器,lightdm可能不是理想的选择。我将其替换为mdm(可修复性,图形配置工具等),它有点肿,但您不会注意到任何区别,除非它运行在12岁的笔记本电脑上。有关说明,请参见: 如何将LightDM替换为MDM?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.