[Top] [Prev] [Next] [Contents] [Index]

Using DPS Support Files

The following DPS support files are included with NCDware and reside by default in /usr/lib/X11/ncd/dps:

The following sections describe these files in more detail.

The PostScript Resource File

This section describes the PostScript resource file, PSres.upr, which is essential for DPS operation, and the NCD utility for creating a new resource file or updating a resource file. When working with this file, keep the following in mind:

For more information about PostScript resource files, refer to Programming the Display PostScript System with X from Adobe Systems Incorporated.

Sections in the PostScript Resource File

The PostScript resource file contains the following sections:

Creating or Updating the PostScript Resource File

The makepsres utility allows you to make a new PostScript resource file or update an existing file. The following example shows how to use this utility to update the PSres.upr file so that DPS servers can access more fonts:

  1. Change to the directory to which you will be adding fonts.

    Note:
    NCD recommends that you use a directory under /usr/lib/X11/ncd. Otherwise, the DPS module may not be able to locate the PostScript resource file. If you must place the fonts in another location, make sure that each terminal can access the new fonts through its file service table.

  2. Add the desired fonts to the directory.

  3. While in the directory, invoke makepsres:


    > /usr/lib/X11/makepsres

    In response, makepsres creates a new PostScript resource file in the current directory. If the current directory contains an existing PostScript resource file, makepsres merges the contents of the existing file with the information from the new fonts and produces a new PSres.upr file.

  4. Add the DPSVM section to the resulting PSres.upr file if that section does not already exist.

    If you invoke makepsres in a directory that does not contain an existing PSres.upr file, you must include information identifying the location of the VM file. To do this, add DPSVM to the beginning of the PSres.upr file where it lists all sections of the file. For example:


    PS-Resources-1.0
    DPSVM
    FontAFM
    FontFamily
    FontOutline
    

    Add the DPSVM section to the file; for example:


    DPSVM
    local=VM_3_2_beta2.snf
    master=VM_3_2_beta2.snf
    

    When you finish modifying this file, it should resemble the following example:


    PS-Resources-1.0DPSVM
    ColorRendering
    ContextInit
    FontAFM
    FontFamily
    FontOutline
    FontPrebuilt
    .
    DPSVM
    local=VM_3_2_beta2.snf
    master=VM_3_2_beta2.snf
    .
    ColorRendering
    %DefaultCIE=CIE-dict19c
    ColorCIE=CIE-dict19c.dat
    .
    .
    .
    

    If necessary, modify the dps-resource-path parameter on all terminals using DPS so the DPS module can locate the resource files. For information on setting this parameter, see
    "Configuring the DPS Resource Path".

  5. Reboot the affected terminals so they can read the new PSres.upr file.

The Virtual Memory File

The virtual memory file, VM_3_2.SNF, provides information about the VM (Virtual Memory) space that Display PostScript needs for operation. The DPS extension uses two types of virtual memory:

The Color-Rendering File

The color-rendering file, CIE-dict19c.dat, contains a PostScript rendering dictionary that allows the DPS extension to provide device-independent color. This file is loaded for each DPS context. The information in the file allows all requests for color to be honored. The output generated by DPS depends on the output device:

The Context Initialization File

The context initialization file, InitProc.dat, executes arbitrary PostScript code when a context is created. You can use the file to set various user parameters or to initialize local virtual memory.



[Top] [Prev] [Next] [Contents] [Index]

Send comments, suggestions, or questions about this document to the NCD Technical Publications Department by Internet e-mail. Write to us at techpubs@ncd.com.
Copyright © 1997, NCD Inc. All rights reserved.