Page 1 of 1

gtk client font size

Posted: Mon Nov 15, 2004 7:42 pm
by Salathar
How do you change font size in gtk client?

I am using KDE and not Gnome.
Thanks :)

Posted: Mon Nov 15, 2004 8:27 pm
by Cowboy
The font size doesn't seem to be defined anywhere in the client, so it should
use whatever gtk uses by default.

You should be able to adjust this in ~/.gtkrc

Co-incidentallly, a google search for: gtkrc font size
has an entry from the CF List as the number one result
asking how to do this.
http://archives.real-time.com/pipermail ... 01022.html

I'd like to see a dialog to handle this, but this should work.

Posted: Mon Nov 15, 2004 9:54 pm
by Salathar
Thanks alot! :D
I did exactly what the guy on the devel list recommended and it worked. As it turned out I did not have ~/.gtkrc file and crossfire client would not use ~/.gtkrc-2.0 like some other applications

Posted: Tue Nov 16, 2004 2:18 pm
by woo
for those not on the dev list, would you tell us what he said to do?
(archival purposes)

Posted: Tue Nov 16, 2004 2:31 pm
by Mith
woo wrote:for those not on the dev list, would you tell us what he said to do?
(archival purposes)
the dev list is freely accessible, cowboy gave the url..
dev-list wrote: > > Therefor I would like to adjust the font size of the client window(s) to 8
> > pt or so. But even after downloading the gtk sources form sourceforge.net
> > for version 1.3.1 I could not find a single hint how to do that. There
> > only seem to be these two 'classic' and 'standard' fonts - which do not
> > make any diff... can smbdy help, please?!
>
> I think that what you have to do is to change your .gtkrc file (fund in your
> home directory).
>
> In that file you will probably find something like this:
> include "/usr/share/themes/Metal/gtk/gtkrc" or whatever gtk theme you have.
> In that gtkrc file there should be a line like:
> font = "-b&h-lucida-bold-r-normal-sans-12-*-*-*-p-*-iso8859-1"
> or whatever font is used. Just cahnge the size to something bigger.
>


Thanks to you also - this worked well, too!!! Now I can choose :) (this
will be difficult...)

Just - for anyone trying this and not figuring whats going wrong - I did
not have a ~/.gtkrc (am not such a window fan - prefer console stuff,
therefor I dont even have a 'real' gtk install) - simply copy the
style you want from /etc/gtk/gtkrc.* and edit it as appropriate...
so... just copy /etc/gtk/gtkrc<anything> (or whereever to find it) to ~/,gtkrc and edit the font size. 12 fits my needs on a 15" 1400x1050 res laptop