Re: Changing gtk application fonts outside of gnome (Answer)

2003-07-21 Thread Phil Payne
Hi,

Caveat, I'm no GTK/Gnome expert so if someone wants to pick holes, feel 
free...

Did some further digging around on the web and I've concluded that the way to 
ensure your GTK apps appear as you want (font wise) outside of gnome is:

If you want anti-aliasing ensure the following environment variable is set:
 GDK_USE_XFT=1
Thanks to Matthew for that.

To change the default font for GTK1.* apps then add the following lines to the 
file ~/.gtkrc (or create it if it doesn't exist):

style default {
font = -*-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-15
}

Note... using full font definition.

For GTK2 based apps then things have changed. Need to add the following line 
to the file ~/.gtkrc-2.0, outside of any style definition if you want it to 
be global. (I believe that within a style definition you use the font_name = 
 format):

gtk-font-name = Helvetica 12

Note the switch to using shorthand font names.

Hope that helps anyone else stuck as I was.

Cheers,
Phil.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Changing gtk application fonts outside of gnome

2003-07-20 Thread Phil Payne
On Saturday 19 July 2003 7:27 pm, Matthew Graybosch wrote:
 On Saturday 19 July 2003 10:52 am, Phil Payne wrote:
  Hi,
 
  I'm running FreeBSD 4-stable, XFree86 4.30  windowmaker 0.80.2.
  Default resolution and bitdepth is 1280x1024x24.
 
  Whenever I start GTK based apps (e.g. evolution, pan) I'm finding
  the application font size is too small to be readable. I've had a
  search through the mail archives and googled but I can't find
  anything explaining...

 Hi, Phil. Are you using the GTK2 versions of Evolution and Pan? 

Both gtk1 and gtk2 are installed.

If I do a pkg_info -Rr on the relevant packages they have a dependency to gtk2

 pkg_info -Rr evolution-1.4.0_1 | grep gtk
Dependency: gtk-2.2.2
Dependency: gtkhtml3-3.0.5
 pkg_info -Rr pan2-0.14.0 | grep gtk
Dependency: gtk-2.2.2
Dependency: gtkspell2-2.0.4

 Are
 you also reverting back to the default (ugly) GTK2 theme? 

OK... my gtk/gnome familiarity is limited. How do I tell?... and how do I 
change this?

 If so, Try
 putting the following lines in either ~/.xinitrc or ~/.xsession (as
 appropriate):

 *
 #!/bin/sh

 # sample ~/.xinitrc
 export GDK_USE_XFT=1
 gnome-settings-daemon 

I gave this a go and it didn't appear to change anything. What are these 
commands attempting?

 exec /usr/X11R6/bin/wmaker
 *

 Then restart X and see what happens. I had this problem myself, and
 had other people ask on the Libranet users' list.

Yes, there seems to be a lot of discussion about how to control GTK fonts 
outside of gnome without a coherent answer. Any further help is much 
appreciated.

Sorry for being such a newb about GTK sutff. Have been working with FreeBSD, 
KDE and related apps for sometime with no problems but thought I'd give 
windowmaker and other apps a go... expand my knowledge etc... but having 
trouble.

Cheers,
Phil.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Changing gtk application fonts outside of gnome

2003-07-19 Thread Matthew Graybosch
On Saturday 19 July 2003 10:52 am, Phil Payne wrote:
 Hi,

 I'm running FreeBSD 4-stable, XFree86 4.30  windowmaker 0.80.2.
 Default resolution and bitdepth is 1280x1024x24.

 Whenever I start GTK based apps (e.g. evolution, pan) I'm finding
 the application font size is too small to be readable. I've had a
 search through the mail archives and googled but I can't find
 anything explaining...

Hi, Phil. Are you using the GTK2 versions of Evolution and Pan? Are 
you also reverting back to the default (ugly) GTK2 theme? If so, Try 
putting the following lines in either ~/.xinitrc or ~/.xsession (as 
appropriate):

*
#!/bin/sh

# sample ~/.xinitrc
export GDK_USE_XFT=1
gnome-settings-daemon 

...

exec /usr/X11R6/bin/wmaker
*

Then restart X and see what happens. I had this problem myself, and 
had other people ask on the Libranet users' list.

-- 
Matthew Graybosch
http://www.starbreaker.net
I am become root, shatterer of kernels.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Changing gtk application fonts outside of gnome

2003-07-19 Thread Holger Bauer
On Sat, 19 Jul 2003 15:52:04 +0100
Phil Payne [EMAIL PROTECTED] wrote:

 Hi,
 
 I'm running FreeBSD 4-stable, XFree86 4.30  windowmaker 0.80.2.
 Default resolution and bitdepth is 1280x1024x24.
 
 Whenever I start GTK based apps (e.g. evolution, pan) I'm finding the 
 application font size is too small to be readable. I've had a search
 through the mail archives and googled but I can't find anything
 explaining...
 
 ... how to change the default font for GTK apps outside of a gnome 
 environment.
 
 Does anyone know if/how this can be done easily?
 
 I mean... I could lower the resolution but that feels a little
 defeatist. 
 
 Please include me personally on the reply as I won't be receiving the
 list email for a while.
 
 Thanks,
 Phil.

Hi,

put some lines like these in your $HOME/.gtkrc for gtk1
style user-font
{
  font=-bitstream-bitstream vera
serif-medium-r-normal-*-*-100-*-*-p-*-iso8859-15
}
and in $HOME/.gtkrc-2.0 for gtk2
style user-font
{
  font_name=Bitstream Charter 14
}
I also recommend you have a look at gtk-theme-switch in ports, which
lets you adjust gtk-themes/fonts easily. The gtk2-version wasn't in
ports last time I checked, but you can easily compile it yourself.

Holger




___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]