Re: How to set the font in gtk2
- From: Owen Taylor <otaylor redhat com>
- To: Sven Neumann <sven gimp org>
- Cc: Xuedong Zhang <zxd bu edu>, gtk-list gnome org
- Subject: Re: How to set the font in gtk2
- Date: Wed, 10 Apr 2002 10:29:12 -0400 (EDT)
Sven Neumann <sven gimp org> writes:
> Hi,
>
> Xuedong Zhang <zxd bu edu> writes:
>
> > But I cann't find a way to change the font in gtk2 program?
> >
> > I put the following lines in my ~/.gtkrc-2.0 but it just did nothing
> > for my default fonts? ANy one can give me a suggestion that how
> > can I can change the default font?
> >
> >
> > style "user-font"
> > {
> > font="-adobe-times-medium-r-normal-*-24-*-*-*-p-*-iso8859-1"
> > }
> > widget_class "*" style "user-font"
>
> try this instead:
>
> style "user-font"
> {
> font_name="times 24"
> }
> widget_class "*" style "user-font"
Or even simpler:
gtk-font-name = "Times 24"
[ This sets the GtkSetting for the default font rather than setting the font
to something non-default for all widgets ]
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]