1) Create this file:
/etc/X11/xinit/.Xresources
Make perms: root root 644
2) Put this in it:
Xft.dpi: 180
3) Reboot or Restart X for it to take effect.
4) Adjust the dpi value in the above file until the menus look good in
your Gtk applications like The Gimp, Firefox, etc., (use multiples of
6).
5) Now adjust your KDE fonts:
KDE Control Center > Appearance & Themes > Fonts > Adjust
All Fonts > Tick the size check box > choose the size you want.
Done.
This is exactly what the "Force fonts DPI" select box in KDE Control
Center does, except they only give you three choices Disabled, 96 DPI,
or 120 DPI.
You'll also notice that this adjusts the fonts in the right frame of
KDE Control Center when you choose a directory in the left frame.
For more information see man X under the RESOURCES header and man xrdb.
If you perfer to set it per user, instead of system wide, then create the file here:
~/.Xresources
HOWTO: Change menu font of Firefox
最新推荐文章于 2025-12-18 09:40:21 发布
本文介绍如何通过编辑X11配置文件来调整应用程序如The Gimp、Firefox等的菜单字体大小,包括设置全局DPI及KDE字体大小的具体步骤。
3248

被折叠的 条评论
为什么被折叠?



