From owner-freebsd-doc Tue Sep 4 9: 0:13 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 88B2F37B408 for ; Tue, 4 Sep 2001 09:00:07 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f84G07Y56208; Tue, 4 Sep 2001 09:00:07 -0700 (PDT) (envelope-from gnats) Received: from postfix1-2.free.fr (postfix1-2.free.fr [213.228.0.130]) by hub.freebsd.org (Postfix) with ESMTP id 4560037B40C for ; Tue, 4 Sep 2001 08:55:40 -0700 (PDT) Received: from bluerondo.a.la.turk (nas-cbv-2-28-223.dial.proxad.net [213.228.28.223]) by postfix1-2.free.fr (Postfix) with ESMTP id AEB1BAB1C4 for ; Tue, 4 Sep 2001 17:55:36 +0200 (CEST) Received: (qmail 6433 invoked by uid 1001); 4 Sep 2001 15:54:39 -0000 Message-Id: <20010904155439.6432.qmail@bluerondo.a.la.turk> Date: 4 Sep 2001 15:54:39 -0000 From: Rahul Siddharthan Reply-To: Rahul Siddharthan To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: docs/30316: Handbook section on antialiased fonts with gtk/gnome Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30316 >Category: docs >Synopsis: Handbook section on antialiased fonts with gtk/gnome >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Sep 04 09:00:05 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Rahul Siddharthan >Release: FreeBSD 4.4-PRERELEASE i386 >Organization: >Environment: System: FreeBSD bluerondo.a.la.turk 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #14: Mon Aug 27 08:39:23 CEST 2001 root@bluerondo.a.la.turk:/usr2/src/sys/compile/BLUERONDO i386 >Description: A small addition to the section on GNOME, on how to enable antialiased fonts there. >How-To-Repeat: >Fix: --- chapter.sgml Tue Sep 4 17:45:46 2001 +++ chapter.sgml Tue Sep 4 17:50:42 2001 @@ -755,9 +755,12 @@ can use anti-aliased fonts (see on KDE for - details); there are patches for gtk+ to do the same, + details); there are patches for gtk+ to do the same, so if compiled against such a patched gtk+, the GNOME environment - and Mozilla can also use anti-aliased fonts. + and Mozilla can also use anti-aliased fonts. In fact, there + is now a library called gdkxft (in the ports) which allows one + to use antialiased fonts without recompiling: see + for details. Anti-aliasing is still new to FreeBSD and XFree86; @@ -1109,6 +1112,45 @@ KDE2 details explains how to do this for kdm, the display manager of KDE. + + + Anti-aliased fonts with GNOME + + While anti-aliased fonts made their first appearance + on XFree86 desktops in the KDE environment and are supported + there in the standard installation, it is possible to use them + with gtk applications such as the GNOME environment too. The + most straightforward way is probably by using the recent library + libgdkxft, in the ports (x11/gdkxft). + After installing this port, read carefully the file + /usr/X11R6/share/doc/gdkxft/README. + + If you already have a working + XftConfig file, all you really need to do is + tell your gtk applications to look for their font-rendering + functions in libgdkxft.so before looking in the + standard place, libgdk.so. This is easily + accomplished by setting an environment variable to point to the + right place; with the Bourne shell + (/bin/sh) or similar shells, type + the command (to start the Gimp, say) +&prompt.user; LD_PRELOAD=/usr/X11R6/lib/libgdkxft.so gimp + and with csh and similar shells, type + +&prompt.user; setenv LD_PRELOAD /usr/X11R6/lib/libgdkxft.so +&prompt.user; gimp + + It is a nuisance to do this all the time, so you can +simply put the commands + +LD_PRELOAD=/usr/X11R6/lib/libgdkxft.so +export LD_PRELOAD + + into your .xinitrc, + .xsession or in the appropriate place(s) in + /usr/X11R6/lib/X11/xdm/Xsession, depending + on how you normally start X. However, this short-cut may cause + you problems if you want to run linux gtk binaries. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message