Subject: Increasing font size in GTK+ apps
To: David Forrai <d.forrai@ieee.org>
From: Matthias Buelow <mkb@informatik.uni-wuerzburg.de>
List: netbsd-help
Date: 02/10/2002 04:34:13
David Forrai writes:

>I installed gFTP a few months ago and recently manedit.  Both of these
>apps use GTK+ and when I open them the font is so small on my 1280x1024
>screen it's unreadable.  I couldn't find information in the GTK+ docs on
>how to set font size and the gFTP developer did not respond to my
>query.  I would imagaine this is as simple as setting a X resource but I
>don't know what it is.  Any help or advice would be greatly
>appreciated.  Thank you.

GTK is a real bitch in that it doesn't fit at all into the traditional
X environment, no X resources, no X-standard command line arguments,
no nothing, a real pain in the arse.
You have to edit $HOME/.gtkrc, here's what I managed to do, actually
extracted from a .gtkrc created by KDE on some box... I've been
looking for proper gtk _user_ documentation, to no avail.

style "user-font"
{
  font="-b&h-lucida-medium-r-normal-*-*-120-*-*-p-*-iso8859-1"
}
widget_class "*" style "user-font"

put this in .gtkrc and it'll give all widgets the above font.
I'd think that you could also specify other widget classes and
give them other fonts but I haven't (easily) found a widget
class hierarchy for the gtk widgets yet.  Maybe there is one,
I didn't stumble over it yet...  Oh, how easy are such things
with X resources and app-default files like it has been done
on X for 15 years...

--mkb