Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #667
| From | Helge Blischke <h.blischke@acm.org> |
|---|---|
| Newsgroups | comp.lang.postscript |
| Subject | Re: TrueType CE Encoding |
| Followup-To | comp.lang.postscript |
| Date | 2012-04-27 21:43 +0200 |
| Message-ID | <a00b7eF26lU1@mid.individual.net> (permalink) |
| References | <jneqne$g8c$1@news.albasani.net> |
Followups directed to: comp.lang.postscript
Gerhard Trummer wrote:
> Hi,
>
> I'm trying to change the encoding vector to CE for Arial-Black.
> According to the PLRM Ex. 5.8:
>
> %!PS-Adobe-3.0
>
> /Arial-Black findfont
> dup length dict begin
> {1 index /FID ne
> {def}
> {pop pop} ifelse} forall
> /Encoding CE def
> currentdict
> end
> /ArialBlackCE exch definefont pop
>
> /ArialBlackCE findfont
> 15 scalefont setfont
> 30 800 moveto
> (\310\311\312\313\314\315\316\317) show
>
> showpage
>
> Unfortunately there is no CE encoding:
>
> gs -r72 -sPAPERSIZE=a4
> GPL Ghostscript 9.04 (2011-08-05)
> Copyright (C) 2011 Artifex Software, Inc. All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> GS>(/tmp/ps-run-15301X5g) run
> Can't find (or can't open) font file
> /usr/share/ghostscript/9.04/Resource/Font/Arial-Black.
> Can't find (or can't open) font file Arial-Black.
> Querying operating system for font files...
> Loading Arial-Black font from
> /usr/share/fonts/truetype/msttcorefonts/ariblk.ttf... 3540104 2107745
> 5487080 3235205 1 done.
> Error: /undefined in CE
> Operand stack:
> Encoding
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval--
> --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
> %loop_continue --nostringval-- --nostringval-- false 1
> %stopped_push .runexec2 --nostringval-- --nostringval--
> --nostringval-- 2 %stopped_push --nostringval-- 1910 1 3
> %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop
> 1787 1 3 %oparray_pop --nostringval-- %errorexec_pop
> .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
> %stopped_push --nostringval--
> Dictionary stack:
> --dict:1159/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
> --dict:14/15(L)--
> Current allocation mode is local
> Current file position is 137
> GS<1>
>
> What am I doing wrong and what is the right solution?
>
> Thanks in advance,
> G.
I guess you'll need to consult the PLRM, 3rd ed., appendix E, Character Sets
and Encoding Vectors and set up the CE encoding array in PostScript syntax
by yourself.
Helge
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar
TrueType CE Encoding Gerhard Trummer <gtrum@gmail.com> - 2012-04-27 21:05 +0200
Re: TrueType CE Encoding Helge Blischke <h.blischke@acm.org> - 2012-04-27 21:43 +0200
Re: TrueType CE Encoding Gerhard Trummer <gtrum@gmail.com> - 2012-04-28 06:40 +0200
Re: TrueType CE Encoding Gerhard Trummer <gtrum@gmail.com> - 2012-05-01 19:30 +0200
Re: TrueType CE Encoding Andreas Prilop <prilop4321@trashmail.net> - 2012-04-28 17:26 +0200
csiph-web