.ps files distributed with Ghostscript

`.ps` files distributed with Ghostscript

## Table of contents

> - Generally used system files
> - More obscure system files
> - PDF-specific system files
> - Display PostScript-specific system files
> - Art and examples
> - Utilities
> - Development tools
> - Odds and ends

For other information, see the Ghostscript overview.

# Generally used system files

`gs_*_e.ps`
  These files define the Encodings known to Ghostscript. All of them except `gs_std_e.ps` and `gs_iso_e.ps` are loaded only if referred to.

`gs_btokn.ps`
  `gs_init.ps` reads this in if the `btoken` feature is included in the configuration. It provides support for binary tokens.

`gs_ccfnt.ps`
  `gs_init.ps` reads this in if the `ccfonts` feature is included in the configuration. It provides support for compiled fonts.

`gs_cff.ps`
  Load CFF (compressed) fonts.

`gs_cidfn.ps`
  `ProcSet` for implementing `CIDFont` and `CIDMap` resources.

`gs_cmap.ps`
  `ProcSet` for implementing `CMap` resources.

`gs_epsf.ps`
  Allow the interpreter to recognize DOS EPSF file headers, and skip to the PostScript section of the file.

`gs_fonts.ps`
  `gs_init.ps` reads this in. It initializes Ghostscript's font machinery and provides some utility procedures that work with fonts.

`gs_init.ps`
  Ghostscript reads this automatically when it starts up. It contains definitions of many standard procedures and initialization for a wide variety of things.

`gs_lev2.ps`
  `gs_init.ps` reads this in if the Ghostscript interpreter includes Level 2 PostScript functions. It contains definitions of procedures and miscellaneous initialization for the Level 2 functions.

`gs_ll3.ps`
  Initialize PostScript LanguageLevel 3 functions.

`gs_res.ps`
  `gs_init.ps` reads this in if the Level 2 resource machinery is included. Currently, this is the case for all Level 2 configurations.

`gs_setpd.ps`
  Implementation of the `setpagedevice` operator.

`gs_statd.ps`
  `gs_init.ps` reads this in. It creates a dummy `statusdict` and some other environmental odds and ends for the benefit of PostScript files that really want to be printed on a LaserWriter.

`gs_ttf.ps`
  Support code for direct use of TrueType fonts.

`gs_typ32.ps`
  Initialization file for Type 32 fonts.

`gs_typ42.ps`
  Support code for Type 42 fonts (TrueType font in a PostScript "wrapper").

`gs_type1.ps`
  `gs_init.ps` reads this in if the Ghostscript interpreter includes Type 1 font capability (which it normally does).

# More obscure system files

`font2c.ps`
  Convert a PostScript Type 0 or Type 1 font to C code that can be compiled and linked into Ghostscript; see the documentation on fonts for how to do this.

`gs_cmdl.ps`
  This file is not used yet. Eventually it will replace C code that parses the Ghostscript command line.

`gs_diskf.ps`
  This file implements the `-dDISKFONTS` feature (`diskfont.dev`). See the the usage documentation for a description of this feature.

`gs_kanji.ps`
  This file provides support for the Wadalab free Kanji font. It is not included automatically in any configuration.

`gs_pdfwr.ps`
  This file contains some patches for providing information to the `pdfwrite` driver. It is included only if the `pdfwrite` driver is included.

`gs_pfile.ps`
  This file provides runtime support for packed fonts. It is not included automatically in any configuration.

`stcolor.ps`
  Configure the (Epson) `stcolor` driver

# PDF-specific system files

`gs_l2img.ps`
  The `ProcSet` that emulates the PostScript Level 2 "`image`" operator on Level 1 systems.

`pdf_base.ps`
  Utilities for interpreting PDF objects and streams.

`pdf_draw.ps`
  The interpreter for drawing-related PDF operations.

`pdf_font.ps`
  Code for handling fonts in PDF files.

`pdf_main.ps`
  Document- and page-level control for interpreting PDF files.

`pdf_ops.ps`
  Definitions for most of the PDF operators.

`pdf_sec.ps`
  Stubs for the PDF security (encryption) code.

# Display PostScript-specific system files

`gs_dpnxt.ps`
  NeXT Display PostScript extensions.

`gs_dps1.ps, gs_dps2.ps`
  `gs_init.ps` reads these in if the `dps` feature is included in the configuration. It provides support for various Display PostScript and Level 2 features.

# Art and examples

`alphabet.ps`
  Print a sample alphabet at several different sizes.

`cheq.ps`
  A chessboard "font" used by chess.ps (obtained from Adobe).

`chess.ps`
  A black-and-white chessboard.

`colorcir.ps`
  A set of nested ellipses made up of colored bars.

`escher.ps`
  A colored version of a hexagonally symmetric Escher drawing of interlocking butterflies. Can be printed on monochrome devices, with somewhat less dramatic results.

`golfer.ps`
  A gray-scale picture of a stylishly dressed woman swinging a golf club.

`grayalph.ps`
  Grayscaled text test pattern.

`ridt91.eps`
  The RIDT '91 logo. Note that since this is an EPS file, you will have to add "`-c showpage`" at the end of the command line to print it or convert it to a raster file.

