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


Groups > comp.lang.postscript > #1946

Re: Postscript output with a unicode font character from a non-built in font

From rodd@panix.com (Rod Dorman)
Newsgroups comp.lang.postscript
Subject Re: Postscript output with a unicode font character from a non-built in font
Date 2014-08-04 20:06 +0000
Organization Public Access Networks Corp.
Message-ID <lrop4g$9am$1@reader1.panix.com> (permalink)
References <53df8e33$0$2741$c3e8da3$66d3cc2f@news.astraweb.com> <MPG.2e49a5934cbfe069898c3@usenet.plus.net>

Show all headers | View raw


In article <MPG.2e49a5934cbfe069898c3@usenet.plus.net>,
ken  <ken@spamcop.net> wrote:
>In article <53df8e33$0$2741$c3e8da3$66d3cc2f@news.astraweb.com>, 
>idprog@trust.com says...
>> How should I go about printing this character from Postscript?
>
>First you need to embed the font. Assuming you are using the Windows 
>TrueType font you will need to convert the font to a type 42, and 
>include the type 42 font in the PostScript file.
>
>As part of this exercise you will need to re-encode the font so that the 
>character code you want to use in the PostScript to draw this glyph maps 
>to the relevant glyph program in the Type 42 font.
>
>The font's Encoding maps character codes to glyph names, the Charstrings 
>dictionary contains a number of key/value pairs, where the key is the 
>glyphg name and the value is the GID of the glyph you want to draw. So 
>you need to ensure that the mapping "character code->glyph name ->GID" 
>results in whatever the GID is for the glyph you want to draw, in the 
>font in question (Note, *none* of this is anythign to do with Unicode, 
>though the TTF may contain a Unicode CMAP table, which will at least 
>allow you to discover what the GID for the glyph relating to the given 
>Unicode code point is).
>
>Then you simply select and scale the font, then 'show' the character 
>code which maps to that glyph, just as you would for any other glyph.

Note that if the glyph you want isn't mapped in the Encoding array you
can avoid needing to reencode by using the glyphshow command.

-- 
					-- Rod --
rodd(at)polylogics(dot)com

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


Thread

Postscript output with a unicode font character from a non-built in font idol programmer <idprog@trust.com> - 2014-08-04 14:44 +0100
  Re: Postscript output with a unicode font character from a non-built in font ken <ken@spamcop.net> - 2014-08-04 15:14 +0100
    Re: Postscript output with a unicode font character from a non-built in font rodd@panix.com (Rod Dorman) - 2014-08-04 20:06 +0000
      Re: Postscript output with a unicode font character from a non-built in font ken <ken@spamcop.net> - 2014-08-05 13:28 +0100
        Re: Postscript output with a unicode font character from a non-built in font idol programmer <idprog@trust.com> - 2014-08-06 11:30 +0100

csiph-web