home *** CD-ROM | disk | FTP | other *** search
- Jasc PostScript Interpreter resource access directory
-
- This directory defines the mappings from the postscript operators
- 'findresource', 'resourcestatus', 'findfont' and 'resourceforall'
- to actual external resources.
-
- For a complete understanding of PostScript resources and resource
- management, read section 3.9 of the PostScript Language Reference
- Manual (The Red Book) ISBN: 0-201-37922-8.
-
- The file 'resource.map' is the primary mapping file. Except
- for resource categories 'Font' and 'FontSet', each line of the
- file equates to an external resource instance (lines that begin
- with '%' are comments). The first column of each line is the resource
- category. Depending on the category, optional columns exist
- to define an instance of that category. Categories 'Font' and
- 'FontSet' have one additional column, the name of another file
- which defines instances of those categories.
-
- --------------------------------------------------------------------
- Adding Fonts:
- --------------
-
- Currently fonts can be added several ways. Individual font directories are
- register in the resource.map file using the 'Folder' keyword:
- Folder <Category> <directory>
-
- For example the fonts folder is registered by the following line:
- Folder /Font fonts
-
- Font directories can also be registered by using the builtin postscript
- operator '_addfontpath'. For example, the system font directory can be
- register to the interpreter using the following postscript code:
- '_tmpstring _sysfontpath {_addfontpath} if' (This is currently done
- in the 'prolog.ps' file to make the system fonts available to
- postscript applications)
-
- Fontsets (category FontSet)
- ----------------------------
-
- Font sets are files containing one or more fonts in 'cff' or type 2
- format (see Adobe documents 5176.CFF.pdf and 5177.Type2.pdf
- for additional information on this font type). Instances of
- this category are read and all fonts in a set become individually
- loadable font instances. For example, say I have a font set containing
- 14 fonts in a file called 'myfontset.cff' . To make these fonts available
- to the postscript interpreter, add a line with two columns to the file 'fontset.map'.
- The first column of that line is the filename "fontset.cff" and
- the second line is the name of the fontset, for example "MyFonts"
- such that the postscript fragment: '/MyFonts /FontSet findresource'
- will cause that file to be loaded and all fonts would become instances
- of the Font category.
-
- --------------------------------------------------------------------
- Instances of Generic resources, including categories of type
- 'Category', 'CMap', 'CIDFont', 'ProcSet', 'Encoding', 'Form',
- 'Pattern', 'ColorSpace', 'Halftone', 'ColorRendering' are
- defined the following way:
-
- Following the category name (column 1) are 2 or 3 more columns.
- The second column is the resource instance name. The third
- column is the name of the file to execute to instantiate the resource
- and finally, an optional fourth column exists which is a string
- of postscript executed before the file is executed. Note that
- an implicit 'true setglobal' is executed before the file is executed.
- If you wish a resource to be instantiated in local vm, place an
- explicit 'false setglobal' at the head of your implementation
- file.
-
- For example, I have the following line in the resource.map file:
- Halftone Default defht.ps
-
- Postscript then executes the following code fragment:
- '/Default /Halftone findresource'
-
- The interpreter finds the line in 'resource.map' whose category
- (column 1) is 'Halftone' and name (column 2) is 'Default' and
- executes the file 'defht.ps' (column 3) to produce the halftone
- instance dictionary.
-
- resource.map -> Main resource mapping file
- catimpl.ps -> Category resource implementation file
- crd.ps -> Default Color Rendering Dictionary
- getenc.ps -> Procedure to get internal encoding and define as resource
- prolog.ps -> Standard distribution prolog file
- unisym.dat -> Binary symbol table to map postscript glyph
- names to unicode values
-