[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [locale] Re: a postscript question (fwd)

On Sat, Feb 03, 2001 at 23:27:39 +0400, Vlad Harchev wrote:

> ---------- Forwarded message ----------
> Date: Sat, 3 Feb 2001 23:18:31 +0400 (SAMT)
> From: Vlad Harchev <hvv@hippo.ru>
> Cc: abiword-dev@abisource.com
> To: Tomas Frydrych <tomas@frydrych.uklinux.net>
> Subject: Re: a postscript question
> On Sat, 3 Feb 2001, Tomas Frydrych wrote:
> > Does anyone happen to know how to output a character that is > 
> > 255 into a PS file?
>  I've heard that there are 2 options: either call the character by
> it's Adobe name (e.g. 'asciitilde' or '/asciitilde') or change
> encoding vector (by emitting PS command) and emit a character whose
> code is the index of that glyph in new encoding vector.
>  As for 1st way - I was unable to use it for some unknown to me
> reason (I don't know PS at all though read intro to PS, so that's
> unsurprising) - GS says symbol undefined (I tried to insert the
> following in the PS file produced by AW:
> 	/r show
> 	r show
>  - and got message that 'r' is undefined in both cases). So
> additional PS code is needed to be able to call glyphs by their
> names.

Show only works on strings.  To draw a glyph by name use glyphshow
operator.  E.g.

    /r glyphshow

>  As for 2nd variant - I didn't try it.

With this approach one have to track the current encoding of the font,
which might prove unwieldy.

Another solution is to use CID keyed fonts (though not all Level 2
printers support CID).  See Adobe tech notes at


One can construct a composite font from "plain" Type1 fonts and use
CID keys to address glyphs in it.  There's an example in one of
technotes, but I don't remember which one and don't have them handy to
look up.

SY, Uwe
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen