SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Slackware 12.0 (2.6.21.5) I changed my kde font size with qtconfig, but it took effect only on kde programs. I am using other ones, such as codeblocks, eclipse, skype,pidgin and their menu font size is too small and I can't find a way to make them bigger.
On the other hand, a simple entry in .gtkrc.mine will do the trick:
Code:
style "user-font" {
font_name = "Bitstream Vera Sans 8"
}
widget_class "*" style "user-font"
gtk-font-name="Bitstream Vera Sans 8"
gtk-xft-antialias = 1
gtk-xft-hinting=1
gtk-xft-hintstyle=full
gtk-xft-rgba=rgb
gtk-xft-dpi=98304
gtk-icon-theme-name="Iris"
... and so on
Don't put it into .gtkrc-2.0, because that's where applications (like gtk-theming apps or Gnome configuration dialogs) write into.
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
Edit: Although this does work. I now believe it is technically not the best/correct solution.
Thanks Stroker - you solved a problem that has plagued me for months.
I have now got rid of the .gtkrc-2.0 file and, as you quite rightly say, kept it simple.
Quote:
Originally Posted by Stroker
Keep It Simple Slackers. Just use the X resource data base. That's what it's there for. First make sure X is configured to match your monitors resolution read here. Then do these in the order listed.
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).
Quote:
Originally Posted by Stroker
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.