Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2010 05:09:30 -1000
From:      parv@pair.com
To:        Lars Eighner <luvbeastie@larseighner.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Make gtk widgets use a larger font
Message-ID:  <20101210150930.GA1985@holstein.holy.cow>
In-Reply-To: <20101209114208.C1131@qroenaqrq.6qbyyneqvnyhc.pbz>
References:  <20101209114208.C1131@qroenaqrq.6qbyyneqvnyhc.pbz>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <20101209114208.C1131@qroenaqrq.6qbyyneqvnyhc.pbz>, wrote
Lars Eighner thusly...
>
> How do I make gtk widgets use larger fonts? I found an old linux
> FAQ on this, but it appears to have nothing to do with the way
> configuration works on FreeBSD.

In ~/.gtkrc-2.0, I have ...

  style "default"
  {
    #font="-adobe-new century schoolbook-medium-r-normal--14-*-*-*-*-*-iso8859-1"
    #font_name="New Century Schoolbook 12"
    font_name="Bitstream Vera Sans 10"
  }

  style "user-tooltip"
  {
    font_name="Screen 15"
  }

  #  'gtk-font-name' property is needed for damned Firefox 1.5 as
  #  'font_name' property alone didn't work, but does for Gimp 2.2.
  #  Anti-aliased fonts are used though i would love to use
  #  non-anti-aliased font in order to get New Century Schoolbook 14
  #  font.
  #gtk-font-name = "Bitstream Vera Serif 12"
  #gtk-font-name = "New Century Schoolbook 12"
  gtk-font-name = "Bitstream Vera Sans 10"

  widget "*"              style "default"
  widget "*tooltip*"      style "user-tooltip"


... and in ~/.gtkrc ...

  style "default"
  {
    font="-adobe-new century schoolbook-medium-r-normal--18-*-*-*-p-*-iso8859-1"
  }

  style "user-tooltip"
  {
    font="-sgi-screen-bold-r-normal--16-*-*-*-*-0-iso8859-1"
  }

  widget "*"          style "default"
  widget "*tooltip*"  style "user-tooltip"



  - parv

-- 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101210150930.GA1985>