Apple 310 manual Changes in Font Cache Operation, Device Resolution Images

Page 54

C H A P T E R 2

LaserWriter Select 310 Software

Changes in Font Cache Operation

Operation of the font cache has changed in the LaserWriter Select 310 printer. Formerly, there was a single limit on the number of bytes occupied by a character in the cache. Any character larger than the space allocated would not be cached. Now there are two cache thresholds, a lower and an upper threshold. The following cache conditions apply:

if the character is larger than the space allocated by the upper threshold, as determined by the bounding box specified to setcachedevice, the character will not be cached

if the character is larger than the lower threshold, it will be compressed and cached

if the character is not larger than the lower threshold, it will be stored as a full pixel array

The two thresholds are manipulated by the new operators setcacheparams and currentcacheparams. These operators are described in detail earlier in this chapter, in the section “Setting Extensions to PostScript Level 1.” The old operators, cachestatus and setcachelimit, remain valid, although they will rarely be used.

Compressed characters consume much less space in the font cache than the full pixel arrays, by factors of up to 40. However, more computation is required to reconstitute them when they are needed. Reconstituting a compressed character is still considerably faster than re-executing the original character description.

In systems such as the LaserWriter Select 310 printer which prints at 300 pixels per inch (dpi) or less, the default lower threshold is set so that characters up to about 20 points are stored as full pixel arrays, while larger ones are stored in compressed form. This means that ordinary body text may be cached using the time-efficient full pixel

array representation, but large characters will be cached using space-efficient compressed representation.

Device Resolution Images

A large class of sampled images is now transferred directly from a binary source image to the raster output device rather than using the more general sampling and halftoning technique. The conditions for the image operator’s fast case are now as follows:

The image is one bit per sample.

Image and device resolutions are the same. This means that the combination of

the image matrix and the current transformation matrix is such that one unit in image space corresponds to one unit in device space.

The image coordinate systems x and y axes are either parallel to or perpendicular to the corresponding axes of the device space. This expands the fast case to include rotations of 0, 90, 180 and 270 degrees, as well as their x and y reflections, to provide a total of eight different image orientations, instead of the two previously allowed.

If an image that meets the above conditions on the LaserWriter Select 310 printer is printed on an earlier PostScript printer, it may be treated as a general image. In this case, the earlier printer may process the image more slowly than the LaserWriter Select 310 printer, but the results will still be correct, preserving the device independence of the PostScript language page descriptions.

42

PostScript Language Changes

Image 54
Contents Apple LaserWriter Select 310 Printer Limited Warranty on Media and Replacement Contents Page Communication Channels Page Figures and Tables Page About This Note What This Note ContainsConventions Used in This Note Other Reference MaterialFor More Information ApdaPage LaserWriter Select Hardware1 LaserWriter Select 310 Hardware ROM Communication Ports Serial Port for RS-232C DevicesCentronics Parallel Connector 2An 8-pin serial port connectorPstrobe Signal Status Lights Memory Capabilities ROM CapabilityBatch Mode Basic OperationDram Expansion Interactive Mode TypesPaper Handling 7Paper handling options Page LaserWriter Select 310 Software Software Overview Adobe PostScript Programming LanguagePostScript Interpreter LaserWriter Select 310 Driver TypesSelects the paper tray containing A4-size paper and sets Communication Device Parameters Software ParametersProduct Strings Compatibility OperatorsStatusdict Setting Compatibility Operators Device Defaulttimeouts Setting System ParametersCheckpassword IdlefontsProductA PrinternameProduct RamsizeSetdefaulttimeouts SetpasswordSetidlefonts Defaultpapertray Setting Page Device ParametersDefaultmultipurposetraysize SetprinternameMargins ManualfeedtimeoutManualfeed PagestackorderSetdefaultmultipurposepapertraysize PapersizePapertray Setdefaultpapertray SetdostartpageSetmargins Setpagestackorder SetpagetypeSetpapertray Setjobtimeout Setting User ParametersJobtimeout JobnameSetting Device Parameters WaittimeoutSetsoftwareiomode Setting Communication Parameters SoftwareiomodePacketbackchannel Sccbatch SetpacketbackchannelSetting Engine Device Parameters SetsccbatchDarkness Currentcacheparams Setting Extensions to PostScript LevelSetdarkness CurrentpackingPackedarray SetcacheparamsPrinter Error Parameter SetpackingPrintererror PostScript Language ChangesPacked Arrays Packed Arrays Versus Ordinary ArraysCreating Packed Arrays Immediately Evaluated Names Device Resolution Images Changes in Font Cache OperationEnd-of-Line Recognition TrueType Fonts New OperatorsCommunication Channels Serial Communication Baud RatesParity Settings Flow ControlDTR Flow Control SCC Operator Encoding XON/XOFF Flow ControlCommunication Protocols Simple Communication ProtocolBinary Communication Protocol SOH CTL-A Communicating with an IBM PC Parallel InterfaceSerial Interface DTR Flow Control for PC CommunicationCommunication Dynamics XON/XOFF Flow Control for PC CommunicationStatus Queries and Spontaneous Messages Errorerror OffendingCommand operator %%