`snowflak.ps`
  A rectangular grid of intricate colored snowflakes. (May render very slowly.)

`tiger.ps`
  A dramatic colored picture of a tiger's head.

`vasarely.ps`
  Colored rectangles and ellipses inspired by Victor Vasarely's experiments with tilting circles and squares.

# Utilities

For more information on these utility programs, see the comments at the beginnings of the files. The ones marked (*) have batch files or shell scripts of the same name (like `bdftops` and `bdftops.bat`) to invoke them conveniently.

`align.ps`
  A test page for determining the proper margin and offset parameters for your printer.

`bdftops.ps *`
  A utility for converting BDF fonts to outline form: see the documentation on fonts.

`bench.ps`
  A file useful for running benchmarks.

`caption.ps`
  A file for putting a caption in a box at the bottom of each page, useful for trade show demos.

`cid2code.ps`
  A utility for creating maps from CIDs to Unicode, useful when substituting a TrueType font for an Adobe font.

`docie.ps`
  An emulation of the CIE color mapping algorithms.

`font2pcl.ps`
  Write a font as a PCL bitmap font.

`gslp.ps *`
  A utility for doing "line printing" of plain text files.

`impath.ps`
  A utility for reconstructing outlines from bitmap images, used by `bdftops`.

`landscap.ps`
  A file that you can put in front of your own files to get them rendered in landscape mode.

`level1.ps`
  A file that turns off any Level 2 features.

`packfile.ps`
  A utility for compressing fonts into a single file.

`pdf2dsc.ps`
  Read a PDF file and produce a DSC "index" file.

`pf2afm.ps *`
  A utility for producing AFM files from PFA, PFB, and optionally PFM files.

`prfont.ps`
  A utility to print a font catalog.

`printafm.ps`
  Print an AFM file on standard output.

`ps2ai.ps`
  A utility for converting an arbitrary PostScript file into a form compatible with Adobe Illustrator. NOTE: `ps2ai` doesn't work properly with Adobe's Helvetica-Oblique font, and other fonts whose original `FontMatrix` involves skewing or rotation.

`ps2ascii.ps *`
  A utility for extracting the ASCII text from PostScript source files. It redefines many operators. For more information, see the comments in the file.

`ps2epsi.ps *`
  A utility for converting an arbitrary PostScript file into EPSI form.

`quit.ps`
  A file containing just the word "`quit`". (The `-c` switch now makes this unnecessary; this file exists for backward compatibility.)

`rollconv.ps`
  A utility for converting files produced by Macromedia's `Rollup` program to a Type 0 form directly usable by Ghostscript.

`showpage.ps`
  A file containing just the word "`showpage`". (The `-c` switch now makes this unnecessary; this file exists for backward compatibility.)

`viewcmyk.ps`
  A utility for displaying CMYK files.

`viewgif.ps`
  A utility for displaying GIF files.

`viewjpeg.ps`
  A utility for displaying JPEG files.

`viewpbm.ps`
  A utility for displaying PBM/PGM/PPM files.

`viewpcx.ps`
  A utility for displaying PCX files.

`waterfal.ps`
  A utility to print a "waterfall" of fonts at different sizes.

# Development tools

`acctest.ps`
  A utility that checks whether the interpreter enforces access restrictions.

`decrypt.ps`
  A utility for decrypting the `eexec` section of a font.

`markpath.ps`
  A utility for showing the points on a path.

`pcharstr.ps`
  A utility for printing out the `CharStrings` and `Subrs` in a Type 1 font.

`ppath.ps`
  A couple of utilities for printing out the current path, for debugging.

`traceimg.ps`
  Trace the data supplied to the `image` operator.

`traceop.ps`
  A utility for tracing uses of any procedure or operator for debugging.

`type1enc.ps`
  The Type 1 font format encryption and decryption algorithms, written in PostScript.

`uninfo.ps`
  Some utilities for printing out PostScript data structures.

`unprot.ps`
  A prologue to disable access checking.

`viewps2a.ps`
  A utility for displaying the output of `ps2ascii.ps`.

`wftopfa.ps`
  Convert a Wadalab (Japanese) base font to `.PFA` (or `.PFB`) format.

`winmaps.ps`
  A utility for creating mappings between the Adobe encodings and the Microsoft Windows character sets.

`wrfont.ps`
  A utility for writing out an unprotected Type 1 font, such as the standard Ghostscript fonts.

`zeroline.ps`
  A utility for testing how interpreters handle zero-width lines.

# Odds and ends

`lines.ps`
  A test program for line joins and caps.

`markhint.ps`
  Draw the hints for a Type 1 font.

`showchar.ps`
  Show a character's outline and rasterized forms.

`stcinfo.ps`
  Print and show parameters of the (Epson) `stcolor` driver.

`type1ops.ps`
  The Type 1 font format opcodes.

Copyright © 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.

This file is part of GNU Ghostscript. See the GNU General Public License (the "License") for full details of the terms of using, copying, modifying, and redistributing GNU Ghostscript.

Ghostscript version 5.50, 16 September 1998