All Topics  
Display PostScript

 

   Email Print
   Bookmark   Link






 

Display PostScript



 
 
Display PostScript (or DPS) is an on-screen display system. As the name implies, DPS uses the PostScript
PostScript

PostScript is a dynamically typed concatenative programming language programming language created by John Warnock and Charles Geschke in 1982. PostScript is best known for its use as a page description language in the electronic and desktop publishing areas....
 (PS) imaging model and language to generate on-screen graphics.

NeXT Computer Inc.
NeXT

NeXT, Inc. was an American computer company headquartered in Redwood City, California, California, that developed and manufactured a series of computer workstations intended for the higher education and business markets....
 designed DPS as a display system for their series of Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
-based personal computers starting in 1987. While early versions of PostScript display systems were developed at Adobe Systems
Adobe Systems

Adobe Systems Incorporated is an United States computer Computer software company headquartered in San Jose, California, USA. The company has historically focused upon the creation of multimedia and creativity software products, with a more-recent foray into rich Internet application software development....
, the full implementation of Display PostScript was developed by NeXT in cooperation with Adobe, and made an official Adobe product with its own standards, documents and licensing requirements.

rder to support interactive, on-screen use with reasonable performance, changes were needed:















DPS did not, however, add a windowing system.






Discussion
Ask a question about 'Display PostScript'
Start a new discussion about 'Display PostScript'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Display PostScript (or DPS) is an on-screen display system. As the name implies, DPS uses the PostScript
PostScript

PostScript is a dynamically typed concatenative programming language programming language created by John Warnock and Charles Geschke in 1982. PostScript is best known for its use as a page description language in the electronic and desktop publishing areas....
 (PS) imaging model and language to generate on-screen graphics.

NeXT Computer Inc.
NeXT

NeXT, Inc. was an American computer company headquartered in Redwood City, California, California, that developed and manufactured a series of computer workstations intended for the higher education and business markets....
 designed DPS as a display system for their series of Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
-based personal computers starting in 1987. While early versions of PostScript display systems were developed at Adobe Systems
Adobe Systems

Adobe Systems Incorporated is an United States computer Computer software company headquartered in San Jose, California, USA. The company has historically focused upon the creation of multimedia and creativity software products, with a more-recent foray into rich Internet application software development....
, the full implementation of Display PostScript was developed by NeXT in cooperation with Adobe, and made an official Adobe product with its own standards, documents and licensing requirements.

Changes from Ordinary PostScript

In order to support interactive, on-screen use with reasonable performance, changes were needed:

  • Multiple execution contexts: Unlike a printer environment where a PS interpreter processes one job at a time, DPS would be used in a number of window
    Window (computing)

    In computing, a window is a visual area, usually rectangular in shape, containing some kind of user interface, displaying the output of and allowing input for one of a number of simultaneously running computer processes....
    s at the same time, each with their own settings (colors, brush settings, scale, etc.). This required a modification to the system to allow it to keep several "contexts" (sets of state data) active, one for each process (window).


  • Encoded names: Many of the procedures and data structures in PostScript are looked up by name. In DPS these names could be replaced by small numbers, which are much faster for a computer to find.


  • Interaction support: A number of procedures were defined to handle interaction, including hit detection.


  • Halftone phase: In order to improve scrolling performance, DPS only drew the small portion of the window that became visible, shifting the rest of the image instead of re-drawing it. However this meant that the halftone
    Halftone

    Halftone is the reprographic technique that simulates continuous tone imagery through the use of dots, varying either in size or in spacing. 'Halftone' can also be used to refer specifically to the image that is produced by this process....
    s would not line up, producing visible lines and boxes in the display of graphics. DPS included additional code to properly handle these cases. Modern full-color displays with no halftones have made this idea mostly obsolete.


  • Incremental updates: In printing applications the PS code is interpreted until it gets a showpage at which point it is actually printed out. This is not suitable for a display situation where a large number of minor updates are needed all the time. DPS included modes to allow semi-realtime display as the instructions were received from the user programs.


  • Bitmap font support: DPS added the ability to map PS fonts onto hand-drawn bitmap fonts and change from one to the other on the fly. While PS's ability to display fonts on "low resolution" devices was good, "low resolution" meant something on the order of 300dpi
    Dots per inch

    Dots per inch is a measure of spatial printing or video dot density, in particular the number of individual dots that can be placed within the span of one linear inch The DPI value tends to correlate with , but is related only indirectly....
    , not the 96dpi that a NeXT screen used. This required hand-built fonts for reasonable output.


  • Programming language support: DPS introduced the concept of a "pswrap", which allowed developers
    Software developer

    A software developer is a person or organization concerned with facets of the software development process wider than design and coding, a somewhat broader scope of computer programming or a specialty of project manager including some aspects of Software product management....
     to wrap PostScript code into a C language
    C (programming language)

    C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system....
     function which could then be called from an application.


