gtk client font size

Requests for assistance and other HOWTOs.

Moderator: Board moderators

User avatar
Salathar
Junior member
Posts: 245
Joined: Mon Apr 26, 2004 12:21 am

gtk client font size

Post by Salathar »

How do you change font size in gtk client?

I am using KDE and not Gnome.
Thanks :)
Cowboy
Luser
Posts: 21
Joined: Thu Nov 04, 2004 5:57 pm

Post 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.
User avatar
Salathar
Junior member
Posts: 245
Joined: Mon Apr 26, 2004 12:21 am

Post 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
woo
Senior member
Posts: 427
Joined: Tue Jun 15, 2004 10:32 pm
Location: Atlanta, GA
Contact:

Post by woo »

for those not on the dev list, would you tell us what he said to do?
(archival purposes)
Mith
Senior member
Posts: 348
Joined: Mon Oct 25, 2004 5:53 pm
Location: somewhere in nowhere

Post 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
Bibendi ergo sum
or rather: sum ergo bibendi
Post Reply