From owner-freebsd-questions@FreeBSD.ORG Mon Nov 6 18:24:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6A7D516A417 for ; Mon, 6 Nov 2006 18:24:05 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7137E43DAB for ; Mon, 6 Nov 2006 18:23:39 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id kA6INGfP018916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 6 Nov 2006 20:23:20 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id kA6IN7Gj006077; Mon, 6 Nov 2006 20:23:07 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id kA6IN33I006076; Mon, 6 Nov 2006 20:23:03 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 6 Nov 2006 20:23:03 +0200 From: Giorgos Keramidas To: Gary Kline Message-ID: <20061106182303.GA5850@kobe.laptop> References: <20061106170746.GA24707@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061106170746.GA24707@thought.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.527, required 5, AWL -0.13, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: REPOST: Howto use a *local* groff font? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2006 18:24:05 -0000 On 2006-11-06 09:07, Gary Kline wrote: > Guys, > > This roff script is in a directory with ye-olden-English font, > BlackChancery. Last Sept, I ran a simple groff script against > this: > > \f[HR] > This is a test line using Helvetica Roman > .br > \f[BlackChancery] > .br > This is another line of text in BlackChancery. > .br > > It should output the first line in Helv; the second in BlackChancery. > Now, whatever I do, the entire postscript file is in Helvetica. > gross prints the stderr message: "Can't find 'BlackChancery'. Is > there a way of fixing this locally? If not, what exactly do I > need to move to the /usr/share/groff_font/devps directory? > > Anybody? I have successfully used AvantGarde-Demi from the enscript font collection in groff with the following procedure: [1] Create a new project directory in `~/tmp/gf': % mkdir ~/tmp/gf [2] Copy the agd.afm file in `~/tmp/gf/afm/agd.afm' % cd ~/tmp/gf % mkdir afm/ % cp /usr/local/share/enscript/afm/agd.afm afm/ % chmod 0644 afm/* [3] Create a devps/ subdirectory for the conversion of the AFM font to groff format. % mkdir ~/tmp/gf/devps [4] Copied the file `textmap' from the groff source distribution, to `~/tmp/gf/devps/textmap': % cp /usr/src/contrib/groff/fontdevps/generate/textmap \ ~/tmp/gf/devps/textmap [5] Converted the AvantGarde-Demi font from AFM to groff's font format, with afmtodit(1): % afmtodit afm/agd.afm devps/textmap devps/AvantGarde-Demi [6] Started groff with the parameter -F with set to the parent of the devps directory (in my case `~/tmp/gf'): % groff -F~/tmp/gf gary.groff The output correctly includes a `downloaded' version of AvantGarde-Demi, and displays correctly. the `gary.groff' input file I used contained: \f[HR] This is a test line using Helvetica Roman .br \f[AvantGarde-Demi] .br This is another line of text in BlackChancery. .br Hopefully, by following a similar process, you can repeat the same with your own fonts :) Regards, Giorgos