Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TrueType CE Encoding

20 views
Skip to first unread message

Gerhard Trummer

unread,
Apr 27, 2012, 3:05:59 PM4/27/12
to
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.

Helge Blischke

unread,
Apr 27, 2012, 3:43:40 PM4/27/12
to
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

Gerhard Trummer

unread,
Apr 28, 2012, 12:40:39 AM4/28/12
to
> 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.

I found the solution in the bluebook: Program 18 / Making Small Changes
to Encoding Vectors


G.

Andreas Prilop

unread,
Apr 28, 2012, 11:26:26 AM4/28/12
to
On Fri, 27 Apr 2012, Gerhard Trummer wrote:

> Content-Type: text/plain; charset=ISO-8859-15
>
> I'm trying to change the encoding vector to CE for Arial-Black.

Welcome to the 21st century!
Welcome to Unicode!

--
In memoriam Alan J. Flavell
http://www.alanflavell.org.uk/charset/

Gerhard Trummer

unread,
May 1, 2012, 1:30:44 PM5/1/12
to
> I found the solution in the bluebook: Program 18 / Making Small Changes
> to Encoding Vectors

Even shorter and easier in my case is to use glyphshow. No need to
change the encoding vector.

0 new messages