From owner-freebsd-questions@FreeBSD.ORG Mon Jul 21 13:13:18 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 42EFD37B401 for ; Mon, 21 Jul 2003 13:13:18 -0700 (PDT) Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id C395243F85 for ; Mon, 21 Jul 2003 13:13:16 -0700 (PDT) (envelope-from phil@sal-n-phil.net) Received: from pc2-cmbg3-5-cust204.cmbg.cable.ntl.com ([81.96.65.204]) by mta03-svc.ntlworld.comESMTP <20030721201304.IQIQ2652.mta03-svc.ntlworld.com@pc2-cmbg3-5-cust204.cmbg.cable.ntl.com>; Mon, 21 Jul 2003 21:13:04 +0100 From: Phil Payne To: matthew@starbreaker.net, questions@freebsd.org Date: Mon, 21 Jul 2003 21:13:01 +0100 User-Agent: KMail/1.5.2 References: <200307191552.04153.phil@sal-n-phil.net> <200307191427.51962.matthew@starbreaker.net> In-Reply-To: <200307191427.51962.matthew@starbreaker.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307212113.01739.phil@sal-n-phil.net> Subject: Re: Changing gtk application fonts outside of gnome (Answer) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 20:13:18 -0000 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.