DPS did not, however, add a windowing system. That was left to the implementation to provide, and DPS was meant to be used in conjunction with an existing windowing engine. This was often the X Window System
X Window System

The X Window System is a computing software system and network protocol that provides a graphical user interface for networked computers. It implements the X Window System protocols and architecture and provides windowing system on raster graphics Visual display units and manages Keyboard and pointing device control functions....
, and in this form Display PostScript was later adopted by companies such as IBM and SGI
Silicon Graphics

Silicon Graphics, Inc. is a company manufacturer high-performance computing solutions, including computer hardware and computer software. SGI was founded by James H....
 for their workstations. Often the code needed to get from an X window to a DPS context was much more complicated than the entire rest of the DPS interface. This greatly limited the popularity of DPS when any alternative was available.

Display PostScript at NeXT

The developers of NeXT
NeXT

NeXT, Inc. was an American computer company headquartered in Redwood City, California, California, that developed and manufactured a series of computer workstations intended for the higher education and business markets....
 wrote a completely new windowing engine to take full advantage of NeXT's object oriented operating system
Operating system

An operating system is an interface between hardware and applications; it is responsible for the management and coordination of activities and the sharing of the limited resources of the computer....
. A number of commands were added to DPS to actually create the windows and to react to events, similar to but simpler than NeWS
NeWS

NeWS was a windowing system developed by Sun Microsystems in the mid 1980s. Originally known as "SunDew", its primary authors were James Gosling and David S....
. The single API made programming at higher levels much easier and made NeXT one of the few systems to extensively use DPS. The user-space windowing system library Nextstep
NEXTSTEP

Nextstep was the original Object-oriented operating system, computer multitasking operating system that NeXT developed to run on its range of proprietary computers, such as the NeXTcube....
 used PostScript to draw items like titlebars and scrollers. This, in turn, made extensive use of pswraps, which were in turn wrapped in objects and presented to the programmer in object form.

Modern Derivatives

Apple
Apple Computer

Apple Inc., formerly Apple Computer Inc., is an United States multinational corporation which designs and manufactures consumer electronics and software products....
's Mac OS X
Mac OS X

Mac OS X is a line of computer operating systems developed, marketed, and sold by Apple Inc., and since 2002 has been included with all new Macintosh computer systems....
 operating system uses a central window server (created entirely by Apple) that caches window graphics as bitmaps, instead of storing and executing PostScript code. A graphics library called Quartz 2D
Quartz 2D

Quartz 2D is the primary two-dimensional graphics rendering API for Mac OS X, part of the Core Graphics framework....
 provides PostScript-style imaging using the PDF
Portable Document Format

Portable Document Format is a file format created by Adobe Systems in 1993 for document exchange. PDF is used for representing two-dimensional documents in a manner independent of the application software, hardware, and operating system....
 graphics primitives (a superset, plus tweaks, of the PostScript model), but this is used by application frameworks—there is no PostScript or PDF present in the Mac OS X window server. Apple chose to use this model for a variety of reasons, including the avoidance of high Adobe-imposed licensing fees for DPS, and more efficient support of legacy Carbon
Carbon (API)

Carbon is one of Apple Inc.'s procedural Application programming interfaces for the Apple Macintosh operating system. It permits a good degree of forward and backward compatibility between source code written to run on the older and now dated Mac OS history , and the newer Mac OS X....
 and Classic
Classic (Mac OS X)

Classic, or Classic Environment, was a Computer hardware and software abstraction layer in Mac OS X that allowed Application software compatible with Mac OS 9 to run on the Mac OS X operating system....
 code; QuickDraw
QuickDraw

QuickDraw is the 2D Computer graphics library and associated Application programming interface which is a core part of the classic Apple Macintosh Mac OS....
-based applications use bitmapped drawing exclusively. Adobe's copyright stipulations for the PDF standard are much less restrictive, granting conditional copyright permission to anyone to use the format in software applications, free of charge.

External links