From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Penton Newsgroups: gmane.emacs.help Subject: Re: ps-print question Date: Fri, 31 Dec 2010 21:07:04 -0500 Message-ID: References: <9E47A63C-3337-4CF9-AC0E-C91082557375@arqux.com> <97BBE33A-D586-4CFA-BE9C-96C6ABBD22A3@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1293847661 8580 80.91.229.12 (1 Jan 2011 02:07:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 1 Jan 2011 02:07:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 01 03:07:37 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PYqsa-0005Ur-E3 for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Jan 2011 03:07:36 +0100 Original-Received: from localhost ([127.0.0.1]:53081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PYqsZ-0006D2-Pr for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Dec 2010 21:07:35 -0500 Original-Received: from [140.186.70.92] (port=55828 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PYqs7-0006Cn-I1 for help-gnu-emacs@gnu.org; Fri, 31 Dec 2010 21:07:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PYqs6-0007ij-3Y for help-gnu-emacs@gnu.org; Fri, 31 Dec 2010 21:07:07 -0500 Original-Received: from hp37.hostpapa.com ([69.90.162.35]:50884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PYqs5-0007id-T4 for help-gnu-emacs@gnu.org; Fri, 31 Dec 2010 21:07:06 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=arqux.com; h=Received:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer:X-ACL-Warn; b=uveuex4lA62gSXA2KEk9oQMOPqfvHpzL0zY+g/n8hI8lyqqSb9wKQBLCKF/sj8KXike0leI78QW+AZSjhel4hnvITwWcicb24vudQtxVPmxvdz4K7WLRI4igpeHNjxZV; Original-Received: from d226-44-36.home.cgocable.net ([24.226.44.36] helo=[10.0.1.5]) by hp37.hostpapa.com with esmtp (Exim 4.69) (envelope-from ) id 1PYqs3-0005GZ-Dl for help-gnu-emacs@gnu.org; Fri, 31 Dec 2010 21:07:03 -0500 In-Reply-To: X-Mailer: Apple Mail (2.1082) X-ACL-Warn: { X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hp37.hostpapa.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - arqux.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78002 Archived-At: Ok, I took Pete Dyballa's advice and set up both ghostscript and = aquamacs to add some fonts for ps-print in aquamacs. It is not working = correctly yet, although I have made considerable progress. I did the following as a result of my research: I added the Bitstream Vera fonts to my system fonts, and also to the = ghostscript Fontmap.GS. This made the fonts available in ghostscript. I = was able to run gs interactively, do a findfont on all of the added = fonts, and output some text using those fonts. So the additions to = Fontmap.GS worked. Here are the relevant lines in Fontmap.GS: (BitstreamVeraSans-Bold) (/Library/Fonts/VeraBd.ttf) ; (BitstreamVeraSans-BoldOblique) (/Library/Fonts/VeraBI.ttf) ; (BitstreamVeraSans-Oblique) (/Library/Fonts/VeraIt.ttf) ; (BitstreamVeraSans-Roman) (/Library/Fonts/Vera.ttf) ; (BitstreamVeraSansMono-Bold) (/Library/Fonts/VeraMoBd.ttf) ; (BitstreamVeraSansMono-BoldOb) (/Library/Fonts/VeraMoBI.ttf) ; (BitstreamVeraSansMono-Oblique) (/Library/Fonts/VeraMoIt.ttf) ; (BitstreamVeraSansMono-Roman) (/Library/Fonts/VeraMono.ttf) ; (BitstreamVeraSerif-Bold) = (/Library/Fonts/VeraSeBd.ttf) ; I then I added the following to my aquamacs preference file (equivalent = to .emacs) to make the fonts known to ps-print-buffer: (setq ps-font-info-database (append '((BitstreamVera ; the family key (fonts (normal . "BitstreamVeraSansMono-Roman") (bold . = "BitstreamVeraSansMono-Bold") (italic . = "BitstreamVeraSansMono-Oblique") (bold-italic . = "BitstreamVeraSansMono-BoldOb")) (size . 10.0) (line-height . 23.84) (space-width . 6.31739) (avg-char-width . 6.31739))) ps-font-info-database)) In aquamacs I then set the Ps Font Family customization to = "BitstreamVera" to match the above addition to ps-font-info-database. Then, when I did C-u M-x ps-print-buffer, aquamacs created a postscript = file with no complaints. I looked at this file, and it did have a bunch = of stuff that loads the Bitstream Vera fonts, apparently as desired. However, the postscript file generates some font-related errors when = passed to ghostscript. I shall not post the offending postscript file, not the ghostscript = errors just yet. It seems more likely to me that there are additional = emacs customizations that I may have to set to get this to work = correctly. If I should post these or other info please let me know. Can anyone point me in the right direction? TIA, - Dave -