Gentoo Archives: gentoo-user

From: Holly Bostick <motub@××××××.nl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Font sizes very small in KDE
Date: Mon, 19 Sep 2005 12:40:16
Message-Id: 432EAEC6.6030401@planet.nl
In Reply to: [gentoo-user] Font sizes very small in KDE by Stewart Taylor
1 Stewart Taylor schreef:
2 > Hi All
3 >
4 > I've got a problem with the display under KDE. I've just installed
5 > Gentoo for the first time. Under KDE the font sizes are very small
6 > compared with what they should be. Compared with the same hardware
7 > under Suse 8.0 all text displays a little over half the size. this
8 > affects KDE apps and non KDE apps the same. Firefox text on menus and
9 > the like is so small that it is unusable. On one of my own programs
10 > the 14 point text displays as if it were 8-9 point. I have a Matrox
11 > Millennium G400 graphics card. I've tried all the settings i can
12 > find and have tried different kernel modules settings without
13 > success. The info I found on the web left me confused as it seems
14 > that this card may have different names in the UK and US. I'm in the
15 > UK.
16 >
17 > TIA
18 >
19 > Stewart
20
21 I find this situation a constant annoyance as well. You have,
22 unfortunately, several issues involved, none of which is completely
23 resolveable until everybody is on board with the freedesktop.org
24 standard, but you can get everything to a reasonably stable state that
25 you can deal with.
26
27 The problem (and I must regretfully point out that most of the problem
28 seems to be KDE, but we'll get to that):
29
30 You run KDE. Fine; KDE controls its fonts, you set your fonts to
31 whatever you like and they look OK (all right, yours don't, quite, but
32 you can obviously hack them into shape by running them at some
33 ridiculously high point size. I've also noticed that KDE seems to make
34 fonts look smaller than I would imagine they should, and I don't know
35 why, so I just hack them into useability). Then you open Firefox. Which is a
36 GTK program and whose font size (for menus and the like, not page
37 display which is controlled by the program) is controlled by the GNOME
38 control panel (or gtk2rc, but in any case GNOME/GTK, and not KDE). So
39 GTK apps are now running essentially unconfigured fonts and font sizes,
40 so they look like sh*t. Plus KDE is (naturally) trying to control this
41 window (because it's a window on the KDE desktop), and is unable to
42 really do so, so that just makes things a bit worse (more on this later
43 as well). Furthermore you also have X trying to control the font size
44 for one or more reasons (maybe you have a font server running, maybe
45 you're running 'uncontrolled' programs which start with an 'X' rather
46 than a 'K' or a 'G', and of course X is ultimately responsible for
47 displaying all display elements anyway).
48
49 So the situation is that basically "too many cooks spoil the soup". At
50 least, that's the *first* problem, which we'd have to clear away before
51 we could be sure that your video card is doing what it should (which I
52 think it probably is; I have a G400 Max which I used till about a year
53 or so ago under Linux, and it was really the most trouble-free card I've
54 used).
55
56 Here's what you want to do:
57
58 1. emerge x11-themes/gtk-engines-qt. This little GTK engine will add a
59 couple of entries to the KDE control center which will allow KDE to
60 control not only the color of GTK apps (which kcontrol already does
61 before the installation of this engine, check the Appearance and
62 Themes=> Colors section for the checkbox), but the theme and the fonts
63 as well, so they can be conformed. Be aware, the themes will only be
64 conformed for GTK2 applications, and only those which do not theme
65 themselves (as Firefox does, for example). So any GTK1 apps you might
66 run will not look so much better (except that the colors will be right),
67 unless you do what I do, which is run a theme which is designed for all
68 three engines, GTK1, GTK2 and QT. A few can be found on KDE-look.org.
69
70 1a. emerge =x11-themes/gtk-theme-switch-1.0.1-r2 (specifically the 1.0
71 version which controls GTK1 themes, rather than the 2.0 version, which
72 controls GTK2 themes, which you don't need, as you're already doing this
73 with Kcontrol). If you use any GTK1 apps (sylpheed, gnotepad +,
74 multi-gnome-terminal, etc), this program can be useful for setting their
75 theme and fonts.
76
77 2. Try to stick to programs for one desktop environment wherever
78 possible. Yes, this sucks, but until KDE and GNOME (GTK) are a lot more
79 interoperable in this respect than they are now, the easiest way to
80 avoid them conflicting is to not bring them into conflict by using
81 programs from multiple DEs if it can be avoided. This is, btw, why I
82 complain that KDE is the problem; I don't run GNOME or KDE, but Openbox
83 and FVWM. I run mostly GNOME (GTK) apps, but there are a couple of KDE
84 apps I like that I use (k3b, krusader). It's hard not to notice that
85 when I open one of the KDE programs on my desktop which is already
86 running a bunch of GTK apps, *the font size changes for everything*.
87 Just a little, but I can see it. This may have been my mistake though--
88 I had set kcontrol to 'use my KDE fonts for GTK apps' (using
89 gtk-engines-qt). It's quite possible that, since kcontrol is not running
90 until I open Krusader or K3b, and because my KDE font size setting is
91 not quite the same as my GNOME font size setting (because I just can't
92 deal with hopping back and forth between two control centers every time
93 I want to change fonts across the entire system), that when kcontrol
94 necessarily opens to control the KDE application, it changes the fonts
95 of all the GTK apps to the specified size (the KDE size). The situation
96 is the same but mirror-imaged for you; if you run KDE, then open a
97 GNOME/GTK app, the various GNOME backend programs (notably
98 /usr/libexec/gnome-settings-daemon) are opened to control the
99 'look-and-feel' of the GTK app, overriding the KDE settings (unless
100 you're using gtk-engines-qt, which 'pre-overrides' the
101 override by GNOME). I've changed the setting in Kcontrol to 'use a
102 specific font size' (which is the size set by GNOME), so hopefully that
103 will fix it. In the past, I've just opened up the GNOME control panel or
104 gtk-theme-switch to 'fix' the GTK apps. But either way, you can see it's
105 just all an unnecessary annoyance for the user/administrator in the
106 first place-- and the reason is because these DEs conform to their own
107 standards, which are fairly incompatible with each other (until they
108 both finish their migration to the freedesktop.org standard).
109
110 Since the point of KDE is that it has a sh*tload of apps for everything
111 you could possibly want to do ever that are all designed to work with
112 KDE, it's even easier to just try to stick with apps designed for your
113 desktop than it is under GNOME (though GNOME has started to get a few
114 good programs lately-- graveman and gnomebaker are quite nice, though
115 not quite K3b, and nothing comes close to Krusader, despite Krusader's
116 lack of interoperability with the GNOME desktop-- so, fortunately the
117 gap is definitely closing. I'm hoping that GNOME 2.12 will be a
118 significant step forward in this respect).
119
120 Anyway, once you've got that out of the way, you can then deal with your
121 video settings (if they still need to be dealt with) in what are
122 hopefully less murky waters.
123
124 Hope this helps.
125 Holly
126 --
127 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Font sizes very small in KDE David Helstroom <david.helstroom@××××××××××××××××.au>
Re: [gentoo-user] Font sizes very small in KDE Stewart Taylor <stewarta.taylor@×××××××××××.com>