all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Penton <djp@arqux.com>
To: help-gnu-emacs@gnu.org
Subject: Re: ps-print question
Date: Fri, 31 Dec 2010 21:07:04 -0500	[thread overview]
Message-ID: <D16AEA8B-8D9E-4560-BB76-773A7B268FEA@arqux.com> (raw)
In-Reply-To: <D4809E5B-B904-44A1-B20C-3005EFB8A04B@arqux.com>


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 -




  parent reply	other threads:[~2011-01-01  2:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-31  7:22 ps-print question David Penton
2010-12-31  7:33 ` David Penton
2010-12-31  9:22 ` Peter Dyballa
2010-12-31 14:02   ` David Penton
2010-12-31 14:44     ` Peter Dyballa
2011-01-01  2:07     ` David Penton [this message]
2011-01-01 20:55       ` Peter Dyballa
2011-01-02  0:43         ` Peter Dyballa
2011-01-02 21:20           ` David Penton
2011-01-03  0:22             ` Peter Dyballa
2011-01-03  2:19               ` David Penton
2011-01-03 13:15                 ` Peter Dyballa
2011-01-03 14:25                   ` David Penton
2011-01-03 18:02                     ` Peter Dyballa
2011-01-03 23:43                     ` Peter Dyballa
2011-01-05  0:20                     ` Peter Dyballa
2011-01-07  3:56                       ` David Penton
2011-01-07 10:28                         ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D16AEA8B-8D9E-4560-BB76-773A7B268FEA@arqux.com \
    --to=djp@arqux.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.