From owner-freebsd-questions Mon Oct 21 14:39:11 2002 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 82C4337B401 for ; Mon, 21 Oct 2002 14:39:09 -0700 (PDT) Received: from hotmail.com (f265.law8.hotmail.com [216.33.240.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DEAC43E91 for ; Mon, 21 Oct 2002 14:39:08 -0700 (PDT) (envelope-from jmd526@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 21 Oct 2002 14:39:08 -0700 Received: from 66.89.179.250 by lw8fd.law8.hotmail.msn.com with HTTP; Mon, 21 Oct 2002 21:39:07 GMT X-Originating-IP: [66.89.179.250] Reply-To: jmd17@columbia.edu From: "John Daniels" To: freebsd-questions@freebsd.org Subject: XFree86 fonts Date: Mon, 21 Oct 2002 17:39:07 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 21 Oct 2002 21:39:08.0000 (UTC) FILETIME=[490E2600:01C2794A] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Can I install both Type1 and TrueType fonts? Can I install multiple packages for each (Type1 and TrueType)? I have XFree86 4.2.1 from new install of FreeBSD 4.7-RELEASE. When describing installing TrueType fonts, the handbook is confusing, it says: XFree86 4.X has built in support for rendering TrueType fonts. There are two different modules that can enable this functionality. The freetype module is used in this example because it is more consistent with the other font rendering back-ends. To enable the freetype module just add the following line to the "Module" section of the /etc/X11/XF86Config file. Load "freetype" *** is that all for XFree86 4.x? The handbook then goes on to add: For XFree86 3.3.X, a separate TrueType font server is needed. Xfstt is commonly used for this purpose. To install Xfstt, simply install the port x11-servers/Xfstt. *** well, that doesn't apply to me, but the handbood goes on! and *** therein lies my question: do these folowing paragraphs (which I *** have included below) apply to 3.3.x or to BOTH 3.3.x *and* 4.x? Now make a directory for the TrueType fonts (for example, /usr/X11R6/lib/X11/fonts/TrueType) and copy all of the TrueType fonts into this directory. Keep in mind that TrueType fonts cannot be directly taken from a Macintosh; they must be in Unix/DOS/Windows format for use by XFree86. Once the files have been copied into this directory, use ttmkfdir to create a fonts.dir file, so that the X font renderer knows that these new files have been installed. ttmkfdir is available from the FreeBSD Ports Collection as x11-fonts/ttmkfdir. # cd /usr/X11R6/lib/X11/fonts/TrueType # ttmkfdir > fonts.dir Now add the TrueType directory to the font path. This is just the same as described above for Type1 fonts, that is, use % xset fp+ /usr/X11R6/lib/X11/fonts/TrueType % xset fp rehash or add a FontPath line to the XF86Config file. Thanks, John (c) Copyright 2002 John Daniels. All rights reserved. _________________________________________________________________ Get faster connections -- switch to MSN Internet Access! http://resourcecenter.msn.com/access/plans/default.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message