Article View: adobe.postscript.programming
Article #77Re: stroke and fill
From: David_Cristian
Date: Tue, 29 Jul 2008 14:39
Date: Tue, 29 Jul 2008 14:39
43 lines
1949 bytes
1949 bytes
I'm here for 2 weeks and I can't see why ... maybe the application is platform independent ... . Anyway I am stuck in one point ... How can I create the Encoding array?... I mean I have the font bits ... and now I have to write in the file the encoding array ... but I can't see clear what do I have to do. I saw an example that looks like this: [code] /Encoding 256 array dup 0 /c00 put dup 1 /c01 put dup 2 /c02 put ... %and then the CharString: /CharStrings 257 dict dup begin /.notdef 0 def /c00 0 def /c01 1 def /c02 2 def [/code] the /c00,/c01 have only the role to make the mapping between the Encoding array and CharStrings, right? And also, for a known font type I saw an example like this: [code] /Foo /Courier-BoldOblique 1 1 [ /.notdef/.notdef/ ... /space/exclam/quotedbl/numbersign ... [/code] Why would one do this, if it is a known font (btw I can't figure out now why is it using [ and ]). I know this are rather simple questions ... but things are starting to become really overwhelming over here ... Is it something I'm missing here?because I thought that in de Encode array i will map every character with the new value .Is this why in the example it first defined /cxx and then used it in the CharString . David.
Technical Details
Message-ID:
<59b5e90e.37@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news.svengo.de!transit5.hitnews.eu!news4us.nl!webcrossingReferences:
<59b5e90e.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,59978ad8602309c9 X-Google-Attributes: gid10c61a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: David_Cristian@adobeforums.com Newsgroups: adobe.postscript.programming Subject: Re: stroke and fill Message-ID: <59b5e90e.37@webcrossing.la2eafNXanI> Date: Tue, 29 Jul 2008 07:39:06 -0700 References: <59b5e90e.-1@webcrossing.la2eafNXanI> Lines: 50 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news.svengo.de!transit5.hitnews.eu!news4us.nl!webcrossing