Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #329

Re: ps2pdf14 gs otf font embedding under OSX?

From ken <ken@spamcop.net>
Newsgroups comp.lang.postscript
Subject Re: ps2pdf14 gs otf font embedding under OSX?
Date 2011-09-14 07:54 +0100
Message-ID <MPG.28da600630c18e3298985f@usenet.plus.net> (permalink)
References <2a3adc1d-76dd-4e2a-bb48-6309e2b78d43@15g2000prp.googlegroups.com>

Show all headers | View raw


In article <2a3adc1d-76dd-4e2a-bb48-6309e2b78d43@
15g2000prp.googlegroups.com>, ivowel@gmail.com says...

> now I need to embed the fonts in the pdf file.  presumably, I would do
> this with
> 
> ps2pdf -DPDFSETTINGS=/prepress infile.pdf outfile.pdf

You don't need the PDFSETTINGS, unless you specifically want that set of 
configuration options, pdfwrite embeds fonts by default.
 

> alas, somehow I need to convince gs to use my otf font files.  first,
> I created a Fontmap file in the local directory, but this seems to be
> ignored (garbage in it does not trigger an error).   same result for /
> usr/local/share/ghostscript/9.02/Fontmap.
> 
> how do I convince ps2pdf that BeraSans-Roman is fvsr8a.otf, and to
> embed the font in the pdf file?

Recent versions of Ghostscript have the resources built into a ROM file 
system, in order to add additional resources you must specify their 
location. You can do this in two ways; 

1) Set -sGenericResourceDirectory=<path to resources on disk> on the 
command line, and update the resources on disk appropriately.

2) Set -I<path> which will add <path> to the list of search locations.

There is more information in the Ghostscript documentation, for example:

gs/doc/Use.htm#Finding_files

To see if GS is loading your font simply start up GS which will give you 
a window with a "GS>" prompt. Type "/BeraSans-Roman findfont" and press 
return. If the prompt changes to a "1>" then it worked. If instead you 
get a bunch of warnigns about font not found and substituting with 
Helvetica, then it didn't.


		Ken

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ps2pdf14 gs otf font embedding under OSX? iaw4 <ivowel@gmail.com> - 2011-09-13 18:13 -0700
  Re: ps2pdf14 gs otf font embedding under OSX? Helge Blischke <h.blischke@acm.org> - 2011-09-14 08:19 +0200
  Re: ps2pdf14 gs otf font embedding under OSX? ken <ken@spamcop.net> - 2011-09-14 07:54 +0100
    Re: ps2pdf14 gs otf font embedding under OSX? iaw4 <ivowel@gmail.com> - 2011-09-14 09:09 -0700
  Re: ps2pdf14 gs otf font embedding under OSX? PGAGA <grifwood@glinx.com> - 2011-09-14 12:41 -0700

csiph-web