home *** CD-ROM | disk | FTP | other *** search
/ swCHIP 1991 January / swCHIP_95-1.bin / utility / gs333ini / gs3.33 / history2.doc < prev    next >
Text File  |  1995-12-09  |  196KB  |  5,160 lines

  1.    Copyright (C) 1994 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17.  
  18. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  19.  
  20. This file, history2.doc, describes the changes in older releases of
  21. Ghostscript numbered 2.n.  For more recent changes, see the NEWS file.
  22.  
  23. For an overview of Ghostscript and a list of the documentation files, see
  24. README.
  25.  
  26. Version 2.9.10-beta (7/28/94)
  27. ===================
  28.  
  29. This is the last 2.9 beta, since 3.0 will be released on July 31.
  30.  
  31. Documentation
  32. -------------
  33.  
  34. Fixes bugs:
  35.     - A | in gs.1 had a \ in front of it instead of \\.
  36.  
  37. Adds a paragraph in gs.1 that tells how to select paper size.
  38.  
  39. Notes in devs.mak that the cdj550 driver is the best one for the H-P
  40. DeskJet 520, and the pjxl300 driver is the right one for the H-P DeskJet
  41. 1200C.
  42.  
  43. Notes in make.doc that Watcom C++ 10.0 may require a change in a makefile.
  44.  
  45. Procedures
  46. ----------
  47.  
  48. Removes ICCINIT from MODULES.LIS for VMS systems.
  49.  
  50. Updates VMS.MAK to support Motif V1.2.
  51.  
  52. Updates jpeg.mak to work with version 5alpha4 of the IJG JPEG code.
  53.  
  54. Utilities
  55. ---------
  56.  
  57. Fixes bugs:
  58.     - font2c didn't leave extra room in Type 0 font dictionaries for
  59. entries added by definefont.
  60.     - font2c left extra information on the stack.
  61.     - ansi2knr would remove newline characters within formal argument
  62. lists.
  63.     - font2c got an Error: /undefined in makefontprocname.
  64.  
  65. Updates ansi2knr to work better with the GNU configure program.
  66.  
  67. Updates ansi2knr to handle procedure formal arguments automatically.
  68.  
  69. Drivers
  70. -------
  71.  
  72. Fixes bugs:
  73.     - If a file contained color or gray-scale information followed by a
  74. masked image, the X driver would sometimes invert the polarity of the
  75. image.
  76.  
  77. Platforms
  78. ---------
  79.  
  80. Fixes bugs:
  81.     - Unix systems with a 2-argument gettimeofday returned garbage
  82. values for the current time.
  83.     - The VMS build script for compiled fonts omitted the requirement
  84. to load gs_ccfnt.ps.
  85.     - memory_.h didn't note that System V Unix platforms need memmove.
  86.  
  87. On Unix systems, changes the subdirectory of $datadir/ghostscript to just
  88. be the version number (e.g., 2.9.10 rather than gs-2.9.9).
  89.  
  90. Fonts
  91. -----
  92.  
  93. Adds support code for the Wadalab (University of Tokyo) free Kanji font.
  94.  
  95. Notes in the documentation in Fontmap that .pfa and .pfb fonts are
  96. compatible with ATM, but .gsf fonts are not.
  97.  
  98. Changes the names of Thomas Wolff's expanded Hershey fonts, replacing .gsf
  99. with .pfa.
  100.  
  101. Interpreter
  102. -----------
  103.  
  104. Fixes bugs:
  105.     - The scanner became confused if the literal names /<< or />>
  106. straddled an input buffer boundary.
  107.     - .setlanguagelevel gave an invalidaccess error when
  108. switching from level 2 to level 1.
  109.     - currentgstate, setgstate, and copy for gstates didn't do
  110. the necessary access checks.
  111.     - The Category resource category didn't define .ResourceFile, so
  112. /Category resourcestatus gave an error.
  113.     - The garbage collector didn't trace the structures used by
  114. filenameforall properly on most platforms.
  115.     - Automatically expanding systemdict didn't work, but didn't give
  116. an error.
  117.     - Automatically expanding a dictionary usually expanded it by too
  118. much.
  119.     - systemdict was created too small.
  120.     - The garbage collector didn't trace the structures referenced only
  121. from allocator objects, leading to attempts to access freed storage.
  122.     - If a chunk was empty, the GC tried to free it even if it had
  123. inner chunks.
  124. *    - The outer loop in dict_find_name_by_index() could cause an
  125. addressing fault on segmented machines when looking up Level 2 operators,
  126. because the offset could get decremented past 0.
  127.     - The heap_available procedure in gsmemory.c didn't convert
  128. properly to non-ANSI syntax.  (New bug in 2.9.9.)
  129.     - The ledgertray procedure wasn't implemented.
  130.     - The xxxtray procedures didn't set the page size.
  131.     - The settumble operator wasn't implemented, even as a dummy.
  132.     - glyphshow didn't work with Type 3 fonts.
  133.     - Supplying a RenderTable for a CIE color space caused an error.
  134.     - The DCT filter code had the jpeg/ subdirectory name "wired in" to
  135. the source files.
  136.  
  137. Adds experimental filters for Burrows/Wheeler block sorting compression
  138. (BWBlockSortEncode/Decode), described in DEC SRC Research Report #124,
  139. move-to-front coding (MoveToFrontEncode/Decode), and a simple form of
  140. Huffman coding (BoundedHuffmanEncode/Decode).  These are experimental -- do
  141. not rely on them remaining the same (or existing at all) in future
  142. releases!
  143.  
  144. Adds all function prototypes needed to pacify strict compilers.
  145.  
  146. Removes all explicit references to userdict from the C code.
  147.  
  148. Changes the SAFER switch so that it disallows not only explicit writing,
  149. deleting, or renaming of files, but also disallows specifying an explicit
  150. OutputFile for any device (except for the initial device, by means of
  151. -sOutputFile= on the command line).
  152.  
  153. Streams
  154. -------
  155.  
  156. Fixes bugs:
  157.     - Hex decoding (ASCIIHexDecode stream and <> literals) didn't treat
  158. the data source as read-only (although it restored it to its original
  159. contents).
  160.  
  161. Implements move-to-front coding, a simple form of Huffman coding, and
  162. Burrows/Wheeler block sorting compression.
  163.  
  164. Library
  165. -------
  166.  
  167. Fixes bugs:
  168. *    - (The following bug fix was actually implemented somewhere around
  169. version 2.7.)  restore didn't purge character cache entries whose keys were
  170. names created more recently than the save.
  171.     - gstype1.h declared gs_type1_state_sizeof as an extern, but this
  172. wasn't defined anywhere.
  173.     - gs_makeimagedevice didn't set the size of the palette correctly,
  174. which confused the GC.
  175.     - gs_makeimagedevice didn't set num_components to 1 for
  176. mapped-color devices with only gray values.
  177. *    - The two-color halftoning algorithms truncated when computing the
  178. halftone level, rather than rounding it.
  179. *    - If a path being filled had line segments that fell entirely to
  180. the right of the clipping region, part of the path might not be filled.
  181.     - The optimized code for 24-bit color didn't ensure properly that
  182. 32-bit accesses would be aligned appropriately.
  183.     - The miter join check had gotten reversed somewhere along the way.
  184. *    - Because x and y were interchanged in the miter check computation,
  185. in some situations the check was inverted.  (This is a very old bug!)
  186.     - It was believed that strokepath didn't work with dashed lines;
  187. the problem appears to have been an incorrect testing program.
  188.  
  189. Adds all function prototypes needed to pacify strict compilers.
  190.  
  191. Changes fixed2float so it doesn't cast the result to float, and removes
  192. fixed2double.  This produces slightly more accurate results in many places,
  193. and may even be faster (for FPUs that normally generate double rather than
  194. single precision results).
  195.  
  196. Version 2.9.9-beta (6/23/94)
  197. ==================
  198.  
  199. Documentation
  200. -------------
  201.  
  202. Puts a pointer to devs.mak in the section of use.doc that talks about
  203. MS-DOS displays.
  204.  
  205. Platforms
  206. ---------
  207.  
  208. Fixes bugs:
  209.     - The %pipe% IODevice was omitted on System V platforms.
  210.     - The AXP VMS build script needed /NESTED_INCLUDE=PRIMARY in
  211. CC_QUAL to work around a bug in the DEC C compiler.
  212.  
  213. Fonts
  214. -----
  215.  
  216. Fixes bugs:
  217.     - gs_lev2.ps redefined .loadFontmap incorrectly.
  218.  
  219. Interpreter
  220. -----------
  221.  
  222. Fixes bugs:
  223.     - stream_compact used memcpy even though the source and destination
  224. might overlap.
  225.     - filter applied to a closed file could cause a crash.
  226.  
  227. Library
  228. -------
  229.  
  230. Fixes bugs:
  231.     - putdeviceparams to a printer didn't close and reopen the device
  232. if only the page size or resolution was changed.
  233.  
  234. Version 2.9.8 (6/20/94)
  235. =============
  236.  
  237. This is the first version that claims to be a full Level 2 implementation.
  238. It was distributed to satisfy a contractual requirement.
  239.  
  240. Documentation
  241. -------------
  242.  
  243. In make.doc:
  244.     - Adds a reference to the generic System V section at the end of
  245. the SCO section.
  246.     - Notes that DEC OSF/1 systems may require changing the name of the
  247. install program to installbsd.
  248.  
  249. Updates drivers.doc to reflect the change from "properties" to
  250. "parameters".
  251.  
  252. Updates the Aladdin Enterprises Free Public License to version 1.
  253.  
  254. In language.doc, notes that certain device parameters will be phased out.
  255.  
  256. Procedures
  257. ----------
  258.  
  259. Fixes bugs:
  260.     - The file aa.ps was included in the distribution by mistake.
  261.  
  262. Notes in the Unix makefiles that X11R6 probably needs SM and ICE added to
  263. XLIBS.
  264.  
  265. Utilities
  266. ---------
  267.  
  268. Fixes bugs:
  269.     - viewjpeg.ps used a non-existent file as its example.
  270.     - A temporary string in wrfont.ps was allocated too small.
  271.  
  272. Upgrades font2c.ps so it will handle (simple) Type 0 fonts as well as Type
  273. 1.
  274.  
  275. Drivers
  276. -------
  277.  
  278. Fixes bugs:
  279.     - The TIFF drivers didn't byte-align each scan line.
  280.     - gdevtfax.c applied & to an array member of a structure.
  281.  
  282. Changes the param_list interface slightly: Implementations of the
  283. put_params driver procedure should now use param_signal_error to report
  284. errors, and should not give up at the first error.  (Even though this is a
  285. non-backward-compatible change, old implementations will continue to work;
  286. they just won't deliver complete results to the setpagedevice Policies
  287. machinery.)
  288.  
  289. Platforms
  290. ---------
  291.  
  292. Fixes bugs:
  293.     - Removes the time zone adjustment from gp_get_clock in gp_unix.c,
  294. since the value returned by all Unix systems is bogus.
  295.     - The DV/X makefile still included the dfaxhigh and dfaxlow drivers.
  296.     - gssetmod.com (VMS command file) didn't work properly if the
  297. argument list was empty.
  298.     - vms.mak, vms-axp.mak, and modules.lis hadn't been updated to
  299. reflect changes in 2.9.7.
  300.     - The MS Windows version wouldn't link (overflowed the 64K primary
  301. data segment).
  302.  
  303. Fonts
  304. -----
  305.  
  306. Makes the font substitution algorithm somewhat more intelligent.
  307.  
  308. Interpreter
  309. -----------
  310.  
  311. Fixes bugs:
  312.     - Enumerating the pointers of a zero-length array of structures
  313. caused a divide by zero.
  314.     - iref.h didn't protect itself against multiple inclusion.
  315.     - The CCITTFaxEncode filter didn't byte-align the final
  316. end-of-block code if EndOfBlock and EncodedByteAlign were both true.
  317.     - make_initial_dict in iinit.c used `name' as a formal parameter
  318. name, which some compilers believe conflicts with a typedef.
  319.     - Not all internal operators had registered names.
  320.     - The GC used memcpy, rather than bytes_copy, when compacting
  321. objects, even though the source and destination might overlap.
  322.     - When debugging was enabled, gc_string_mark could give a spurious
  323. error indication.
  324.     - vmstatus returned too small a value for the maximum VM.
  325.     - The scanner could get into a loop when reading a radix-85 string.
  326.     - The GC could get into a state where it was called after every
  327. allocation (because of the patch setting global = true in ireclaim).
  328.     - The general path filling algorithm didn't skip regions that were
  329. completely outside the clipping box.
  330.     - The gs_screen_enum structure contained a pointer (porder) that
  331. pointed into the middle of a structure, confusing the GC.
  332.  
  333. Implements the BitmapWidths flag in fonts.  The default of false means that
  334. we use scalable widths even with xfonts.
  335.  
  336. Changes the Generic resource category so that ResourceFileName is optional.
  337.  
  338. Changes the .getdeviceparams operator so that it takes an optional
  339. dictionary giving the set of keys whose values are wanted.  Changes the
  340. .putdeviceparams operator so that it takes an optional policy dictionary
  341. specifying the action to be taken on errors, and returns a list of keys and
  342. errors if it fails, rather than causing an error.  These are
  343. non-backward-compatible changes, but ordinary programs do not use these
  344. operators.
  345.  
  346. Changes the names of some internal operators and procedures by adding
  347. a . to the beginning:
  348.     currenttime
  349.     devicename
  350.  
  351. Implements currentpagedevice, and a small subset of setpagedevice.  Only
  352. the following keys in the page device dictionary are known to the current
  353. implementation, and the ones marked with * are not actually processed:
  354.     PageSize
  355.     InputAttributes
  356.     MediaColor, MediaWeight, MediaType, InsertSheet
  357.       (for InputAttributes matching only)
  358.     *ImagingBBox
  359.     OutputAttributes
  360.     OutputType
  361.       (for OutputAttributes matching only)
  362.     NumCopies
  363.     HWResolution
  364.     *Margins
  365.     *Orientation (for all devices, not just roll devices)
  366.     Policies
  367.     Install
  368.     BeginPage
  369.     EndPage
  370. Does not implement:
  371.     - Updating InputAttributes or OutputAttributes by sensing the state
  372.       of the device;
  373.     - Retrying media matching after an initial failure;
  374.     - Automatic handling of portrait vs. landscape page size;
  375.     - Recording the CTM after Install as the one to be used for
  376.       defaultmatrix, initmatrix, and initgraphics.
  377. Also, media matching is normally disabled (with InputAttributes = null)
  378. for all devices.  ****** We had to disable setpagedevice just before
  379. shipping this release, because of interactions with the older device
  380. handling machinery that we could not fix in the time available.
  381.  
  382. Library
  383. -------
  384.  
  385. Fixes bugs:
  386.     - 24-bit color (mem_true24_fill_rectangle and _copy_mono) had
  387. algorithm bugs.
  388.     - A complex conditional expression in gx_render_gray wouldn't
  389. compile properly with the DECStation 3100 Ultrix 4.3 compiler.
  390.     - The GC routines for gx_device_clip didn't handle the case where
  391. the 'current' pointer pointed to list.single.
  392.     - gx_add_char_bits used memcpy, rather than bytes_copy, for
  393. compressing character bitmaps, even though the source and destination might
  394. overlap.
  395.     - Some compilers require the definition of st_gstate_contents to
  396. precede the definitions of the GC procedures.
  397.     - Filling a large rectangle (more than 1K of bitmap) with a colored
  398. halftone overwrote random areas of the stack.
  399.  
  400. Changes gs_setcachedevice[2] to take a pointer to an array of floats,
  401. rather than 6 or 10 individual floats.  THIS IS A NON-BACKWARD-COMPATIBLE
  402. CHANGE.
  403.  
  404. Implements the BitmapWidths flag in fonts.
  405.  
  406. Version 2.9.7-beta (6/5/94)
  407. ==================
  408.  
  409. Yet another pre-3.0 beta.  The main features are a fairly reliable garbage
  410. collector, and function prototypes almost everywhere they are needed.
  411.  
  412. Documentation
  413. -------------
  414.  
  415. Fixes bugs:
  416.     - The comment at the beginning of the zfindlibfile procedure was
  417. incorrect.
  418.  
  419. Replaces the GNU License (the COPYING file) with version 0 of the new
  420. Aladdin Enterprises Free Public License (the PUBLIC file).
  421.  
  422. Procedures
  423. ----------
  424.  
  425. Fixes bugs:
  426.     - The definition of cmykread.dev in gs.mak was incorrect (it
  427. modified color.dev).
  428.  
  429. Adds the ability to specify a value for FONTPATH on the command line
  430. (-sFONTPATH=), overriding GS_FONTPATH.
  431.  
  432. Replaces the -oper2 configuration resource type with the ability to specify
  433. in the op_def list the dictionary in which operators will be defined.  (See
  434. opdef.h for more details.)  This is an internal change only.
  435.  
  436. Utilities
  437. ---------
  438.  
  439. Fixes bugs:
  440.     - viewgif.ps got an error on interlaced GIF files whose height
  441. wasn't a multiple of 8.
  442.  
  443. Changes traceop.ps so it stores the traced operator in the same dictionary
  444. where the operator is currently defined, if possible.
  445.  
  446. Drivers
  447. -------
  448.  
  449. Fixes bugs:
  450.     - The new G3 fax drivers crashed on page widths greater than 2623
  451. (40 * 64 + 63) pixels.  (We fixed this by disallowing page widths greater
  452. than approximately twice this.)
  453.     - The 24-bit PCX driver had some debugging code accidentally left
  454. in it that produced large volumes of useless console output.
  455.  
  456. Removes the previous (Leffler) TIFF/F driver and the TruFax driver.
  457.  
  458. Platforms
  459. ---------
  460.  
  461. Fixes bugs:
  462.     - time_.h, gp_unix.c, and gp_sysv.c didn't do the right thing on
  463. SVR4 platforms, where gettimeofday only takes 1 argument.
  464.     - The final linking command on Turbo C platforms didn't specify the
  465. COMPDIR directory for the linker.
  466.  
  467. Fonts
  468. -----
  469.  
  470. Changes the standard Fontmap to use the URW contributed fonts as
  471. work-alikes for Helvetica and Times Roman.
  472.  
  473. Interpreter
  474. -----------
  475.  
  476. Fixes bugs:
  477.     - The garbage collector wasn't in a consistent state.
  478.     - In Level 2 mode, statusdict was allocated in global VM rather
  479. than local VM.
  480.     - resourceforall gave an error on the built-in categories such as
  481. Filter.
  482.     - The file searching algorithm didn't check the current directory
  483. first.
  484.     - When opening a file failed, it didn't return a different error
  485. depending on the problem.
  486.     - The CCITTFaxEncode filter crashed on widths larger than 2623 (64
  487. * 40 + 63) pixels.  (We fixed this by disallowing page widths greater than
  488. approximately twice this.)
  489.     - The .type1getsbw operator gave an invalidfont error if a
  490. CharString started with anything other than a [h]sbw.  (Adobe's published
  491. specs say this is invalid, but some Adobe MultiMaster fonts start with a
  492. callsubr and/or a callothersubr.)
  493.     - When printing out the stack with == after an error, the error
  494. handler got a repeated (and ultimately fatal) typecheck error if it
  495. encountered an object of non-standard type.
  496.     - The token operator could incorrectly attempt to free a structure
  497. on the stack if it encountered an input buffer boundary.
  498.     - string_to_ref didn't correctly set the a_local flag in the string
  499. object it created.
  500.     - If the -c switch was the last switch on the command line,
  501. Ghostscript always exited without going into interactive mode.
  502.     - copy didn't check for errors when copying a dictionary.
  503.  
  504. Makes many minor changes (mostly adding prototypes) to reduce error and
  505. warning messages from gcc and other strict compilers.
  506.  
  507. Adds files containing the 4 predefined PDF encodings (MacRoman, MacExpert,
  508. WinAnsi, and PDFDoc).
  509.  
  510. Library
  511. -------
  512.  
  513. Fixes bugs:
  514.     - image_bbox in gxccman.c could produce a division by 0 if a
  515. 0-width character was being entered into the cache.
  516.     - gx_image_cached_char incorrectly specified a scale of 2x2 rather
  517. than 1x1 if it had to read bits from an xfont.
  518.     - Stale pointers in the halftone cache weren't cleared properly by
  519. a restore.  (We fixed this by making grestoreall clear the halftone cache.)
  520.     - setdash used gs_malloc, rather than the current allocator, for
  521. allocating the dash pattern.
  522.     - If one attempted to fill a very wide region with a colored
  523. halftone, gx_dc_ht_colored_fill_rectangle would loop indefinitely.
  524.     - The container_offset in clipping devices was set incorrectly,
  525. causing the garbage collector to mangle pointers.
  526.  
  527. Changes the fopen routine in IODevices so that it can return an arbitrary
  528. error code, rather than simply succeeding or failing.  THIS IS A
  529. NON-BACKWARD-COMPATIBLE CHANGE.  It only affects IODevice implementations,
  530. of which there are very few.  (It doesn't affect ordinary device drivers.)
  531.  
  532. Changes the char_metrics xfont procedure so it returns the width as
  533. floating point numbers rather than integers.  THIS IS A
  534. NON-BACKWARD-COMPATIBLE CHANGE.  It only affects xfont implementations, of
  535. which there are very few.
  536.  
  537. Makes many minor changes (mostly adding prototypes) to reduce error and
  538. warning messages from gcc and other strict compilers.
  539.  
  540. Version 2.9.6-beta (5/23/94, not distributed to the public)
  541. ==================
  542.  
  543. This, too, was supposed to be the last beta release for public release 3.0.
  544. It was created primarily for a user who desperately needed a Level 1 system
  545. that would run properly on a 64-bit hardware architecture.  The garbage
  546. collector is badly broken (it's in the middle of an architectural change);
  547. setpagedevice is still not implemented.
  548.  
  549. Documentation
  550. -------------
  551.  
  552. Documents the standard location of Type 1 fonts on AIX.
  553.  
  554. Changes the last few mentions of Ghostview for Microsoft Windows to GSview
  555. for Windows.
  556.  
  557. Notes that Solaris 2.n provides the X11 header files in a different place.
  558.  
  559. Changes README to reflect the differentiation between Aladdin Ghostscript
  560. and GNU Ghostscript.
  561.  
  562. Procedures
  563. ----------
  564.  
  565. Fixes bugs:
  566.     - The compilation rules for the modules that call the IJG library
  567. used -Ijpeg rather than -I$(JPEGSRC).
  568.     - The rule for gslib.dev omitted echogs$(XE) as a prerequisite.
  569.  
  570. Makes it possible to define the values of buildtime, copyright, revision,
  571. revisiondate, and serialnumber in the makefile.
  572.  
  573. Utilities
  574. ---------
  575.  
  576. Fixes bugs:
  577.     - The viewgif.ps utility didn't handle local color tables.
  578.  
  579. Updates ps2ai.ps to version 1.81.
  580.  
  581. Drivers
  582. -------
  583.  
  584. Fixes bugs:
  585.     - The TIFF and fax devices used some identical names, causing
  586. linker complaints.
  587.     - The bj10e/bj200 driver inadvertently disabled the sheet feeder.
  588. (The change may not actually fix this bug, since we don't have either of
  589. these printers with a sheet feeder to test it on.)
  590.     - The 'bit' device didn't map colors to pixel values correctly.
  591.     - The monochrome PCL driver didn't work around the fact that the
  592. Canon LBP4i printer didn't clear its seed row correctly.
  593.  
  594. Adds new drivers:
  595.     - A user-contributed driver for the H-P DesignJet 650C.
  596.     - A user-contributed driver for the Canon LIPS III printer.
  597.     - A completely new tiffg3 driver with one based on the new, fast
  598. faxg3 code.  This driver does not include any external code, and carries an
  599. Aladdin copyright.
  600.     - A tiffg4 driver, also based on the fast CCITT filter code.
  601.  
  602. Removes the tiffg3x driver that appeared briefly in 2.9.5, and renames the
  603. previous (Leffler) tiffg3 driver as tiffg3x.
  604.  
  605. Adds support for A0, A1, and A2 paper sizes to PCL drivers.
  606.  
  607. Changes all the names involving "props" to "params", for consistency with
  608. the header files, some other internal interfaces, and Adobe's terminology.
  609. THIS IS A NON-BACKWARD-COMPATIBLE CHANGE.  However, it only affects devices
  610. that implement their own get_props and put_props procedures, of which there
  611. aren't very many.
  612.  
  613. Platforms
  614. ---------
  615.  
  616. Fixes bugs:
  617.     - The DV/X makefile used X11 rather than X for the X11 library name.
  618.     - The DV/X makefile incorrectly included the PC display drivers.
  619.     - The DV/X makefile omitted gp_dosfs.$(OBJ) from the list of
  620. platform-specific files.
  621.     - The DV/X makefile used : rather than ; for separating directory
  622. names in GS_LIB_DEFAULT.
  623.     - x_.h omitted a needed alias for XtAppSetFallbackResources.
  624.     - The makefile entry for System V Unix systems didn't include
  625. gp_unifn.$(OBJ).
  626.     - The comment before LDFLAGS in the gcc makefiles incorrectly
  627. suggested using the -x switch on Ultrix platforms.
  628.     - The forward declaration of quant_params in zfdct.c upset the Sun
  629. compiler because it declared a parameter as float rather than floatp.
  630. *    - The Microsoft C compiler, like the Borland C compilers, only
  631. compares the offset part of segmented pointers.
  632.  
  633. Fonts
  634. -----
  635.  
  636. Adds a fontmap suitable for use with Adobe Type Basics.
  637.  
  638. Interpreter
  639. -----------
  640.  
  641. Fixes bugs:
  642.     - The STACK_LOOP_BEGIN macro in istack.h didn't work correctly on
  643. segmented systems.
  644.     - The end_phase procedure in igc.c didn't work correctly on
  645. segmented systems.
  646.     - Indexed color spaces didn't mark their base space properly when
  647. garbage collecting.
  648.     - The garbage collector didn't work on segmented systems, because
  649. it smashed the lsize field of large objects with mark/reloc information.
  650.     - Some structures didn't have correct associated GC procedures:
  651. gs_indexed_map, gs_client_pattern, gs_pattern_instance.
  652.     - restore could free names or stack segments that were still
  653. referenced.
  654. *    - If a packed object caused an error, the error object could be set
  655. to garbage rather than the correct object.
  656. *    - Badly designed error handlers which use $error for temporary
  657. storage could cause a dictfull error.
  658.     - Some compilers objected to the use of "dict" as a variable name
  659. in a scope where it was defined as a type.
  660.     - IODevices were declared const and non-const inconsistently.
  661.     - setpagedevice popped one object too many off the stack if the
  662. request included any subdictionaries that needed to be merged.
  663.     - More garbage collector bugs were fixed.
  664.     - If the current stack block was empty, Level 2 restore would give
  665. a spurious typecheck error.
  666.     - The CCITTFaxEncode filter could get confused if it emptied the
  667. input and filled the output at the same time.
  668.     - The CCITTFaxEncode filter could insert an extra EOL if it had to
  669. suspend at certain times.
  670.     - The new parser for literal strings (as of 2.9.5) could mis-count
  671. internal parentheses if a parenthesis caused the internal buffer collecting
  672. the string to overflow.
  673.     - If the current stack block had fewer than 3 elements,
  674. .type1addpath could report a spurious typecheck error.
  675.     - Text rendering operations (show, stringwidth, etc.) caused a
  676. crash if the current color was a Pattern that hadn't already been
  677. rasterized.
  678.     - If a program did a grestore when the graphics state stack was
  679. empty, the graphics state was initialized to unexpected (and, in some
  680. cases, invalid) values.
  681.     - pathforall could cause a bogus stackoverflow if it overflowed the
  682. current stack block.
  683.     - Closing an encoding filter with a procedure as target left the
  684. filter on the stack.
  685. *    - The outer loop in dict_lookup() could cause an addressing fault
  686. on segmented machines when looking up Level 2 operators, because the offset
  687. could get decremented past 0.
  688.     - There was an = instead of an == in a test in scanner_reloc_ptrs.
  689.     - The call on gs_reloc_refs in sproc_reloc_ptrs in zfproc.c omitted
  690. the last (gcst) argument.
  691.  
  692. (Re-)implements the 2-D case of CCITTFaxEncode, and fixes a couple of bugs
  693. in it.
  694.  
  695. Adds DiffEncode and DiffDecode filters that implement color prediction for
  696. the PDF variant of the LZWDecode filter.
  697.  
  698. Changes the specification of .oserrorstring to be similar to getenv,
  699. where, etc.  THIS IS A NON-BACKWARD-COMPATIBLE CHANGE; however, no
  700. user-written code should be using .oserrorstring.
  701.  
  702. Adds oversampling for better character rasterizing.
  703.  
  704. Library
  705. -------
  706.  
  707. Fixes bugs:
  708.     - gx_dc_ht_colored_fill_rectangle gave a compiler warning because
  709. of a problem with const pointers.
  710.     - dfmul2fixed_vars (in gxfixed.h) omitted the & before vda on
  711. big-endian platforms, causing compilation errors.
  712.     - IODevices were declared const and non-const inconsistently.
  713.     - The Type 1 rasterizer never enabled overshoot suppression.
  714.     - stroke didn't fatten the line properly if stroke adjustment was
  715. enabled, or if the line was horizontal or vertical.
  716. *    - The clipping test for characters was too strict by almost 1
  717. pixel, leading to unnecessary clipping of text at the edge of the clipping
  718. box.
  719. *    - The initial clipping box was computed incorrectly for devices
  720. whose initial transformation matrix included a rotation.
  721.  
  722. Changed the implementation of clipping lists and show enumerators to use
  723. separate objects rather than embedded objects, to pacify the GC.  (This is
  724. an internal change, not visible at the PostScript or API level.)
  725.  
  726. Makes the character cache trim off left and right blank areas, as well as
  727. top and bottom.  (Internal change.)
  728.  
  729. Adds oversampling for better character rasterizing.
  730.  
  731. Version 2.9.5-beta (4/11/94)
  732. ==================
  733.  
  734. This was supposed to be the last beta release before 3.0, but it won't be.
  735. The only known major defects are the unreliable garbage collector, and the
  736. dummy implementation of setpagedevice/currentpagedevice.
  737.  
  738. Documentation
  739. -------------
  740.  
  741. Fixes bugs:
  742.     - The file commnew.doc didn't belong in the fileset.
  743.  
  744. Notes in the makefiles that SVR4 systems may need to set EXTRALIBS=-lnsl.
  745.  
  746. Adds a user-contributed `man' page for the ps2epsi utility.
  747.  
  748. Procedures
  749. ----------
  750.  
  751. Fixes bugs:
  752.     - The IJG files didn't compile properly by themselves, because they
  753. didn't have $(AK) in their dependency list.
  754.  
  755. Changes back the handling of files named on the command line, so that they
  756. are first sought in the current directory, and if that fails, use the
  757. search path.  (2.9.4-beta changed things so that files on the command line
  758. did not use the search path, because as of that version, the search path
  759. doesn't necessarily include the current directory.  I consider the "check
  760. the current directory and then use the search path" rule, which is the
  761. MS-DOS standard and was used in Ghostscript prior to 2.9.4, a serious
  762. mistake, since it is one of the best-known security holes in Unix and can
  763. also produce confusing and unexpected results depending on the current
  764. directory; I would much rather have a clear distinction between
  765. user-specified files, which should not use any path searching, and system
  766. files, that only use the defined search path.  However, as of this moment,
  767. users seem to want the convenience at the expense of insecurity and
  768. confusion.)
  769.  
  770. Adds '.' to the beginning of the search path for MS-DOS platforms, to
  771. conform to the usual MS-DOS file searching convention.
  772.  
  773. Adds a -c ("code") switch, which interprets following arguments (until the
  774. next switch) as PostScript tokens.
  775.  
  776. Changes the handling of FEATURE_DEVS so that either level1.dev or
  777. level2.dev must normally be selected.  THIS IS A NON-BACKWARD-COMPATIBLE
  778. CHANGE for Level 1 systems, which formerly set FEATURE_DEVS to an empty
  779. definition.
  780.  
  781. Utilities
  782. ---------
  783.  
  784. Fixes bugs:
  785.     - bench.ps didn't switch back to local VM properly before running
  786. the program being benchmarked.
  787.  
  788. Adds a ppmsetpagesize command to the pstoppm utility.
  789.  
  790. Drivers
  791. -------
  792.  
  793. Fixes bugs:
  794.     - The PCX and GIF drivers used an incorrect algorithm for computing
  795. the blue component of the color palette, which could cause colors to come
  796. out with not quite enough blue.
  797.     - The SPARCprinter driver wouldn't compile with non-ANSI compilers.
  798.  
  799. Adds new drivers:
  800.     - A user-contributed driver for DEC sixel displays like the VT240
  801. (sxlcrt, in gdevln03.c, which has a FSF copyright.)
  802.     - A much larger and supposedly faster version of the TIFF/F driver
  803. (tiffg3x, in gdevtifx.c), contributed by a user.  This has the same
  804. copyright as the TIFF/F driver (gdevtiff.c).
  805.     - A driver (faxg3, in gdevfax.c) that produces plain Group 3 fax
  806. output with no header, using the CCITTFaxEncode filter to do the work.
  807. (This is around 2.5-3 times as fast as the other fax drivers distributed
  808. with Ghostscript.)
  809.     - A user-contributed driver for the Mitsubishi CP50 color printer.
  810.  
  811. Changes the `bit' driver so one can set the Colors and *Values properties.
  812.  
  813. Makes the color mapping for PC displays, PCX files, and GIF files identical
  814. (they differed slightly before).
  815.  
  816. Platforms
  817. ---------
  818.  
  819. Fixes bugs:
  820.     - VMS used DISPLAY rather than DECW$DISPLAY to get the display name
  821. if opening the display failed.
  822.     - Many minor bugs relating to OS/2 and Win32 were fixed.
  823.     - On Unix and DV/X platforms, the install script didn't mkdir
  824. $(gsdir), and didn't mkdir the intermediate directory for the man page.
  825.     - On BSD and UTek platforms, the declaration of memset in
  826. memory_.h, and the definition in gsmisc.c, conflicted with the ANSI
  827. declaration.
  828.     - One of the SPARC compilers compiled the intersection computation
  829. in arc_either (gspath.c) incorrectly.
  830.     - The temporary file names created under OS/2 could exceed the 8.3
  831. length limit.
  832.  
  833. Interpreter
  834. -----------
  835.  
  836. Fixes bugs:
  837.     - The test files for the IJG library had been damaged by EOL
  838. conversion.
  839.     - The garbage collector didn't mark some of the most recently
  840. created names.
  841.     - The interpreter would sometimes report a typecheck instead of a
  842. stackunderflow.
  843.     - If aload didn't have enough room on the stack, it would report a
  844. rangecheck rather than a stackoverflow.
  845.     - zcontext wouldn't compile, because it hadn't been updated to the
  846. new GC interfaces.
  847.     - The definition of private_st_stream_proc_state in ifilter.h ended
  848. with a semicolon, which upset some compilers.
  849.     - load didn't check to make sure that the dictionaries it examined
  850. had read access.
  851.     - cvrs didn't handle negative numbers in radix 2 or 3 properly.
  852.     - The allocator could become confused if it was asked to allocate a
  853. large array.
  854.     - readline gave an ioerror rather than a rangecheck if it
  855. overflowed the string.
  856.     - The allocator didn't free packed arrays properly.
  857.     - The allocator's check for LIFO freeing of arrays was off by 1, so
  858. it never succeeded.
  859.     - The undercolor removal and black generation procedures weren't
  860. initialized properly.
  861.     - If the interpreter couldn't find gs_init.ps, it returned a random
  862. exit code.
  863.     - If an operator expected a procedure and didn't get one, it
  864. sometimes gave an invalidaccess rather than a typecheck.
  865.     - Unix file enumeration often did the wrong thing if there were
  866. directories in the pattern.
  867.     - The ASCIIHexDecode filter read an extra character after the
  868. terminating >.
  869.     - scalefont didn't fill in ScaleMatrix properly.
  870.     - The CCITTFaxEncode filter crashed if the width of the page wasn't
  871. a multiple of 8 bits.
  872.     - The error printing code used .languagelevel, which wasn't defined
  873. in Level 1 configurations.
  874.     - setpagedevice didn't pop its argument.
  875.     - Definitions in statusdict didn't change according to the current
  876. language level.
  877.     - Separation color spaces didn't allow strings as color space names.
  878.     - Due to a bug in chunk_locate_ptr, the garbage collector sometimes
  879. decided incorrectly that a pointer was pointing outside collectable space.
  880.     - (Many other garbage collector bugs were fixed.)
  881.  
  882. Implements additional Level 2 features:
  883.     - Garbage collection for strings.
  884.     - Expandable operand and dictionary stacks, and the ability to set
  885.     the maximum size of these stacks.
  886.     - Additional user and system parameters.  The following are dummies:
  887.     AccurateScreens, JobName, JobTimeout, WaitTimeout.
  888.     - Procedure-based filters usable with cvx/exec and token.
  889.     - Separation color spaces (always using the alternate space).
  890.     (These were theoretically implemented in version 2.6, but they were
  891.     never tested and were actually missing most of the implementation.)
  892.     - VMThreshold and VMReclaim for invoking GC automatically.
  893.  
  894. Adds a hook in iscan.c for parsing DSC comments.
  895.  
  896. Adds encoding and decoding filters for the BCP and TBCP protocols.  These
  897. are not fully implemented yet:
  898.     - The interrupt and status request characters are ignored on input,
  899.     and never generated on output;
  900.     - The TBCP encoder doesn't emit the start-of-protocol string;
  901.     - The TBCP decoder doesn't recognize the end-of-protocol string.
  902.  
  903. Factors out Type 1 font capability as a separate feature.
  904.  
  905. Changes the names of some files:
  906.     packed.h to ipacked.h;
  907.     bnum.h to ibnum.h.
  908.  
  909. Changes the name of the value.index member of a ref to value.boolval.
  910. (Internal change only.)
  911.  
  912. Library
  913. -------
  914.  
  915. Fixes bugs:
  916.     - The definition of RELOC_PTRS_BEGIN in gsstruct.h wouldn't compile
  917. properly with non-ANSI compilers.
  918.     - The JPEG library wouldn't compile properly with non-ANSI compilers.
  919. *    - The platform font machinery gave up too easily in some cases.
  920.     - CMYK devices needing halftoning converted the CMYK color to RGB.
  921.     - The debugging code in arc_add (gspath.c) didn't print the output
  922. values correctly.
  923.  
  924. Factors out Type 1 font capability as a separate feature.
  925.  
  926. Version 2.9.4-beta (2/19/94)
  927. ==================
  928.  
  929. Procedures
  930. ----------
  931.  
  932. Changes Ghostscript's path searching algorithm so that it does not
  933. automatically look in the current directory first.  (The former algorithm
  934. was more MS-DOS-like; the new one is more Unix-like.)  If you want to
  935. include the current directory, you must include '.' in the search path.
  936. THIS IS A NON-BACKWARD-COMPATIBLE CHANGE.
  937.  
  938. Adds two new resource types for genconf.c:
  939.     - -header filexxx.h adds #include "filexxx.h" to gconfig.h.
  940.     - -libpath dir adds dir to the list of library search paths.
  941.  
  942. Utilities
  943. ---------
  944.  
  945. Fixes bugs:
  946.     - impath.ps (used by bdftops) computed the starting X coordinate
  947. incorrectly, typically causing characters to be displaced slightly to the
  948. right.
  949.     - pstoppm.ps didn't handle local and global VM properly.
  950.  
  951. Adds a ps2ai.ps utility, contributed by a user, for converting arbitrary
  952. PostScript files into a form compatible with Adobe Illustrator.
  953.  
  954. Drivers
  955. -------
  956.  
  957. Adds new drivers:
  958.     - A user-contributed driver for Imagen Impress laser printers.
  959.     - A user-contributed driver for the DEC LA75plus printer.
  960.  
  961. Platforms
  962. ---------
  963.  
  964. Under OS/2, adds the ability to keep Ghostscript in memory for a
  965. specified number of minutes.
  966.  
  967. Adds support for Win32 and Win32s.
  968.  
  969. Changes the MS Windows platform font interface so that it does not attempt
  970. to render fonts at sizes smaller than 6 pixels.  Changes the X Windows
  971. interface, which already did this for 4-point and smaller fonts, to also
  972. use a lower limit of 6 pixels.  Also changes the X Windows platform font
  973. machinery so it does not render fonts at sizes larger than 36 pixels: at
  974. large sizes, Ghostscript does a perfectly good job, and some X font servers
  975. rasterize the entire font and lock up the entire window system while doing
  976. so.
  977.  
  978. Interpreter
  979. -----------
  980.  
  981. Fixes bugs:
  982.     - currentdash always returned a new array of reals, rather than the
  983. actual argument of setdash.
  984.     - Strings in binary object sequences read in as integers.
  985.     - Because of a bug in chunk_locate_ptr, some large objects didn't
  986. get freed properly.
  987.     - If an error occurred while processing an image, Ghostscript would
  988. attempt to free random blocks of storage.
  989.     - Input filters discarded trailing data, rather than filling it out
  990. with zeros.  (This is now fixed for ASCIIHexDecode and ASCII85Decode; it's
  991. not clear what other filters it should affect.)
  992.     - The ASCII85Encode filter produced garbage output for the final
  993. 1-4 bytes before EOD.
  994. *    - The TIFF output driver produced incorrect output for the second
  995. and subsequent pages if the output was being produced on multiple files.
  996. *    - The default handleerror did a 'stop', which was not correct.
  997.     - gpcheck.h converted all positive return codes to 0 if interrupt
  998. checking was enabled.
  999.     - Images with multiple data sources didn't work.
  1000.     - Images with 12-bit sample values didn't work.
  1001.     - Images with a file as the data source read additional data beyond
  1002. what was required.
  1003.     - 2 vmreclaim worked (pretty much), but 1 vmreclaim didn't.
  1004.     - If %lineedit was opened multiple times, characters from later
  1005. openings overwrote characters from earlier ones.
  1006.     - token returned garbage for the "remaining string" result when
  1007. reading from a string, if it actually read all of the string.  (New bug in
  1008. 2.9.2, probably.)
  1009.  
  1010. Implements additional Level 2 features:
  1011.     - DCTEncode and DCTDecode filters.
  1012.     - Filters with procedures as the data source or target.
  1013.     (Except for token and cvx/exec.)
  1014.     - Garbage collection for names.
  1015.  
  1016. Changes the error printout so that strings are always truncated at 200
  1017. characters.
  1018.  
  1019. For Level 2 systems, changes the initial setting of the object format
  1020. parameter from 0 to an appropriate non-zero value.
  1021.  
  1022. * Changes the .quit operator so that it takes two operands, an error object
  1023. and an error code; if the latter is negative, the interpreter returns this
  1024. as the error code, rather than e_Quit.
  1025.  
  1026. Makes StandardEncoding and ISOLatin1Encoding arrays, rather than packed
  1027. arrays, on large-memory systems, for compatibility with certain test
  1028. suites.  Changes .registerencoding to accept arrays as well as packed
  1029. arrays.
  1030.  
  1031. Library
  1032. -------
  1033.  
  1034. Fixes bugs:
  1035.     - Due to an error in cie_mult3, CIE-based colors were badly
  1036. mis-mapped.
  1037. *    - Very narrow (but not empty) rectangles would disappear.
  1038. *    - Small halftone cells could smash the next higher entry in the
  1039. halftone cache.
  1040.     - The orientation algorithm in gxstroke.c still interchanged
  1041. clockwise and counter-clockwise coordinate systems (after having been
  1042. "fixed" at least 3 times).
  1043.     - Stroking 1-pixel-wide lines shortened them, instead of
  1044. lengthening them, if non-butt caps were requested.
  1045.  
  1046. Refactors mem_mapped8_copy_mono because of limitations in the bcc32
  1047. compiler.
  1048.  
  1049. Version 2.9.3-beta (1/19/94)
  1050. ==================
  1051.  
  1052. This version was created for evaluation purposes for a few users who
  1053. needed Level 2 capability; it was never released to anyone else, even
  1054. beta testers.
  1055.  
  1056. Documentation
  1057. -------------
  1058.  
  1059. Fixes bugs:
  1060.     - The description of psview and xpsview was incorrect.
  1061.  
  1062. Procedures
  1063. ----------
  1064.  
  1065. Changes the installation directories for Unix and similar systems to put
  1066. Ghostscript data in $(datadir)/ghostscript/gs-NN.NN.NN rather than directly
  1067. in $(datadir)/ghostscript.  (Fonts still go in $(datadir)/ghostscript/fonts.)
  1068.  
  1069. Drivers
  1070. -------
  1071.  
  1072. Fixes bugs:
  1073.     - Some spaces were incorrectly replaced with tabs in the help
  1074. message in the 3B1 display driver.
  1075.     - The BMP driver wrote a spurious scan line at the beginning
  1076. of its output.
  1077.     - The monochrome PCX driver had the two palette elements
  1078. interchanged.
  1079.  
  1080. Adds new drivers:
  1081.     - A user-contributed driver for the Xerox XES printer format.  This
  1082. has a FSF copyright.
  1083.     - A user-contributed driver for the Epson AP3250 printer.  (This is
  1084. the same as the Stylus 800, with slightly different margins.)
  1085.     - A user-contributed driver for the DEC LA70 printer with some
  1086. algorithms for improving text at low resolutions.  This has a FSF
  1087. copyright.
  1088.     - A user-contributed driver for an intermediate-resolution mode
  1089. for 9-pin "Epson-compatible" printers.
  1090.  
  1091. Changes the name of the Stylus 800 driver from escp2 to st800.
  1092.  
  1093. Adds a compile-time flag to the Epson driver to cope with Panasonic 9-pin
  1094. printers, which sometimes have trouble mixing graphics and tabs.
  1095.  
  1096. Platforms
  1097. ---------
  1098.  
  1099. Fixes bugs:
  1100.     - The MS Windows driver (gp_mswin.c) referred to iodev.h rather
  1101. than gxiodev.h.
  1102.     - On Unix System V platforms, gp_unifs.c and gdevpipe.c were
  1103. incorrectly omitted from the link list.
  1104.     - (Some?) System V platforms don't have the S_ISDIR macro,
  1105. requiring a change in stat_.h.
  1106.     - The Unix `install' target didn't install gs_std_e.ps and
  1107. gs_iso_e.ps.
  1108.     - No MODULES.LIS file was provided for VMS.
  1109.  
  1110. Adds Desqview/X makefiles that actually work.
  1111.  
  1112. Documents the set of H-P-supplied patches needed to make H-P's
  1113. compilers process Ghostscript.
  1114.  
  1115. Changes the MS Windows driver so that if the user presses the Enter key
  1116. while the image window has the focus, the text window will be brought to
  1117. the top and made the active window.  This is useful when viewing a
  1118. multi-page document with Ghostscript.
  1119.  
  1120. Interpreter
  1121. -----------
  1122.  
  1123. Fixes bugs:
  1124.     - The definition of public_st_client_color() in gxccolor.h
  1125. included an extraneous semicolon.
  1126.     - The definition of private_st_AXD_state() in sfilter.h included an
  1127. extraneous semicolon.
  1128.     - saxx.c didn't include sfilter.h, which it needed for the
  1129. definition of private_st_AXD_state().
  1130.     - ialloc_struct failed to create a separate chunk if the structure
  1131. was very large.
  1132.     - setcolorspace didn't allocate the colorspace object in the same
  1133. VM space as the graphics state, causing problems when the colorspace was
  1134. freed.
  1135.     - In rare circumstances, currentfile could return an empty array
  1136. rather than a file.
  1137.     - Dictionary keys were always allocated in global VM.
  1138.     - If NOPLATFONTS was true, definefont didn't check whether the
  1139. dictionary was read-only before trying to insert an ExactSize key.
  1140.     - startjob could get an invalidaccess error, because serverdict was
  1141. allocated in global VM.
  1142.     - Using definefont with an already registered font created a
  1143. circular list structure.
  1144.     - If a PostScript procedure appeared as a CharString in a Type 1
  1145. font, it was always called with the character name, never the character
  1146. code.
  1147.     - The SubFileDecode filter didn't work with a non-empty EOD string
  1148. (went into an endless loop).  (Probably a new bug in 2.8.)
  1149.     - save/restore didn't properly restore the maxlength of a
  1150. dictionary, causing data to get smashed at random.  (New bug in 2.9.)
  1151.     - save didn't mark objects as old, so a nested restore had no
  1152. effect.  (New bug in 2.9.2.)
  1153.     - After returning from an OtherSubrs callback, op_type1_free
  1154. freed the saved interpreter state incorrectly.  (New bug in 2.7.)
  1155.     - Level 1 configurations didn't work because .makeoperator gave an
  1156. invalidaccess error.  (New bug in 2.9.2.)
  1157.     - ASCII85 string literals didn't work.  (Probably a new bug in 2.8.)
  1158.     - If the current global/local allocation mode was different at the
  1159. end of a file than at the beginning, an addressing fault could occur
  1160. (gs_unregister_root in gs_run_string).  (New bug in 2.9.2.)
  1161.     - After a setfileposition on a file open for reading,
  1162. fileposition would return an incorrect value, even though the stream
  1163. was actually repositioned properly.
  1164.  
  1165. Brings the dictionary unpacking code for the DCT filters into line with
  1166. Adobe Technical Note 5116, which describes the Picky parameter for
  1167. DCTDecode and the NoMarker, Resync, Blend, Picky, and Relax parameters for
  1168. DCTEncode.
  1169.  
  1170. Changes the .quit operator so that if given a negative argument, the
  1171. interpreter returns this as the error code, rather than e_Quit.
  1172.  
  1173. Changes the Ghostscript integer version number from 100P+10S+T to
  1174. 10000P+100S+T.
  1175.  
  1176. Changes the default halftone screen for high-resolution devices, both
  1177. black-and-white and color.
  1178.  
  1179. Library
  1180. -------
  1181.  
  1182. Fixes bugs:
  1183.     - The software floating multiply code used with USE_FPU=-1 only
  1184. worked on little-endian platforms.
  1185.     - Specifying a left side bearing to .type1addpath produced an
  1186. inappropriate offset.
  1187.  
  1188. Version 2.9.2-beta (1/2/94)
  1189. ==================
  1190.  
  1191. This version was distributed only to beta testers.  It adds a garbage
  1192. collector and full local and global VM support.  It is the first version
  1193. that sets languagelevel = 2, i.e., claims to be a Level 2 implementation.
  1194.  
  1195. Documentation
  1196. -------------
  1197.  
  1198. Fixes bugs:
  1199.     - make.doc still referred to use_* variables in gdevx.c, and
  1200. use.doc didn't explain the use* X resources.
  1201.  
  1202. Notes that -Olimit=1000 is needed to compile Ghostscript on AXP systems
  1203. under OSF/1 1.3.
  1204.  
  1205. Utilities
  1206. ---------
  1207.  
  1208. Fixes bugs:
  1209.     - viewgif.ps did not work with interlaced images.
  1210.     - font2c.ps omitted gsmemory.h from the #include list in compiled
  1211. fonts.
  1212.  
  1213. Drivers
  1214. -------
  1215.  
  1216. Fixes bugs:
  1217.     - The MS Windows driver hadn't been updated to work with the
  1218. new additions to the gx_device structure.
  1219.     - The BMP file driver wrote one scan line too many.
  1220.     - The cdj driver omitted an important cast to int in the error
  1221. diffusion code (FSdither macro).
  1222.  
  1223. Changes the SuperVGA drivers to recognize erasepage and reset the
  1224. color table, like the X driver.
  1225.  
  1226. Adds some fragmentary code to begin implementing the PostScript fax
  1227. extensions.
  1228.  
  1229. Platforms
  1230. ---------
  1231.  
  1232. Fixes bugs:
  1233.     - The procedure initializers for the MS Windows console I/O
  1234. were missing the new reset element.
  1235.     - The makefile entry in bcwin.mak used -fdev rather than -iodev.
  1236.     - The Borland C++ makefiles exceeded MS-DOS's line length limit if
  1237. the compiler files were in the standard Borland directory (BORLANDC).
  1238.     - Some procedures weren't declared with prototypes in gp_vms.c.
  1239.     - Some declarations had to be reordered to pacify the VAX compiler.
  1240.     - Under MS Windows, Ghostscript didn't automatically de-iconify the
  1241. text window to display messages on an error exit.
  1242.     - The Unix makefile rule for gconfig_.h used echogs rather than
  1243. ./echogs.
  1244.     - The Microsoft C makefile referred to an obsolete file gs.tr.
  1245.     - gp_unifs.c used strpbrk and strrchr, which some systems lack.
  1246.  
  1247. Updates the OS/2 code and documentation for compatibility with the current
  1248. Ghostscript version.
  1249.  
  1250. Fonts
  1251. -----
  1252.  
  1253. Fixes bugs:
  1254.     - The X11 .pfa fonts replaced their .gsf requirements in the
  1255. fontmap, but not distributed with the previous (beta) release.
  1256.  
  1257. Adds fontmaps appropriate for use with DEC Ultrix and OSF/1 systems.
  1258.  
  1259. Interpreter
  1260. -----------
  1261.  
  1262. Fixes bugs:
  1263.     - 4-value entries in the Metrics dictionary were interpreted with
  1264. the width and side bearing interchanged.
  1265.     - Objects large enough to require their own chunk were not freed
  1266. properly.
  1267.     - The GS_FONTPATH scanner didn't deal with the possibility that
  1268. opening a file might fail.
  1269.     - The interrupt and timeout errors incorrectly pushed an error
  1270. object on the operand stack.
  1271.     - imagemask gave an error if it was invoked with a dictionary
  1272. argument with a current color space with more than 1 parameter.
  1273.     - definefont insisted that a new font not have a FID entry.
  1274.     - Some places didn't cast char to byte when needed.
  1275.     - An extra element was left on the stack when substituting the
  1276. default font for a font whose file couldn't be found.
  1277.     - The CCITTFaxDecode filter didn't allow the dictionary to be
  1278. omitted.  (The Adobe documentation doesn't allow this, but Adobe
  1279. implementations do.)
  1280.     - When the input came from a pipe (`-') switch, opening a filter on
  1281. currentfile that required more than 1 input byte to make progress would
  1282. cause Ghostscript to hang (in sreadbuf).
  1283.     - The interpreter didn't call gs_set_lib_paths before executing a
  1284. compiled-in initialization file.
  1285.     - A stream could be closed more than once.  (New bug in 2.8.)
  1286.     - The LZW decoder produced incorrect output if a code string was
  1287. too long to fit into a single output buffer.  (New bug as of 2.8.)
  1288.  
  1289. Implements a special check in def to allow construction of systemdict,
  1290. which is stored in global VM but references dictionaries in local VM.
  1291.  
  1292. Implements additional Level 2 features:
  1293.     - %null% and %ram% IODevices.
  1294.     - startjob, exitserver.
  1295.     - Local and global VM (finish).
  1296.     - Garbage collection (for everything except names and strings).
  1297.  
  1298. Moves the procedures for selecting paper size from systemdict to userdict.
  1299.  
  1300. Sets languagelevel to 2 in Level 2 mode, since essentially all of
  1301. Level 2 is now implemented.
  1302.  
  1303. Factors out the Level 1 extended color facilities (CMYK color and
  1304. colorimage) as a separate configuration feature.
  1305.  
  1306. Adds some preliminary code to begin implementing the Adobe BCP and TBCP
  1307. communication protocols.
  1308.  
  1309. Changes the implementation of save and restore so that the bookkeeping
  1310. structures are allocated in the new area, not the old.  (This is an
  1311. internal change not visible at the PostScript level.)
  1312.  
  1313. Library
  1314. -------
  1315.  
  1316. Fixes bugs:
  1317.     - gdevprn used some preprocessor macros in formal argument
  1318. lists that ansi2knr couldn't handle.
  1319.     - pick_cell_size called gs_distance_transform with a 0 argument
  1320. that non-ANSI compilers didn't automatically promote to floating point.
  1321.     - gs_screen_init called hypot with integer arguments that
  1322. non-ANSI compilers didn't automatically promote to floating point.
  1323.     - Some places didn't cast char to byte when needed.
  1324.     - The vx/vy origin adjustment for WMode=1 wasn't implemented.
  1325.     - The pattern cache wasn't initialized properly.
  1326.     - Composite fonts didn't properly decode strings that started with
  1327. an escape sequence, which have a special (undocumented) decoding rule, and
  1328. also didn't properly decode strings with multiple consecutive escape
  1329. sequences.
  1330.  
  1331. Factors out the Level 1 extended color facilities (CMYK color and
  1332. colorimage) as a separate configuration feature.
  1333.  
  1334. Version 2.9.1-beta (12/7/93)
  1335. ==================
  1336.  
  1337. This version was distributed only to beta testers.
  1338.  
  1339. Utilities
  1340. ---------
  1341.  
  1342. Adds a viewgif.ps utility to view GIF files.  The current version does not
  1343. work with interlaced data, local color tables, or files containing more
  1344. than one image.
  1345.  
  1346. Interpreter
  1347. -----------
  1348.  
  1349. Fixes bugs:
  1350.     - putinterval and copy didn't do the right thing if the source and
  1351. destination were aliases for overlapping sections of the same array or
  1352. string.
  1353.     - The DCT filter stub didn't allow the dictionary to be omitted.
  1354. (The Adobe documentation doesn't allow this, but Adobe implementations
  1355. do.)
  1356.  
  1357. Adds an optional dictionary argument to the LZWDecode filter, containing
  1358. InitialCodeLength, FirstBitLowOrder, BlockData, and EarlyChange entries.
  1359. Setting these parameters appropriately allows reading (non-interlaced) GIF
  1360. data directly.
  1361.  
  1362. Library
  1363. -------
  1364.  
  1365. Fixes bugs:
  1366.     - setdash produced inverted output if the pattern had an odd
  1367. number of elements and the offset O had the property that L <= O mod
  1368. 2*L, where L was the sum of the pattern elements.
  1369.  
  1370. Version 2.9-beta (12/6/93)
  1371. ================
  1372.  
  1373. Like 2.7, this version was created to satisfy a contractual requirement,
  1374. and will never be distributed to anyone other than the other party to the
  1375. contract.
  1376.  
  1377. Documentation
  1378. -------------
  1379.  
  1380. Notes that Ghostscript runs on IBM PCs and compatibles under DR DOS
  1381. 6.0.
  1382.  
  1383. Notes that Ghostscript will run on IBM PCs and compatibles with
  1384. Hercules display cards if you redirect text output to a file.
  1385.  
  1386. Notes that the alternate DeskJet 500C driver (djet500c) does not work
  1387. on the 550C.
  1388.  
  1389. Gives a list of system-specific directories where Type 1 fonts are
  1390. likely to be installed, as a suggested setting for GS_FONTPATH.
  1391.  
  1392. Procedures
  1393. ----------
  1394.  
  1395. Changes the distribution script so that it stores all text files in the
  1396. main source archive with Unix end-of-line conventions, but with DOS
  1397. end-of-line conventions in the MS-DOS-specific archive.
  1398.  
  1399. Changes the MS-DOS, MS Windows, and OS/2 makefiles so that 486SX and 486DX
  1400. processors are different CPU_TYPEs.  (The former, designated by
  1401. CPU_TYPE=485, does not include an on-chip FPU.)
  1402.  
  1403. Adds a line to gs_init.ps which can be uncommented to select A4 as
  1404. the default paper size.
  1405.  
  1406. Adds a definable CFLAGS macro to the makefiles, allowing -DA4 to
  1407. select A4 as the default paper size.
  1408.  
  1409. Adds the H-P printer drivers to the standard Unix configurations.
  1410.  
  1411. Utilities
  1412. ---------
  1413.  
  1414. Fixes bugs:
  1415.     - If there were no unencoded characters, prfont.ps would get
  1416. an error.
  1417.  
  1418. Changes ansi2knr to accept a wider range of function declaration syntax,
  1419. and to not depend on any Ghostscript header files.
  1420.  
  1421. Drivers
  1422. -------
  1423.  
  1424. Fixes bugs:
  1425.     - Several drivers (DigiFax, Epson LQ-2550, NEC P6) didn't handle
  1426. A4 paper width.
  1427.     - The IBM ProPrinter wasn't being initialized properly.
  1428.     - The Epson driver didn't work properly with compilers that
  1429. insisted on 'char' being a signed type.
  1430.     - The Epson driver ignored its end_string argument, producing
  1431. incorrect end-of-page behavior on some printers.
  1432.  
  1433. Adds new drivers:
  1434.     - User-contributed drivers for Bellcore MGR (a window manager most
  1435. commonly used with OS-9) devices.
  1436.     - A user-contributed driver for the CIF file format.
  1437.     - A user-contributed driver for the HP 2563B line printer.
  1438.  
  1439. Changes the LaserJet 2p, 3, and 4 drivers so they set the initial position
  1440. to (0,0) rather than (0,0.25").  (I don't remember why it was the other
  1441. way.)
  1442.  
  1443. Implements the PageCount property in all drivers, not just printer
  1444. drivers.
  1445.  
  1446. Introduces a new gx_tile_bitmap type, and changes the tile_rectangle
  1447. device procedure to take it in place of gx_bitmap.  THIS IS A
  1448. NON-BACKWARD-COMPATIBLE CHANGE.  However, it only affects devices that
  1449. implement their own tile_rectangle procedures, of which there aren't very
  1450. many.
  1451.  
  1452. Platforms
  1453. ---------
  1454.  
  1455. Fixes bugs:
  1456.     - The VMS module lists referred to SDCTD and SDCTE instead of
  1457. SDCT.
  1458.     - The Unix install script tried to install the non-existent file
  1459. readme.doc.
  1460.     - Microsoft C does something bizarre with empty macro parameters,
  1461. which caused a problem with the gs_struct_type_... macros.
  1462.     - The Unix platforms didn't automatically handle the presence
  1463. or absence of <dirent.h>.
  1464.     - The DEC Alpha OSF/1 1.3 library lacks `const' in the prototype
  1465. for popen, which requires a workaround.
  1466.     - The DEC Alpha OSF/1 1.3 X Windows library uses `private' as a
  1467. member name.
  1468.  
  1469. Splits off gp_unifs.c, containing code common to "Unix-like" file systems.
  1470.  
  1471. Adds a user-contributed OS-9 platform.
  1472.  
  1473. Interpreter
  1474. -----------
  1475.  
  1476. Fixes bugs:
  1477.     - The currentfile cache wasn't updated properly if an executable
  1478. file appeared in the middle of a procedure.  In particular, eexec-encoded
  1479. .PFB fonts often didn't work.
  1480.     - There was an extraneous `goto top' in scfd.c.
  1481.     - An integer constant overflowed in iname.c.
  1482.     - -2147483648 (i.e., -1 << 31) was converted to a float.
  1483.     - eexec didn't skip the first 4 characters correctly if they were
  1484. split across a buffer boundary.
  1485.     - The font/matrix pair cache didn't properly free entries with only
  1486. an XUID that was being deallocated.
  1487.  
  1488. Implements additional Level 2 features:
  1489.     - Patterns, makepattern, setpattern.
  1490.     - IODevice resource, setdevparams, currentdevparams.
  1491.     - OutputDevice resource, setpagedevice, currentpagedevice.
  1492.     (Partially implemented.)
  1493.  
  1494. Adds a new type t_struct to handle miscellaneous types that are allocated
  1495. as objects and that the interpreter doesn't handle specially, and changes
  1496. condition, fontID, gstate, lock, and save types to use t_struct.  (This is
  1497. an internal change, not visible at the language level.)
  1498.  
  1499. Moves the maxlength of a dictionary to its own ref, eliminating the "size
  1500. of integer" hack.  (This is an internal change, not visible at the
  1501. language level.)
  1502.  
  1503. Adds the last OS error number to the error printout.
  1504.  
  1505. Removes the obsolete framedevice operator.
  1506.  
  1507. Implements resetfile (the only Level 1 operator not yet implemented!).
  1508.  
  1509. Changes the name of the getdevice operator to .getdevice.
  1510.  
  1511. Library
  1512. -------
  1513.  
  1514. Fixes bugs:
  1515.     - A couple of necessary casts from char * to byte * were omitted.
  1516.     - A Sun compiler required an extra cast to (void *) in the e1
  1517. macro in clip_rect_enum_ptrs in gxcpath.c.
  1518.     - The gx_dc_ procedures defined in gxdraw.c weren't marked as
  1519. 'private'.
  1520.     - The number of "on" pixels in a halftone cell sometimes varied by
  1521. 1 from cell to cell.
  1522.     - Mapping a gray level to CMYK didn't subtract it from 1 (to
  1523. produce the K component).
  1524. *    - charpath took hints into account.
  1525.  
  1526. Shuffles the order of some declarations to pacify the VMS C compiler.
  1527.  
  1528. Version 2.8-beta (11/10/93)
  1529. ================
  1530.  
  1531. This version was distributed only to beta testers.  It adds Type 0 font
  1532. support.  It also includes extensive redesign of streams (to eventually
  1533. support procedure streams) and device properties (to eventually support
  1534. get/setpagedevice and get/setdevparams).
  1535.  
  1536. Documentation
  1537. -------------
  1538.  
  1539. Notes the change in X11 foreground/background handling.
  1540.  
  1541. Changes README so it no longer claims that Ghostscript works with X11R3.
  1542.  
  1543. Notes (in devs.mak) that the cdjmono driver is the best one to use for the
  1544. DeskJet 510.
  1545.  
  1546. Procedures
  1547. ----------
  1548.  
  1549. Fixes bugs:
  1550.     - echogs wasn't always invoked with ./ on Unix systems.
  1551.  
  1552. Changes the file name unix-ansi.mak to unixansi.mak, so it can be created
  1553. on a MS-DOS system.
  1554.  
  1555. Adds a new "feature", ccinit.dev, which compiles and links the
  1556. initialization files (gs_*.ps) into the executable, just as ccfonts.dev
  1557. compiles and links fonts.  If ccinit and ccfonts are both selected, the
  1558. only external file needed at run time is Fontmap.  Note that you must have
  1559. a working version of Ghostscript already in order to create a version that
  1560. uses the ccinit feature, just as for ccfonts.
  1561.  
  1562. Utilities
  1563. ---------
  1564.  
  1565. Fixes bugs:
  1566.     - the ps2image utility didn't put a %! on the first line of the
  1567. output.
  1568.  
  1569. Drivers
  1570. -------
  1571.  
  1572. Fixes bugs:
  1573.     - The Hercules display driver didn't include definitions for
  1574. outport2 and PAGE_HEIGHT_INCHES, which it uses.
  1575.     - The BGI driver didn't call setactivepage or setvisualpage,
  1576. which it needs to do in general.
  1577.     - The Apple DMP driver declared dmp_print_page rather than
  1578. appledmp_print_page, causing a compilation error.
  1579.  
  1580. Changes the X11 driver so that it doesn't use the default foreground and
  1581. background colors: you must set foreground and background explicitly for
  1582. Ghostscript if you want them to be other than black and white
  1583. respectively.
  1584.  
  1585. Adds new user-contributed drivers for:
  1586.     - The StarJet 48 inkjet printer;
  1587.     - The Linux VGALIB display interface.
  1588.     - OS/2 Presentation Manager.
  1589.  
  1590. Changes the margins of the Epson driver to 0.2, 0.0, 0.0, 0.0, which
  1591. more accurately reflect the printer's capabilities.
  1592.  
  1593. Changes the get_props and put_props device procedures to take property
  1594. list "objects" with a procedural interface, rather than a data structure
  1595. interface.  THIS IS A NON-BACKWARD-COMPATIBLE CHANGE.  It affects all
  1596. get_props and put_props procedures.  Fortunately, there were only a few
  1597. devices that implemented their own get_props and put_props procedures (the
  1598. H-P color printers, and the three window systems -- X Windows, MS Windows,
  1599. and OS/2 PM).
  1600.  
  1601. Platforms
  1602. ---------
  1603.  
  1604. Fixes bugs:
  1605.     - The meaning of the -p switch for the Watcom compile-and-link
  1606. program was changed between Watcom C/386 versions 8.5 and 9.5, causing the
  1607. make process to malfunction.
  1608.     - The SCFTAB and SCFDTAB modules were omitted from the VMS link
  1609. list.
  1610.  
  1611. Adds user-contributed code for OS/2.
  1612.  
  1613. Removes the assumption that an 80486 CPU implies the presence of hardware
  1614. floating point, since the 486SX and Cyrix 486SLC don't have it.
  1615.  
  1616. Fonts
  1617. -----
  1618.  
  1619. Fixes bugs:
  1620. *    - The GS_FONTPATH scanner didn't recognize .PFB fonts beginning
  1621. with %!PS-AdobeFont.
  1622. *    - The GS_FONTPATH scanner often didn't recognize .PFB fonts at all.
  1623.     - Type 1 fonts always set the line join, line cap, and miter limit
  1624. to known values, rather than using the current values.  (Using the current
  1625. values doesn't make much sense, but it's apparently what the Adobe
  1626. implementations do.)
  1627.     - DISKFONTS didn't work, because of the change in the Ghostscript
  1628. fonts to do a systemdict begin/end (in version 2.7.1).
  1629.  
  1630. Interpreter
  1631. -----------
  1632.  
  1633. Fixes bugs:
  1634.     - == didn't produce exactly the same output as the Adobe
  1635. interpreters.  (Some automated debugging and testing programs care.)
  1636.     - The CCITTFaxEncode filter could get caught in an infinite loop,
  1637. because it failed to mask a byte datum when scanning for runs of black
  1638. pixels.
  1639.     - The write operator gave an error for values outside the range 0
  1640. to 255, rather than just using the low-order 8 bits.
  1641.     - Some applications call a statusdict procedure named
  1642. setresolution without checking first whether it is present; Ghostscript
  1643. didn't provide one.
  1644.     - Reading from a closed stream caused an error instead of
  1645. returning EOF.
  1646.     - Input streams didn't close automatically at EOF.
  1647.     - findfont was defined as an operator, not a procedure.
  1648.     - closefile on a closed file gave an error.  (It isn't obvious
  1649. that the Adobe documentation specifies that it shouldn't, but that's what
  1650. Adobe says they do.)
  1651.     - The LZWDecode filter didn't handle codes representing strings
  1652. longer than the buffer size correctly.
  1653.     - The LZWDecode filter only allowed 4095 codes to be used, rather
  1654. than 4096.
  1655.     - The rand operator produced an infinite string of zeros if
  1656. given 0 or 0x7fffffff as the seed.
  1657.     - When a CDevProc procedure was called, there was an extra
  1658. copy of the character name on the operand stack below the operands of
  1659. CDevProc.
  1660.  
  1661. Replaces all stream implementations with new ones designed to allow
  1662. interruption at arbitrary times.  ****** The 2-D case of CCITTFaxEncode
  1663. hasn't been converted (but it probably didn't work before, either).
  1664.  
  1665. Implements additional Level 2 features:
  1666.     - Type 0 (composite) fonts.
  1667.  
  1668. Adds an eexecEncode filter.
  1669.  
  1670. Implements setcolorscreen, which was accidentally omitted from 2.7.
  1671.  
  1672. Library
  1673. -------
  1674.  
  1675. Fixes bugs:
  1676. *    - In colorimage, if the color space of the image was different
  1677. from the current color space, and the first data values on a scan line
  1678. were zeros, the wrong color could result.
  1679.     - The new flatness testing algorithm could overflow, producing
  1680. straight lines or obvious polygons instead of curves.
  1681.     - Images could fail to display pixels after the first non-blank
  1682. pixel on a line if halftoned color was required.  (This bug was probably
  1683. introduced in 2.7.)
  1684.     - Interpolation between transfer map entries didn't work, because
  1685. of a rounding/truncation bug in frac2bits (bug introduced in 2.7.1.)
  1686.     - cshow did an extra grestore at the end.
  1687.  
  1688. * Implements a hack to slightly displace 1-bit-wide or -high images.  This
  1689. is necessary to work around a bug in TeX (or dvips?), which uses such
  1690. images to draw horizontal and vertical lines without positioning them to
  1691. ensure that they cover device pixel centers.
  1692.  
  1693. Adds support for composite fonts (no new client procedures).
  1694.  
  1695. Version 2.7.2-beta (10/11/93)
  1696. ==================
  1697.  
  1698. This version was distributed only to alpha testers.
  1699.  
  1700. Utilities
  1701. ---------
  1702.  
  1703. Fixes bugs:
  1704.     - prfont.ps didn't print unencoded characters.
  1705.  
  1706. Improves mergeini.ps to remove embedded comments.
  1707.  
  1708. Interpreter
  1709. -----------
  1710.  
  1711. Fixes bugs:
  1712.     - An error occurring within the scope of an internal .stopped
  1713. didn't pop the command and error name off the stack.
  1714. *    - The = and == procedures weren't re-entrant.
  1715.  
  1716. * Adds a .writecvs operator that does a cvs to an internal string followed
  1717. by a writestring.
  1718.  
  1719. Library
  1720. -------
  1721.  
  1722. Fixes bugs:
  1723.     - grestore freed the path and the clip path in an order that
  1724. was likely to lead to memory sandbars.
  1725.     - moveto + closepath didn't actually close the path.
  1726.     - moveto + reversepath produced an empty path (no moveto).
  1727.     - moveto + closepath + reversepath produced an extra lineto.
  1728.     - reversepath didn't set the current point to the end (i.e., the
  1729. former beginning) of the last subpath.
  1730.  
  1731. Adds a "planar" memory device.
  1732.  
  1733. Version 2.7.1-beta (10/4/93, not distributed to the public)
  1734. ==================
  1735.  
  1736. Like 2.7, this version was created to satisfy a contractual requirement,
  1737. and will never be distributed to anyone other than the other party to the
  1738. contract.
  1739.  
  1740. Documentation
  1741. -------------
  1742.  
  1743. Documents the GS_OPTIONS environment variable.
  1744.  
  1745. Adds a summary of all environment variables to the documentation
  1746. (use.doc).
  1747.  
  1748. Documents the existence of a third free viewer built on Ghostscript.
  1749.  
  1750. Utilities
  1751. ---------
  1752.  
  1753. Fixes bugs:
  1754.     - wrfont didn't wrap a systemdict begin / end around the body of
  1755. the font.
  1756.     - wrfont wrote out the Symbol and ZapfDingbats encodings in a way
  1757. that only worked if the encoding was known by name.
  1758.  
  1759. Changes bdftops to include an XUID if desired.
  1760.  
  1761. Changes bdftops so that it uses 'show' for unknown ligatures, rather than
  1762. executing the characters as subroutines; this makes such ligatures work
  1763. properly with xfonts.
  1764.  
  1765. Drivers
  1766. -------
  1767.  
  1768. Fixes bugs:
  1769.     - The PCL drivers sent a printer reset (<ESC>E) at the beginning
  1770. of every page, instead of only before the first page.
  1771.     - The PCX driver didn't round up the scan line width in the
  1772. header, even though it produced scan lines with the correct (rounded)
  1773. number of bytes.
  1774.  
  1775. Adds a new map_rgb_alpha_color procedure.  This is a backward-compatible
  1776. change; this procedure defaults to calling map_rgb_color.
  1777.  
  1778. Platforms
  1779. ---------
  1780.  
  1781. Fixes bugs:
  1782.     - On Unix platforms, the value of the TEMP environment variable
  1783. had to end with a '/'.
  1784.     - On MS-DOS systems, printer output to devices other than PRN
  1785. (specifically, LPTn) didn't put the device into binary mode.
  1786.  
  1787. Adds FPU_TYPE to the Unix makefiles, with a default value of 1.
  1788.  
  1789. Removes the mention of Xmu linking problems on the SunOS platform,
  1790. since the problem no longer exists.
  1791.  
  1792. Changes the order of X Windows libraries from Xt X11 Xext to Xt Xext X11.
  1793. This makes the OSF/1 linker happier.
  1794.  
  1795. Fonts
  1796. -----
  1797.  
  1798. Fixes bugs:
  1799.     - All the fonts originated by Aladdin, and the shareware fonts,
  1800. had UniqueIDs in the 4xxxxxx range, which is only supposed to be used for
  1801. limited-distribution fonts.
  1802. *    - When Ghostscript loaded a font, it pushed a scratch dictionary
  1803. on the dictionary stack, rather than userdict.  (Note that this fix also
  1804. requires fixing the fonts to include a protective systemdict begin /
  1805. end; see below.)
  1806. *    - When loading a font failed, Ghostscript didn't check the font
  1807. name against the default font name properly.
  1808.     - Ghostscript's own fonts didn't include a systemdict begin /
  1809. end to guard against redefinition of names used in the reading
  1810. procedures (e.g., index).
  1811. *    - When Ghostscript scanned a .PFB font to get the FontName, it
  1812. didn't skip over the 6-byte header, which could cause confusion or a
  1813. syntaxerror.
  1814.     - Loading a .PFB font that left extra information on the
  1815. operand stack didn't work.
  1816.  
  1817. Changes the ZapfDingbats font to use DingbatsEncoding rather than include
  1818. a copy of the encoding in itself, if DingbatsEncoding is known.  Changes
  1819. the Symbol font similarly.
  1820.  
  1821. Removes eexec encryption from the 4 URW fonts, so they will work with
  1822. DISKFONTS.
  1823.  
  1824. Adds shareware Hiragana and Katakana fonts (Calligraphic-Hiragana and
  1825. Calligraphic-Katakana, by Kevin Hartig).
  1826.  
  1827. Adds GS on the end of the family names of all of Aladdin's own converted
  1828. fonts.
  1829.  
  1830. Replaces many of the Hershey fonts with new ones (mostly Type 1) created
  1831. by Thomas Wolff, who added accents, accented characters, and other
  1832. non-alphabetics.  These too now have proper UniqueIDs.
  1833.  
  1834. Interpreter
  1835. -----------
  1836.  
  1837. Fixes bugs:
  1838. *    - imagemask interpreted the Decode array incorrectly (inverted).
  1839.     - Running out of memory when constructing a path incorrectly
  1840. signalled a limitcheck rather than a VMerror.
  1841.     - restore didn't purge uncached scaled fonts properly.
  1842.  
  1843. Adds alpha (opacity) to the graphics state, and setalpha and
  1844. currentalpha operators.
  1845.  
  1846. Redefines erasepage in terms of a new .fillpage operator that fills
  1847. the current page with the current color and then does a sync_output.
  1848.  
  1849. Redefines setdevice and putdeviceprops in terms of new .setdevice and
  1850. .putdeviceprops operators that return a boolean indicating whether the
  1851. page needs to be erased.  With this change, operators that erase the page
  1852. always call erasepage at the interpreter level rather than calling
  1853. gs_erasepage directly.
  1854.  
  1855. Library
  1856. -------
  1857.  
  1858. Fixes bugs:
  1859.     - The null device allowed its size to be reset.
  1860.     - clippath didn't establish a current point if the clipping
  1861. path was empty.
  1862. *    - The Type 1 font interpreter (gs_type1_interpret) flattened
  1863. curves even if it was being invoked for charpath.
  1864.     - Colored halftones usually didn't come out with the correct
  1865. phase, and had several other problems.
  1866.     - A show or charpath within a BuildChar procedure didn't work.
  1867.     - Accented characters composed with seac used the base
  1868. character width instead of the composed character width.  (The Adobe
  1869. documentation says these must be the same, but some commercial fonts
  1870. don't obey this.)
  1871.     - setcurrentpoint in the accent of a character composed with
  1872. seac didn't take the accent's displacement into account.
  1873.  
  1874. Adds an alpha (coverage) value to the graphics state, and
  1875. gs_setalpha/currentalpha procedures.  Currently Ghostscript just passes
  1876. the alpha value to the driver; it doesn't attempt to emulate alpha
  1877. handling if the driver doesn't support it.
  1878.  
  1879. Redefines gs_erasepage to call gs_fillpage.
  1880.  
  1881. Bypasses the fill code if the clipping box is empty.  This makes a big
  1882. difference for stringwidth, and doesn't hurt anything else.
  1883.  
  1884. Changes frac_1 from 0x7fff to 0x7ff8.  This allows exact representation of
  1885. practically all useful fractions, since this number (32760) is
  1886. 2*2*2*3*3*5*7*13.
  1887.  
  1888. Changes float to double in several matrix routines for better accuracy.
  1889.  
  1890. Adds new device properties to implement the deviceinfo operator:
  1891. Colors, GrayValues, RedValues, GreenValues, BlueValues, ColorValues.
  1892. Also adds HWBitsPerPixel and HWColorMap.
  1893.  
  1894. Changes the sorting algorithm for halftones to use qsort instead of
  1895. special code.
  1896.  
  1897. Changes the Type 1 interpreter so that it uses the current point, rather
  1898. than (0,0), as the character origin.
  1899.  
  1900. Version 2.7-beta (9/20/93, not distributed to the public)
  1901. ================
  1902.  
  1903. This is the first of a series of beta-only versions planned for release
  1904. between 2.6.n and 3.0.  This version, in particular, was created to
  1905. satisfy a contractual requirement, and will never be distributed to anyone
  1906. other than the other party to the contract.
  1907.  
  1908. Documentation
  1909. -------------
  1910.  
  1911. Fixes bugs:
  1912.     - The "HP XLFD extensions" to X11R5 are not specific to H-P
  1913. platforms.
  1914.     - The configuration generation script used rm rather than rm -f.
  1915.     - gs.1 was installed in $(docdir) rather than $(mandir);
  1916. $(mandir) wasn't defined.
  1917.     - ansi2knr.1 was installed in $(docdir), which was
  1918. inappropriate because ansi2knr itself wasn't installed anywhere.
  1919.  
  1920. Moves documentation for versions 2.4.x and 2.5.x to history.doc.
  1921.  
  1922. Moves the documentation on how to add devices to the configuration
  1923. from devs.mak to make.doc.
  1924.  
  1925. Changes the name of readme.doc to current.doc, since the presence of
  1926. two "readme" files was confusing to users.
  1927.  
  1928. Documents how to use the Microsoft Windows PostScript printer driver
  1929. to convert TrueType fonts to Type 1 fonts embedded in the document.
  1930.  
  1931. Corrects several errors in the documentation of the get_bits driver
  1932. procedure.
  1933.  
  1934. Documents the fact that X11R3 is no longer supported.
  1935.  
  1936. Removes the last references to "Ghostscript" from the comments in the
  1937. gs_*.ps files.  The only remaining reference, other than the boilerplate
  1938. comments at the beginning of each file, is in the message at the end of
  1939. gs_init.ps.
  1940.  
  1941. Documents the use of WMAKEL rather than WMAKE with the Watcom compiler.
  1942.  
  1943. Procedures
  1944. ----------
  1945.  
  1946. Fixes bugs:
  1947. *    - The Unix install script used gs rather than $(GS) as the name of
  1948. the executable.
  1949. *    - The Unix install script didn't copy gs_dbt_e.ps to $(gsdatadir).
  1950.     - genconf.c used ps2 as a variable name; ps2 is a predefined
  1951. preprocessor symbol in the VSC compiler used by IBM.
  1952.     - @-expansion didn't interact properly with -- and -+.
  1953.     - The Unix install script didn't copy COPYING to $(docdir),
  1954. and copied README to $(gsdatadir) rather than $(docdir).
  1955.     - ps2ascii used /bin/sh -f, which is an incorrect flag.
  1956.  
  1957. Removes all uses and mentions of USG (a now-obsolete GNU convention)
  1958. as a synonym for SYSV.
  1959.  
  1960. Removes filter.dev and dps.dev from FEATURE_DEVS if level2.dev is
  1961. included, since they don't add anything beyond level2.dev.
  1962.  
  1963. Changes the ccgs script to explictly remove the old .o file before
  1964. doing the mv, for the benefit of people who have changed mv to prompt
  1965. before overwriting.  Changes the configuration script to use rm -f
  1966. for the same reason.
  1967.  
  1968. Changes the -Z switch so an empty list of options does nothing, rather
  1969. than turning on all options.
  1970.  
  1971. Adds a -@ switch which is like -- and -+ except that it does
  1972. @-expansion of arguments.
  1973.  
  1974. Changes genconf so it takes patterns from the command line that describe
  1975. how to write the linker control files, rather than having the patterns
  1976. built in.
  1977.  
  1978. Changes -d and -D so that if no value is supplied, the default is
  1979. true rather than null.
  1980.  
  1981. Utilities
  1982. ---------
  1983.  
  1984. Fixes bugs:
  1985. *    - The ps2ascii script still referenced ps2ascii.ps under its
  1986. old name gs_2asc.ps.
  1987. *    - ps2image.ps had a 'pop' missing in the written-out
  1988. definition of 'max' in the boilerplate code it put at the beginning
  1989. of compressed files.
  1990. *    - ps2image.ps got a typecheck if a scan line had no repeated
  1991. data in it anywhere.
  1992.     - wrfont.ps didn't handle CharStrings or Subrs that weren't
  1993. strings.
  1994.     - mergeini.ps produced an init file that incorrectly
  1995. attempted to load the Symbol and Dingbats encodings dynamically.
  1996.  
  1997. Removes the gsview.bat file, since it was confusingly named and not
  1998. generally useful.
  1999.  
  2000. Changes bdftops back to using encrypted CharStrings, for compatibility
  2001. with Adobe interpreters, but also changes lenIV to 0, to save a little
  2002. more space.
  2003.  
  2004. Changes the traceop utility so it makes traced operators appear to be
  2005. operators, and so it will replace a definition in systemdict if explicitly
  2006. requested to do so and systemdict is writable.
  2007.  
  2008. Adds a printafm utility for printing the metrics of fonts in AFM format.
  2009.  
  2010. Drivers
  2011. -------
  2012.  
  2013. Fixes bugs:
  2014.     - The cdj driver was missing a few type casts that were needed to
  2015. satisfy pedantic compilers.
  2016.     - For banded devices, many of the non-displaying target routines
  2017. were getting called with the original device as the first argument, not
  2018. the target device.  (This didn't make any difference in practice, because
  2019. gdev_prn_open explicitly copied the non-rendering procedures back into the
  2020. procedure vector.)
  2021. *    - The X driver didn't catch and discard bogus errors on
  2022. XFreeColors, which faulty servers generate.
  2023. *    - The X driver gave up on color allocation too easily.
  2024. *    - The X driver dynamic color table size could become negative.
  2025. *    - x_lookup_font could return platform fonts of very small sizes,
  2026. which have very inaccurate metrics.
  2027. *    - The ESCP/2 driver was incorrectly named gdevescp2 in devs.mak.
  2028.     - The Apple DMP driver used #if 0 / #endif instead of comment
  2029. brackets, and was incorrectly named "dmp" instead of "appledmp" in
  2030. the source code.
  2031. *    - The X driver didn't free dynamic colors at the start of each page.
  2032. *    - The X driver didn't bind foreground/background defaults tightly.
  2033. *    - The X driver didn't check for GHOSTVIEW_COLORS properly.
  2034. *    - The X driver freed too many colors if an allocation request failed.
  2035. *    - The X driver didn't check return value of gs_malloc for being NULL.
  2036. *    - The DeskJet/LaserJet driver used an incorrect command for
  2037. end-of-page.
  2038. *    - The DeskJet/LaserJet driver incorrectly reset the printer at the
  2039. beginning of every page.
  2040. *    - The PCX driver put an old version number in the header, and
  2041. didn't pad scan lines to an even number of bytes.
  2042.     - The BMP driver used a variable named `quad', which is a
  2043. reserved word on some platforms.
  2044. *    - The TIFF driver didn't handle A4 or B4 size paper correctly.
  2045. *    - The X11 driver incorrectly demanded the Xmu library, which was
  2046. not needed and which caused link errors on some versions of SunOS.
  2047. *    - X11 font matching scheme was too loose, causing overlaps and
  2048. other problems.
  2049. *    - X11 Font Extensions (rotated and mirrored fonts) did not work
  2050. properly on NCD terminals.
  2051. *    - When freeing the rgb cube/gray ramp, the parameters to gs_free()
  2052. did not exactly match the parameters to gs_malloc().
  2053. *    - Ghostscript failed to warn the user when it could not allocate
  2054. the original color cube/gray ramp and dropped back to a smaller
  2055. cube/ramp, or from color to mono.
  2056. *    - x_release could cause Ghostscript to fail if a font was freed
  2057. after the device was closed.
  2058.     - The X driver continued to ask the server for colors even after a
  2059. request failed, causing colored images to display very slowly.
  2060.  
  2061. * Adds a pcxgray driver to provide 8-bit gray scale output in PCX format.
  2062.  
  2063. Adds a pcx24b driver to provide 24-bit RGB color PCX output.
  2064.  
  2065. * Adds a LaserJet 4 driver.
  2066.  
  2067. Adds a user-contributed driver for the DEC LA70 (very similar to the LA75).
  2068.  
  2069. Substantially improves the performance of the PxM drivers by eliminating
  2070. an unnecessary copying step and by writing each scan line with a single
  2071. fwrite when possible.
  2072.  
  2073. Moves the gray-scale and 24-bit RGB device color mapping routines to
  2074. gxcmap.c from gdevpcx.c and (nowhere).
  2075.  
  2076. Allows window granularities smaller than 64K in the VESA driver.
  2077.  
  2078. Changes the LaserJet margins again.
  2079.  
  2080. Platforms
  2081. ---------
  2082.  
  2083. Fixes bugs:
  2084.     - Platforms where stat doesn't return a st_blocks value
  2085. computed the block count wrong.
  2086.     - In gp_vms.c, the call on SYS$FILESCAN needed two uint *s
  2087. rather than a long * and a struct *.
  2088. *    - The VMS script files referenced IBSCAN instead of ISCAN2,
  2089. and omitted GDEVXXF.
  2090. *    - The UUENCODEd icons for the MS Windows platform were omitted
  2091. from the fileset.
  2092. *    - On MS-DOS systems, filenameforall didn't interpret * alone
  2093. as a pattern matching all files.
  2094.  
  2095. Adds wildcard matching capability to filenameforall under Unix.
  2096.  
  2097. Removes gp_file_status from the platform interface, since all
  2098. platforms provide identical stat calls in the C library.
  2099.  
  2100. Adds DesqView/X (using djgcc and go32) as a platform.
  2101.  
  2102. Removes the S3 driver from the standard PC configurations.
  2103.  
  2104. Adds documentation for compiling Ghostscript on the Intergraph Clipper.
  2105.  
  2106. Updates the documentation to add a better list of X Windows font
  2107. names for the Sun platform.
  2108.  
  2109. Fonts
  2110. -----
  2111.  
  2112. Creates an external file (gs_dbt_e.ps) with the ZapfDingbats encoding
  2113. (actually in 2.6.1, but not documented there).
  2114.  
  2115. Changes the names of the Cyrillic fonts to Shareware-Cyrillic-Regular
  2116. and Shareware-Cyrillic-Italic, keeping Cyrillic, Cyrillic-Regular,
  2117. and Cyrillic-Italic as aliases.
  2118.  
  2119. * Removes the requirement that the FontName in the font file be the same
  2120. as the name in Fontmap.  (This requirement led to the need for aliases,
  2121. and was extremely confusing to users.)
  2122.  
  2123. * Adds a GS_FONTPATH environment variable containing a list of directories
  2124. that should be scanned automatically for fonts.
  2125.  
  2126. * Gets rid of the Ugly font, and changes the default to the IBM Courier
  2127. font, which is freely distributable.
  2128.  
  2129. Interpreter
  2130. -----------
  2131.  
  2132. Fixes bugs:
  2133.     - cvs didn't check for stack underflow.
  2134. *    - zht2.c didn't include alloc.h.
  2135. *    - execstackoverflow cleared the e-stack instead of just
  2136. cutting it back.
  2137.     - if and ifelse incorrectly reported typecheck instead of
  2138. stackunderflow.
  2139.     - Copying a dictionary could alter some items even if a later
  2140. item causes an invalidaccess error because of an attempted store of a
  2141. local object into global VM.
  2142.     - bitshift and cvrs assumed that longs occupied 32 bits.
  2143. *    - exitserver didn't check the password, and always succeeded.
  2144.     - Font loading didn't suppress all output messages if QUIET
  2145. was set.
  2146. *    - The interpreter incorrectly pushed its exit procedure on
  2147. the e-stack if it was called again after an interrupt.
  2148. *    - The interpreter didn't treat timeout like interrupt in
  2149. terms of re-executing the current operation.
  2150. *    - `show' operators popped their operands before they were
  2151. sure they wouldn't be interrupted.
  2152. *    - rotate with a matrix operand didn't check for multiples of
  2153. 90 degrees.
  2154.     - In the system name table, ge was misspelled eg, and
  2155. pathforall was misspelled pathfoall.
  2156. *    - file_close_file attempted to free the buffer even if it was an
  2157. externally supplied string (specifically, the argument of gs_run_string).
  2158.     - setprintername (in gs_statd.ps) set printername rather than
  2159. .printername.
  2160.  
  2161. Implements additional Level 2 features:
  2162.     - Indexed color space with lookup procedure.
  2163.     - sethalftone, except for the transfer function override,
  2164.     and currenthalftone.
  2165.  
  2166. Implements OtherSubrs for indices greater than 3 (required for
  2167. MultiMaster fonts).
  2168.  
  2169. Implements black generation and undercolor removal.
  2170.  
  2171. Changes `store' from a C procedure to a PostScript procedure.
  2172.  
  2173. Changes idiv back so it requires integer operands, per the Adobe
  2174. documentation but not per some old Adobe interpreters.
  2175.  
  2176. * Adds many new paper sizes to gs_statd.ps.  It now includes ISO a0-a10
  2177. and b0-b10, and CAD sizes archA-archE.
  2178.  
  2179. Implements `status' for non-%os% files.  (This is currently a no-op,
  2180. but the framework is there.)
  2181.  
  2182. Changes the error handler so it normally uses = rather than == to print
  2183. the operand stack, to avoid recursive errors.
  2184.  
  2185. * Adds time slicing capability to the interpreter.
  2186.  
  2187. Implements setcolorscreen/currentcolorscreen.
  2188.  
  2189. Library
  2190. -------
  2191.  
  2192. Fixes bugs:
  2193. *    - Rectangles with vertices specified in clockwise order were
  2194. drawn as 0-width lines.
  2195. *    - The string matching function reported that 'abcdefg'
  2196. matched the pattern 'abcde'.
  2197. *    - The bounding box of non-rectangular clipping paths was not
  2198. being marked as valid, so cached characters would simply get
  2199. discarded as being outside the bounding box.
  2200.     - erasepage filled the page with the device's white color,
  2201. not with gray level 1 passed through the transfer function.
  2202. *    - Colors with equal R/G/B or C/M/Y components were rendered
  2203. incorrectly if the 3 or 4 transfer functions were not all the same.
  2204. *    - Because of a bug in rc_unshare, using CIE color would give
  2205. random errors (such as /invalidaccess in --for--).
  2206. *    - setbbox didn't round the coordinates properly, which could
  2207. cause erroneous rangecheck errors with coordinates on the edge of the
  2208. box.
  2209. *    - Color halftones "flipped over" at the 50% point, inverting
  2210. foreground and background.
  2211.     - Quite a few places assumed that longs occupied 32 bits.
  2212. *    - kshow passed an incorrect c1 value to the procedure.
  2213.     - The debugging code in update_x_list in gxfill.c didn't take
  2214. into account the possibility that the active line at x_first might be
  2215. deleted.
  2216.     - gx_image_cached_char called the xfont render_char procedure an
  2217. extra time if it failed with required=0 and succeeded with required=1.
  2218. (This was just a small inefficiency, not a logic bug.)
  2219.     - Non-rectangular clipping regions weren't computed correctly,
  2220. because accum_add_rect didn't handle overlapping rectangles.
  2221.     - Drivers didn't report file system errors (such as file system
  2222. full) as an ioerror.
  2223. *    - setdevice didn't reset the charpath and setcachedevice flags.
  2224.     - The Zortech compiler produced wrong code for the uid_equal
  2225. macro; uid_equal is now a procedure.
  2226.  
  2227. Passes OtherSubrs arguments back to the caller correctly for indices
  2228. greater than 3.
  2229.  
  2230. Implements black generation and undercolor removal.
  2231.  
  2232. Removes gdev_mem_ensure_byte_order, which was no longer used or useful.
  2233.  
  2234. Removes gstdev.c (device tracing), since it hasn't been used in a
  2235. long time and is of little value given a reasonable debugger.
  2236.  
  2237. Changes the interface to the xfont char_metrics and render_char
  2238. procedures to allow them to return 1.
  2239.  
  2240. Changes 32-bit memory devices so they use CMYK color mapping rather
  2241. than RGB mapping with an unused byte.
  2242.  
  2243. Implements gs_setcolorscreen/currentcolorscreen.
  2244.  
  2245. Implements Level 2 halftones, except for the transfer function override.
  2246.  
  2247. Implements a hack to make zero-width rectangles display as one pixel wide,
  2248. to work around a bug in the Microsoft Windows PostScript driver.
  2249. Currently the hack only works for vertical lines, not horizontal ones.
  2250.  
  2251. Version 2.6.1 (5/28/93)
  2252. =============
  2253.  
  2254. This is primarily a bug-fix release for 2.6, with a couple of minor
  2255. additions.
  2256.  
  2257. Documentation
  2258. -------------
  2259.  
  2260. Adds proper `man' pages ansi2knr.1 and gs.1.
  2261.  
  2262. Procedures
  2263. ----------
  2264.  
  2265. Fixes bugs:
  2266.     - The Unix makefile produced an incorrect linker command if
  2267. EXTRALIBS was not empty.
  2268.     - The Unix install commands didn't copy devices.doc,
  2269. ps2epsi.doc, and xfonts.doc to the documentation directory.
  2270.     - echogs.c didn't include <sys/types.h>, which is needed for
  2271. time_t on some systems.
  2272.     - malloc_.h used <malloc.h> rather than <stdlib.h> on
  2273. NeXTStep systems.
  2274.  
  2275. Changes the configuration procedure to use a C program rather than
  2276. complex shell scripts.
  2277.  
  2278. Utilities
  2279. ---------
  2280.  
  2281. Fixes bugs:
  2282.     - The boilerplate produced by ps2image used the 'max'
  2283. operator, which is not a standard PostScript operator.
  2284.     - The winmaps.ps utility had 'floring' instead of 'florin' in
  2285. the OEMEncoding table.
  2286.     - quit.ps was omitted from the PC distribution.
  2287.  
  2288. Changes the name of the dicttomark procedure to .dicttomark.
  2289.  
  2290. Renames gs_2asc.ps as ps2ascii.ps, so it matches the names of the
  2291. script files.
  2292.  
  2293. Drivers
  2294. -------
  2295.  
  2296. Fixes bugs:
  2297.     - The pbmraw driver was writing out RGG instead of RGB values.
  2298.     - The X11 driver used NULL in a place where it should have
  2299. used None.
  2300.     - For multi-file output, the GIF driver didn't write a header
  2301. at the beginning of each file.
  2302.     - The Epson driver didn't honor the -A4 compilation switch,
  2303. didn't put (0,0) at the physical corner of the page, and was too
  2304. liberal about using tabs instead of spaces.
  2305.  
  2306. Replaces the color handling algorithms in the X Windows driver with
  2307. new, much better ones.
  2308.  
  2309. Makes the PC display drivers recognize the -A4 compilation switch,
  2310. like the printer drivers.
  2311.  
  2312. Adds new user-contributed drivers:
  2313.     - A driver for Epson printers that use the ESC/P 2 control
  2314. language, such as the Stylus 800.
  2315.     - A driver for the Apple Dot Matrix Printer and Imagewriter.
  2316.  
  2317. Adds a new get_xfont_device driver procedure.  This is a
  2318. backward-compatible change, since there is a sensible default.
  2319.  
  2320. Platforms
  2321. ---------
  2322.  
  2323. Fixes bugs:
  2324.     - On VMS, gconfig.h didn't have #include "gsconfig.h" as its
  2325. first line.
  2326.     - gconfig.c compiled incorrectly on the RS/6000 because the
  2327. compiler evaluated a constant of the form (x<<y)+z incorrectly.
  2328.     - Quite a few files that used the mem... functions didn't
  2329. include memory_.h, which caused trouble on some bsd4.2 systems.
  2330.     - The definition of zfont_char_xglyph confused one of the AIX
  2331. compilers.
  2332.     - On VMS, DEC C allows extra arguments for fopen, but gcc doesn't.
  2333.     - On the MS Windows platform, 2.6 used gdevwddb rather than
  2334. gdevwdib; the latter is almost always faster.
  2335.     - The PC .zip files didn't include the Windows .ICO and .RES
  2336. files in either GSEXE.ZIP or GSFILES.ZIP.
  2337.  
  2338. On PC platforms, adds an option (FPU_TYPE=-1) to optimize for
  2339. machines lacking a floating point processor.
  2340.  
  2341. Fonts
  2342. -----
  2343.  
  2344. Adds 4 new fonts contributed by URW.  These have a URW copyright and
  2345. are governed by the GNU License.
  2346.  
  2347. Documents the fact that font names in Fontmap can be strings, not
  2348. only names.
  2349.  
  2350. Adds DingbatsEncoding as a predefined encoding (in addition to
  2351. Standard, ISOLatin1, and Symbol).
  2352.  
  2353. Interpreter
  2354. -----------
  2355.  
  2356. Fixes bugs:
  2357.     - memchr (used in zfile.c) isn't available on all platforms.
  2358.     - languagelevel was defined as an operator rather than an
  2359. integer.
  2360.     - iccfont.c referred to name_StandardEncoding instead of
  2361. #include'ing font.h and referring just to StandardEncoding.
  2362.     - The CCITTFaxDecode filter didn't work on 32- (or 64-) bit
  2363. machines, because of a bug in more_bits().
  2364.     - The structures recording an allocation within the scope of
  2365. a save could get allocated unnecessarily, because they weren't
  2366. properly marked as free when an array was freed.
  2367.  
  2368. Renames the following Ghostscript-specific operators by adding a '.'
  2369. at the front: makeoperator, setdebug, setmaxlength, stringmatch,
  2370. type1decrypt, type1encrypt.
  2371.  
  2372. Adds a real implementation of glyphshow.
  2373.  
  2374. Library
  2375. -------
  2376.  
  2377. Fixes bugs:
  2378.     - Discarding fractional character coordinates in the Type 1
  2379. rasterizer led to some rendering anomalies (e.g., characters 1 pixel
  2380. too high).
  2381.     - If a font had a non-standard encoding (i.e., not
  2382. StandardEncoding, ISOLatin1Encoding, or SymbolEncoding), Ghostscript
  2383. would never invoke the platform font code.
  2384.     - The RGB to HSB color conversion algorithms produced
  2385. nonsensical values.
  2386.     - struct cached_char_s was defined redundantly in gxcdir.h,
  2387. causing compilation problems on some systems.
  2388.     - 32-bit color devices didn't work properly on little-endian
  2389. machines (arrange_bytes in gdevmem2 was wrong).
  2390.     - The scaled font cache could confuse two fonts with the same
  2391. UniqueID and different Encodings.
  2392.     - Under many common circumstances (first use of a character
  2393. was with stringwidth, the font was renamed, the font encoding was
  2394. changed), xfonts would not be used.
  2395.  
  2396. Adds gs_glyphshow.
  2397.  
  2398. Version 2.6 (5/9/93)
  2399. ===========
  2400.  
  2401. The main new feature in this release is the ability to use platform
  2402. fonts.  It also adds many more Level 2 PostScript facilities.
  2403.  
  2404. Documentation
  2405. -------------
  2406.  
  2407. Corrects some errors in the documentation of the makeimagedevice operator.
  2408.  
  2409. Adds operand and result types to the comments at the beginning of all the
  2410. operators.
  2411.  
  2412. Adds new sections on installation in use.doc.
  2413.  
  2414. Reinstates history.doc as a repository for old and no longer interesting
  2415. history information.
  2416.  
  2417. Adds a new file, devices.doc, with documentation for specific devices.
  2418.  
  2419. Points out that font2c must be run with a Fontmap that includes the fonts
  2420. being converted, and that its arguments must be quoted with "" on VMS
  2421. systems.
  2422.  
  2423. Notes that the font name in the Fontmap must be the same as the FontName
  2424. in the font.
  2425.  
  2426. Adds a list of the Level 2 facilities not provided by Ghostscript.
  2427.  
  2428. Identifies bug-ghostscript@prep.ai.mit.edu as an alias for the
  2429. gnu.ghostscript.bug newsgroup.
  2430.  
  2431. Points out explicitly that -sOutputFile=- sends output to stdout, and
  2432. requires using the -q switch.
  2433.  
  2434. Documents the use of tar_cat to construct the Unix makefiles.
  2435.  
  2436. Adds a new file, xfonts.doc, that describes the external font interface.
  2437.  
  2438. Documents the fact that drivers must use gs_malloc and gs_free rather than
  2439. malloc and free.
  2440.  
  2441. Documents the *.sh (shell script) files.
  2442.  
  2443. Adds brief documentation on some additional development tool .ps files.
  2444.  
  2445. Documents the TEMP and GS_OPTIONS environment variable.
  2446.  
  2447. Points out the need to run Windows in 386 Enhanced mode on machines
  2448. that have less than 6 Mb of RAM.
  2449.  
  2450. Consolidates documentation on compiler switches in make.doc (some of
  2451. it had been in the unix*.mak files).
  2452.  
  2453. Procedures
  2454. ----------
  2455.  
  2456. Fixes bugs:
  2457.     - \'s in arguments following -- were doubled.
  2458.  
  2459. Includes the full set of filters automatically if the level2 feature
  2460. is selected.
  2461.  
  2462. Extends DEVICE_DEVS... up to DEVS9.  Adds DEVICE_DEVS1 as well.
  2463.  
  2464. Renames turboc.mak and tbcplus.mak as tc.mak and bc.mak.
  2465.  
  2466. Makes @-files use the library path (GS_LIB, -I).
  2467.  
  2468. Changed the Unix install script to use install <file> <destfile>
  2469. rather than install <file> <directory>.
  2470.  
  2471. Adds a GS_OPTIONS environment variable that acts like an implicit @-file
  2472. at the beginning of the command line (i.e., may contain switches and
  2473. initialization files).
  2474.  
  2475. Renames sym__enc.ps as gs_sym_e.ps.
  2476.  
  2477. Adds a user-contributed shell script for using Ghostscript with an
  2478. H-P printer spooler.
  2479.  
  2480. Adds level1.ps to the set of installed utility files.
  2481.  
  2482. Extends the TEMP environment variable (the directory for scratch
  2483. files) to work on Unix as well as MS-DOS.
  2484.  
  2485. Changes the MS Windows makefile to generate gswin.exe rather than
  2486. gs.exe, and the Watcom makefile to generate gs386.exe.
  2487.  
  2488. Moves the "product" string from gs_init.ps to iinit.c.
  2489.  
  2490. Adds a GS macro to the makefiles, to allow choosing the name of the
  2491. executable.
  2492.  
  2493. Utilities
  2494. ---------
  2495.  
  2496. Fixes bugs:
  2497. *    - font2c did the wrong thing (still) for fonts that didn't
  2498. use StandardEncoding, ISOLatin1Encoding, or SymbolEncoding.
  2499. *    - impath.ps had a fatal bug (wrong operand order for
  2500. charstack_write) that caused bdftops to fail.
  2501.     - gslp didn't wrap or truncate lines.
  2502.     - gslp didn't handle tabs in a second or subsequent column
  2503. properly.
  2504.     - The definition of ashow in gs_2asc.ps incorrectly undid the
  2505. increment following the last character.
  2506.     - The definition of awidthshow in gs_2asc.ps failed to pop
  2507. two entries from the stack, and also tested the character against the
  2508. wrong value.
  2509.  
  2510. Adds a shell script (sysvlp.sh) that interfaces Ghostscript with the
  2511. System V 3.2 lp interface.
  2512.  
  2513. Adds ps2ascii and ps2epsi script/batch files.
  2514.  
  2515. Adds a new utility, mergeini.ps, for concatenating all the
  2516. Ghostscript initialization files into a single file, optionally
  2517. removing comments and blank lines.
  2518.  
  2519. Adds new switches to gslp:
  2520.     -q: suppress all printed output.
  2521.     --detect: check whether the file begins with %!, and if so,
  2522.         interpret it directly as a PostScript file.
  2523.     --first-page <page#>: replaces the former -P switch.
  2524.     --last-page <page#>: replaces the former -Q switch.
  2525.     --(heading|footing)-(left|center|right) <string>: define
  2526.         headers/footers.  # inserts the page number.
  2527.     --margin-(top|bottom|left|right) <inches>: define margins.
  2528.     --spacing <n>: for double, triple, etc. spacing.
  2529. Also makes gslp ignore all the enscript flags it doesn't implement.
  2530.  
  2531. Adds an option to wrfont.ps to do encryption at read-in time.  (This
  2532. allows much better compression of the standard Ghostscript fonts.)
  2533. Changes bdftops to use this option.
  2534.  
  2535. Changes gslp to accept wild cards in file names.
  2536.  
  2537. Replaces landscap.ps with a new one contributed by a user.
  2538.  
  2539. Changes the compression scheme used in ps2image to a much more
  2540. effective one.  Writing images is much slower than with the previous
  2541. scheme, but reading is not.
  2542.  
  2543. Platforms
  2544. ---------
  2545.  
  2546. Fixes bugs:
  2547.     - SCFDTAB and SCFTAB were omitted from the VMS module lists.
  2548.     - Function prototypes were not being used with the Watcom
  2549. compiler.
  2550.     - On MS-DOS platforms, if the value of the TEMP variable had
  2551. a trailing : or \, Ghostscript appended a \ anyway.
  2552.     - Under Windows, changing the size or resolution of the image
  2553. closed and reopened the window.
  2554.     - Ghostscript would not build correctly with the Watcom compiler
  2555. if DOS4G=quiet was not set, because the DOS4GW copyright message was sent
  2556. to stdout.
  2557. *    - Finally gets Ghostscript to run properly on the RS/6000, by
  2558. adding a compiler bug workaround to arc_add and arc_either.
  2559. *    - Finally gets Ghostscript to compile properly on Sun SPARC
  2560. systems, by adding a compiler bug workaround in scan_number.
  2561.  
  2562. Changes the default MS-DOS configuration from 8086/8088 to 80286.
  2563.  
  2564. Adds all the SuperVGA drivers to the BC++ and Watcom executables
  2565. (except for the VESA driver in the Watcom executable).
  2566.  
  2567. Adds a makefile (msc.mak) for the Microsoft C/C++ 7.0 platform.  This
  2568. is currently a MS-DOS, not a MS Windows, platform.
  2569.  
  2570. Changes gp_enumerate_files_init so it takes a gs_memory_procs *, not
  2571. separate proc_alloc_t and proc_free_t arguments; also, it must
  2572. enumerate precisely the requested set of files, not a superset.  THIS
  2573. IS A NON-BACKWARD-COMPATIBLE CHANGE.  It affects all gp_*.c files.
  2574.  
  2575. Adds the P*M drivers and bit.dev to the standard configuration on
  2576. Unix platforms.
  2577.  
  2578. Changes the Watcom makefile so it uses the WATCOM environment variable (by
  2579. default) as the base directory for the Watcom executables.
  2580.  
  2581. Adds the MS Windows COMMDLG.DLL and SHELL.DLL files to the set of
  2582. files incorporated in GSEXE.ZIP, since the new MS Windows code uses
  2583. them, and they aren't provided with Windows 3.0.
  2584.  
  2585. Makes major revisions to the MS Windows platform and driver code, to
  2586. support the gsview front end, and also to remove the dependence on the
  2587. Borland EasyWin library.  NOTE: Compiling the MS Windows code now requires
  2588. Borland C++ 3.1 (not 3.0).
  2589.  
  2590. Changes time_.h so that Ghostscript will compile and run on A/UX.
  2591.  
  2592. Changes the MS-DOS implementation of file enumeration so it always
  2593. treats \s in the file name as literal characters, not escapes, unless
  2594. there are two \\s in a row.  This does the most sensible thing given
  2595. the DOS file naming conventions.
  2596.  
  2597. Adds a %pipe% file device under Unix.
  2598.  
  2599. Adds a makefile for Watcom C under MS Windows.  This is very preliminary;
  2600. in particular, NO display output is supported.
  2601.  
  2602. Fonts
  2603. -----
  2604.  
  2605. Fixes bugs:
  2606.     - fonts.mak referred to ncri and puti rather than ncrri and
  2607. putri.
  2608.     - cyr and cyri had the wrong protection.
  2609.     - The Hershey fonts left the font on the stack when they were
  2610. loaded.
  2611. *    - The FontName of an aliased font was the original FontName
  2612. from the file, not the alias.
  2613. *    - Fontmap.BTS had incorrect entries for AvantGarde-Demi and
  2614. AvantGarde-DemiOblique.
  2615.     - Ghostscript pushed userdict, rather than an empty writable
  2616. dictionary, onto the stack when loading a font, leading to name clashes.
  2617.  
  2618. Adds a new cfonts.mak with a full set of rules for compiling all the
  2619. standard Ghostscript fonts (except the Hershey fonts) into C.
  2620.  
  2621. Adds UniqueIDs to the Hershey fonts, and removes the UniqueIDs from
  2622. the Hershey entries in the Fontmap.
  2623.  
  2624. Adds a new Fontmap for VAX/VMS with DECWindows/Motif.
  2625.  
  2626. Changes MakeHersheyFont so it takes the encoding as an additional
  2627. parameter, and changes the Hershey-Symbol font to use SymbolEncoding.
  2628.  
  2629. Drivers
  2630. -------
  2631.  
  2632. Fixes bugs:
  2633.     - The !@*&^%#@$ PCL drivers *still* didn't do the right thing
  2634. about vertical spacing: the <ESC>*p+<n>Y command works on all PCL 3,
  2635. 4, and 5 printers *except* the LaserJet IIp.
  2636.     - The cdj driver used recursive macros (height, t_margin,
  2637. b_margin) that not all compilers handled correctly.
  2638.     - The djtc driver used some assignments including =*, which
  2639. some compilers dislike.
  2640.     - The S3 driver wouldn't compile correctly with the Watcom
  2641. compiler.
  2642.     - The makefile entry for the S3 driver was wrong.
  2643.     - The SuperVGA drivers returned an error, rather than using
  2644. the highest available resolution, if a too-high resolution was
  2645. requested.
  2646.     - The GIF driver produced an incorrect header for images
  2647. wider or taller than 32K pixels.
  2648.     - The GIF driver wasn't able to handle multi-page documents
  2649. correctly.
  2650.     - The margins on the DeskJet were still not correct.
  2651.     - Some ANSI C compilers rejected a complex expression in
  2652. gdevpccm.c.
  2653.     - Printer drivers didn't recover cleanly from problems in
  2654. opening the scratch files.
  2655.     - The BJ-10e driver used the same name `out' for a label and
  2656. a variable.
  2657.     - The SCO ODT compiler couldn't handle sizeof(ppdev->fname).
  2658.     - The Epson driver used the wrong value for ESC in the
  2659. initialization string.
  2660.  
  2661. Adds new drivers:
  2662.     - Drivers to produce MS Windows .BMP format output.
  2663.     - A new ATI Wonder display driver (800x600, 16 colors) and a
  2664. 1024x768 mode for the existing driver.
  2665.  
  2666. Adds new user-contributed drivers:
  2667.     - A driver for the Tektronix 4693d color printer.  This carries a
  2668. university copyright.
  2669.     - A driver for the SPARCprinter.
  2670.     - A driver for the Canon BJ200 printer.
  2671.     - A driver for the IBM ProPrinter.
  2672.     - A driver for the DEC LJ250 printer, which has a
  2673. PaintJet-compatible mode.
  2674.     - A replacement driver for the Sony NWP533.
  2675.     - A driver that writes TIFF/F (Group 3 fax) files.  This carries
  2676. an external copyright.
  2677.     - A driver for the C.Itoh M8510 printer.
  2678.     - A driver for the Okidata MicroLine 182 9-pin dot-matrix printer.
  2679.     - A Hercules Graphics driver.
  2680.     - A driver for printers under MS Windows.
  2681.     - A driver for direct frame buffer addressing under SCO Unix
  2682. and Xenix and AT&T SVR4.
  2683.  
  2684. Changes the get_bits driver procedure so it always reads a single
  2685. scan line, and optionally does not copy the data.  THIS IS A
  2686. NON-BACKWARD-COMPATIBLE CHANGE.  However, this change does not affect
  2687. any existing printer driver, since these all go through intermediate
  2688. routines in gdevprn.c.
  2689.  
  2690. Changes gdevprn.h, and the relevant printer drivers, so that -DA4
  2691. will change the default paper size for any printer driver.
  2692.  
  2693. Allows the use of NULL or 0 for default procedures in the driver
  2694. procedure vector.
  2695.  
  2696. Adds an optional map_cmyk_color procedure to the driver procedure
  2697. vector.
  2698.  
  2699. Changes the Epson driver so that the minimum amount of white space
  2700. required to use a tab is an easily changed parameter.
  2701.  
  2702. Changes the BGI driver to use separate segments for the Borland
  2703. device drivers, to reduce the risk of overflowing a segment.
  2704.  
  2705. Adds an optimization option (normally enabled) to the PGM and PPM drivers
  2706. such that they revert to PBM or (for PPM) PGM if the page can be
  2707. represented that way.
  2708.  
  2709. Adds a new (optional) driver procedure to get the procedure vector
  2710. for external fonts.
  2711.  
  2712. Adds an argument to gp_open_printer to indicate whether the file should be
  2713. opened in binary or text mode.  THIS IS A NON-BACKWARD-COMPATIBLE CHANGE.
  2714. However, this change does not affect any existing printer driver, since
  2715. these all go through intermediate routines in gdevprn.c.
  2716.  
  2717. Changes the LN03/LA50/LA75 driver so it uses a text record mode to open
  2718. the output file under VMS (by adding an argument to gp_open_printer to
  2719. indicate this.)
  2720.  
  2721. Allows (indeed, encourages) drivers to use far_data to declare the device
  2722. structure, primarily to avoid overflowing the 64K data segment under MS
  2723. Windows.  Changes the file output drivers and many of the printer drivers
  2724. to declare their device structures as far_data.
  2725.  
  2726. Replaces the AT&T 3B1 driver with an updated version (from the same
  2727. contributor).
  2728.  
  2729. Changes the Epson BJ driver and the SPARCprinter driver so they align
  2730. the (0,0) point of the page with the physical corner of the paper
  2731. rather than with the origin of the printable area.
  2732.  
  2733. Removes the EIZO MDB-10 driver, since it caused complications for the
  2734. EGA and VGA drivers and is not a widely used device.
  2735.  
  2736. Interpreter
  2737. -----------
  2738.  
  2739. Fixes bugs:
  2740.     - The entry for the copydevice operator in the operator table
  2741. was initialized incorrectly.
  2742.     - printobject and writeobject didn't handle nested arrays.
  2743.     - restore didn't properly close the current file (if
  2744. appropriate), causing an invalidaccess error.
  2745.     - buildfont required the presence of a valid, 4-element
  2746. FontBBox.  (The Red Books say it's required, but Adobe interpreters
  2747. don't require it; some DEC software generates a 3-element FontBBox.)
  2748.     - resourceforall had several bugs; it didn't do even
  2749. approximately the right thing.  There were quite a few other problems
  2750. with the implementation of resources.
  2751.     - setfont, makefont, and scalefont would accept a font with
  2752. no FID entry.
  2753. *    - Loading a .PFB font left the file open (until the next
  2754. restore or quit).
  2755.     - The default (null) font didn't include a PaintType entry,
  2756. which some PostScript files expected.
  2757. *    - The ASCIIHexDecode filter sometimes thought the underlying
  2758. stream was at EOF even when there was (at most one buffer's worth of)
  2759. data left.
  2760.     - iscan.c included <ctype.h> before std.h, causing type name
  2761. clashes on some systems.
  2762. *    - save and restore didn't handle the pointers in the graphics
  2763. state correctly; for example, the current font wasn't restored
  2764. properly.
  2765.     - Binary object sequences at the top interpreter level didn't
  2766. get executed immediately.
  2767.     - On high-resolution devices, the default transfer function
  2768. converted almost-white grays to very light grays rather than white.
  2769.     - The `string' operator was checking the string length
  2770. against max_uint rather than max_ushort, which could cause invalid
  2771. lengths to be accepted.
  2772. *    - deviceinfo caused a stackunderflow error.
  2773. *    - idiv could give incorrect results for quotients or
  2774. remainders that didn't fit in 24 bits.
  2775. *    - The ASCII85Encode filter padded trailing bytes with 1's
  2776. rather than 0's.
  2777. *    - The ASCII85Decode filter had a typo that produced incorrect
  2778. results if there were exactly 2 trailing bytes.
  2779.     - findlibfile didn't push a copy of the file name if it was
  2780. the name of a special (%) file.
  2781.     - setduplexmode was not defined in statusdict, causing
  2782. /undefined errors from some poorly designed input files.
  2783. *    - The CCITTFaxDecode filter had several bugs in 2-D decoding.
  2784. *    - The ASCII85Decode filter didn't read ahead to detect EOD if
  2785. it fell precisely on a buffer boundary.
  2786.     - If a file mentioned on the command line redefined `start',
  2787. Ghostscript would run the new definition rather than the built-in one
  2788. after processing all the files on the command line.
  2789.     - The SCO ODT compiler couldn't handle the conditionals in the
  2790. ngetc (iscan.c) and sgetc* (stream.h) macros.
  2791.     - makefont and scalefont didn't cache the PostScript dictionaries
  2792. for scaled fonts.
  2793.     - Changing the elements of the Encoding of a font dynamically
  2794. didn't take effect if the character was already cached.
  2795.     - makefont and scalefont didn't add the (undocumented) OrigFont
  2796. and ScaleMatrix entries to the new font.
  2797. *    - findfont insisted that the font name be a string or a name.
  2798.     - filenameforall could cause an incorrect transfer of control
  2799. if no files matched the pattern.
  2800. *    - ISOLatin1Encoding had hyphen instead of minus at code 45.
  2801.     - restore didn't reset saved_cbot and saved_ctop correctly;
  2802. as a result, some freed blocks could get abandoned rather than put on
  2803. the free list.
  2804.     - Some numerical constants in zarith.c assumed that longs
  2805. occupied 32 bits.
  2806.  
  2807. Implements additional Level 2 features:
  2808.     - %device%file names (only the "os" device is provided).
  2809.     - <~ ~> for ASCII-85 strings.
  2810.     - Binary error messages.
  2811.     - BuildGlyph.
  2812.     - CCITTFaxDecode filter entries EndOfBlock, Rows, and
  2813.     (undocumented) FirstBitLowOrder.
  2814.     - {set/current}{color/colorspace/overprint/colorrendering/
  2815.     blackgeneration/undercolorremoval}.  (See below under library
  2816.     for limitations.)
  2817.     - Decode for the dictionary form of image.
  2818.     - File access modes a, r/w/a+.
  2819.     - Font entries CDevProc, Metrics2, and WMode.
  2820.     - Font operators cshow, findencoding, rootfont, and
  2821.     setcachedevice2.
  2822.     - glyphshow (emulated with PostScript code).
  2823.     - languagelevel.
  2824.     - realtime.
  2825.     - setbbox.
  2826.     - (Subset of) system and user parameters.
  2827.     - xshow, yshow, and xyshow.
  2828.     - XUIDs for fonts.
  2829.  
  2830. Moves the installation of systemdict and the initial allocation of
  2831. globaldict (if relevant) and userdict from gs_init.ps to iinit.c.
  2832.  
  2833. Makes Level 2 features dynamically selectable through the
  2834. .setlanguagelevel operator; disables all Level 2 features
  2835. (specifically including automatic dictionary expansion) unless the
  2836. level2 feature is included and active.
  2837.  
  2838. Adds the .knownget operator for speeding up system procedures.
  2839.  
  2840. Renames the type1addpath operator as .type1addpath; adds an optional
  2841. left side bearing argument; changes it so it does not do the
  2842. setcachedevice, fill, or stroke, but does do a moveto for the
  2843. character width.  Changes Type1BuildChar appropriately.  (All this is
  2844. needed to make WMode work.)
  2845.  
  2846. Removes the .setmetrics operator, which is no longer needed.
  2847.  
  2848. * Changes the meaning of the user_errors argument to gs_run_file and
  2849. gs_run_string so that -1 means always return on an error, 0 means
  2850. only return on an error not within a `stopped'.
  2851.  
  2852. Adds all the necessary checks and operators for local/global VM, but
  2853. doesn't actually implement local/global mode.
  2854.  
  2855. Changes setcachedevice back so that it requires 4 numbers on the
  2856. stack rather than a 4-element array.  (It was changed to be the other
  2857. way in release 2.0, but that was because I didn't realize that fonts
  2858. had to have an executable FontBBox, and some of the Ghostscript fonts
  2859. didn't.)
  2860.  
  2861. Changes all the filter operators from .filterxxx to .filter_xxx, and
  2862. removes the need to enumerate them in gs_init.ps.
  2863.  
  2864. Adds .oserrno and .oserrorstring operators for getting the last OS
  2865. error (in the current context).
  2866.  
  2867. Changes gs_finit similarly to gp_exit.  Adds gs_exit_with_code that
  2868. takes both an exit status and a Ghostscript error code.
  2869.  
  2870. Changes the name of name.h to iname.h.
  2871.  
  2872. Adds support for the `interrupt' error (but doesn't provide any standard
  2873. way of generating one, other than through the gp_check_interrupts polling
  2874. function).
  2875.  
  2876. Adds copyright to systemdict.
  2877.  
  2878. Changes the spot halftone screen to an elliptical screen supplied by
  2879. Berthold K. P. Horn.
  2880.  
  2881. Adds a check that the first token in gs_init.ps is an integer.  In
  2882. conjunction with other code in gs_init.ps, this should catch all attempts
  2883. to run Ghostscript with a gs_init.ps that doesn't match the executable.
  2884.  
  2885. Changes all relevant occurrences of sizeof to size_of in order to
  2886. work with the buggy SVR4.2 C compiler.
  2887.  
  2888. Changes gp_exit so it is passed both the Ghostscript error code and
  2889. the exit status code as arguments.  This is backward-compatible for
  2890. all but the pickiest compilers.
  2891.  
  2892. Adds a call on gp_check_interrupts() after fwrite calls in the stream
  2893. machinery.  This prevents lengthy console output from locking out
  2894. other programs.
  2895.  
  2896. Changes a couple of occurrences of op_def_ptr in iinit.c to work around a
  2897. `const' bug in Sun's SC1.0 compiler.
  2898.  
  2899. Adds a special hack in the 'where' operator to work around a bug in Aldus
  2900. Freehand 2.x.
  2901.  
  2902. Changes all empty argument lists from () to (void), which is the ANSI
  2903. C syntax.
  2904.  
  2905. Adds a hack to ignore ^[ and ^D^[ tokens, to work around the prologue
  2906. and epilogue emitted by the MS Windows LaserJet IV driver.
  2907.  
  2908. Defines the processcolors operator, which should not be needed, but
  2909. is required because of bugs in Lotus 1-2-3 and Adobe PhotoShop.
  2910.  
  2911. Changes the allocator (ialloc) to fill all allocated and/or freed
  2912. blocks with a marker if gs_alloc_debug is set, as gs_malloc and
  2913. gs_free already do.
  2914.  
  2915. Library
  2916. -------
  2917.  
  2918. Fixes bugs:
  2919.     - 16-bit memory devices stored the bytes of each pixel in the
  2920. wrong order.
  2921.     - copy_mono did the wrong thing when copying 1 source chunk
  2922. to 2 destination chunks with polarity inverted.  (This probably
  2923. didn't affect any actual uses of Ghostscript.)
  2924. *    - The compile-time check for ints being 2 or 4 bytes used the
  2925. #error directive, which most compilers don't recognize.
  2926.     - arc and arcn didn't do the right thing for degenerate
  2927. (single-point) arcs, or for arcs drawn in the "wrong" direction that
  2928. were multiples of 360 degrees.
  2929.     - charpath did the wrong thing with Type 3 fonts.
  2930.     - copyscanlines gave an error if the buffer was too large.
  2931.     - The copy_mono procedure (used for text and halftones) for
  2932. 2- and 4-bit-per-pixel memory and printer devices incorrectly
  2933. incremented the destination pointer after every pixel, instead of
  2934. only after every byte.
  2935.     - The fill_rectangle procedure (used for graphics) for 2- and
  2936. 4-bit-per-pixel memory and printer devices, if given any color other
  2937. than all 0's or all 1's, multiplied the X coordinate and width by 2
  2938. or 4, thereby filling the wrong area.
  2939.     - The use of 'data' in both gs_type1_data and gs_font upset
  2940. the VMS compiler.
  2941.     - The `Flex' feature wasn't implemented for Type 1 fonts,
  2942. which caused serious errors in rendering some fonts that use it.
  2943. (Unfortunately, some Adobe fonts violate the specification, so we had
  2944. to implement Flex to always use a curve.)
  2945. *    - Stem width adjustment was too eager, producing very strange
  2946. effects on small characters with tight curves (a curve point could
  2947. get snapped to the other side of the open area).
  2948.     - The allocator didn't align structures adequately on
  2949. machines where sizeof(long) or sizeof(char *) was 8 bytes.
  2950.     - The test for IEEE floating point gave an incorrect
  2951. (negative) result on machines where sizeof(long) was 8 bytes.
  2952.     - genarch.c assumed that the result of subtracting two
  2953. pointers was an int, leading to a garbage arch.h file on systems
  2954. where this was false.
  2955. *    - The Type 1 font interpreter incorrectly reset the adjusted
  2956. path position to be the same as the unadjusted path position whenever
  2957. it returned control to the client (in particular, for callothersubr),
  2958. leading to discontinuities and distortions in the character shapes.
  2959. *    - Accented characters in Type 1 fonts often misplaced the
  2960. accent to the left.
  2961.     - gsmisc.c wouldn't compile on machines with 64-bit pointers,
  2962. because _pad was 0, and ANSI compilers don't accept 0-length arrays.
  2963.     - pathforall got confused if the client procedures modified
  2964. the path.
  2965.     - The command list file representation limited X and Y
  2966. coordinates to 15 bits.
  2967. *    - stroke could produce spikes or other garbage for mitered
  2968. joins as a result of stroke adjustment.
  2969.     - The params_size field of the null device was wrong, so
  2970. scaling the null device produced unpredictable results.
  2971.  
  2972. Changes monobit memory devices to always store data big-endian.  This
  2973. eliminates byte-swapping, at the cost of slightly slower rendering.
  2974.  
  2975. Removes the memswab* routines, since they are no longer needed.
  2976.  
  2977. Implements gs_cshow_[n_]init, which provides support for cshow, and
  2978. gs_xyshow_[n_]init, which provides support for {x,y,xy}show.
  2979.  
  2980. Adds an optional left side bearing argument to gs_type1_interpret.
  2981.  
  2982. Changes gs_type1_interpret so it does not do a setcachedevice, fill,
  2983. or stroke, but only appends the character outline to the path
  2984. (including a moveto for the character width.)
  2985.  
  2986. Removes gs_setmetrics, which is no longer needed.
  2987.  
  2988. Implements gs_setcachedevice2, which provides support for
  2989. setcachedevice2.
  2990.  
  2991. Speeds up gsave/grestore by allocating, deallocating, and copying as
  2992. much as possible of the graphics state in a single operation.
  2993.  
  2994. Implements gs_{set/current}{color/colorspace/overprint/colorrendering/
  2995. blackgeneration/undercolorremoval}.  Device, indexed (with table, not
  2996. with procedure), CIE, and (substituted) separation colors are
  2997. supported; some of the setup code for patterns is also present.
  2998.  
  2999. Increases the size of temporary file names in gdevprn.h from 30
  3000. characters to 60.
  3001.  
  3002. Changes the character cache to be allocated dynamically in chunks.
  3003.  
  3004. Splits gxcache.c into gxccache.c (fast "hit" code) and gxccman.c (all
  3005. other code).
  3006.  
  3007. Changes all occurrences of sizeof to size_of in order to work with the
  3008. buggy SVR4.2 C compiler.
  3009.  
  3010. Adds a new concept of "external fonts", which allow a driver to
  3011. substitute its own fonts for the ones obtained through the normal
  3012. font machinery.
  3013.  
  3014. Changes all empty argument lists from () to (void), which is the ANSI
  3015. C syntax.
  3016.  
  3017. Version 2.5.2 (9/20/92)
  3018. =============
  3019.  
  3020. This is yet another bug fix release to (finally!) get the PCL drivers
  3021. working again.
  3022.  
  3023. Procedures
  3024. ----------
  3025.  
  3026. Fixes bugs:
  3027.     - The comment in devs.mak for cdjcolor said it used 8 bits
  3028. per pixel, rather than the correct 24.
  3029.  
  3030. Adds gsbj/dj/lj/lp and gslp.ps to the installed files on Unix
  3031. systems.
  3032.  
  3033. Removes dps.dev and level2.dev from the standard configurations on
  3034. all platforms, since the presence of the setcolor operator was
  3035. causing the output of some common applications to fail.
  3036.  
  3037. Utilities
  3038. ---------
  3039.  
  3040. Fixes bugs:
  3041.     - font2c produced invalid output for any font that didn't use
  3042. StandardEncoding or ISOLatin1Encoding.
  3043.  
  3044. Platforms
  3045. ---------
  3046.  
  3047. Fixes bugs:
  3048.     - gp_sysv.c required an extern long timezone.
  3049.  
  3050. Drivers
  3051. -------
  3052.  
  3053. Fixes bugs:
  3054.     - The PCL drivers were *still* doing the wrong thing about
  3055. zeroing the seed row for Mode 3 compression.
  3056.     - Setting the resolution with -r didn't work under Windows.
  3057.     - The Windows driver got a stack overflow if it was ever
  3058. asked to display a bit image wider than 32 pixels.
  3059.     - The Tseng driver didn't sense the model (ET3000 vs. ET4000)
  3060. correctly.
  3061.  
  3062. Adds the eps9high device to the standard MS-DOS makefiles.
  3063.  
  3064. Interpreter
  3065. -----------
  3066.  
  3067. Fixes bugs:
  3068.     - gs_run_string used gs_user_errors (a global) rather than
  3069. user_errors (its argument) to control error handling.  (This does not
  3070. affect normal operation of Ghostscript, only use as a server.)
  3071.     - eexec popped the top element of the dictionary stack
  3072. afterwards even if the encrypted code had pushed something onto it.
  3073. This caused problems for some badly written PostScript code.
  3074.     - The printed form of real numbers didn't always include a
  3075. decimal point, causing compatibility problems.
  3076.  
  3077. Makes -s and -d work for device properties.
  3078.  
  3079. Increases the cache limit on large-memory systems.
  3080.  
  3081. Adds a check to ensure that the revision of gs_init.ps matches that
  3082. of the interpreter.
  3083.  
  3084. Adds the .knownget operator.
  3085.  
  3086. Library
  3087. -------
  3088.  
  3089. Fixes bugs:
  3090.     - The raster computation in clist_render_init, and the
  3091. computation of state_size in clist_open, didn't widen an operand to
  3092. long, leading to possibly incorrect operation for 24-bit-per-pixel
  3093. printers on MS-DOS systems.
  3094.     - The flatness was set too large for Type 1 characters,
  3095. leading to visible straight edges instead of curves at large sizes.
  3096.     - Type 1 fonts that contained out-of-range coordinates would
  3097. produce garbled output.  (This was not a problem with the standard
  3098. Ghostscript fonts, or with Adobe Type Manager fonts.)
  3099.     - gschar0.c wouldn't compile, because it referred to a
  3100. non-existing structure member penum->chr.  (This had no effect on
  3101. Ghostscript's operation.)
  3102.     - The curve flattener required line segments to be no more
  3103. than 8 x the flatness in length, leading to an enormous number of
  3104. segments.
  3105.     - pathforall would cause an addressing fault if the path
  3106. consisted of only a moveto.
  3107.  
  3108. Refactors some header files so that std.h is always included before
  3109. any system header file that might include sys/types.h.
  3110.  
  3111. Adds logic for removing top and bottom blank rows in cached
  3112. characters.  (This is the beginning of compression for the cache.)
  3113.  
  3114. Changes the arguments of memswab2/4 from char * to byte *, for more
  3115. accurate type conformance.
  3116.  
  3117. Version 2.5.1 (9/11/92)
  3118. =============
  3119.  
  3120. This is the usual bug fix re-release.
  3121.  
  3122. Procedures
  3123. ----------
  3124.  
  3125. Fixes bugs:
  3126.     - The makefile rules for compiled fonts had a circular
  3127. dependency.
  3128.     - `make begin' didn't work properly on all platforms.
  3129.  
  3130. Ensures that all batch files end with a newline.  (The absence of the
  3131. newline was confusing the GNU diff program.)
  3132.  
  3133. Documents the fact that the -dASCIIOUT switch no longer exists.
  3134.  
  3135. Utilities
  3136. ---------
  3137.  
  3138. Fixes bugs:
  3139.     - pstoppm didn't `bind' its internal procedures.
  3140.     - grestoreall would undo the output device selected by
  3141. pstoppm.
  3142.  
  3143. Changes the utilities for reading and writing Type 1 character
  3144. outlines so they can work with stack representations as well as
  3145. arrays.
  3146.  
  3147. Removes the pfbtogs.ps, phonbook.ps, and showpbm.ps utilities from
  3148. the distribution.
  3149.  
  3150. Adds a gslj utility to parallel gslp and gsdj.
  3151.  
  3152. Platforms
  3153. ---------
  3154.  
  3155. Adds the DeskJet 500C drivers (cdeskjet/cdj*) to the MS-DOS / Borland
  3156. C++, MS-DOS / Watcom C/386, and MS-Windows configurations.
  3157.  
  3158. Removes the PCX file driver from the MS Windows executable, because
  3159. the static data segment exceeded 64K.
  3160.  
  3161. Makes some changes in the Unix System V platform file (gp_sysv.c) and
  3162. in time_.h and unixtail.mak to accommodate the 3B1.
  3163.  
  3164. Fonts
  3165. -----
  3166.  
  3167. Fixes bugs:
  3168.     - The Charter-Italic font was named bchi.pfa rather than
  3169. bchri.pfa.
  3170.     - The Cyrillic fonts (cyr.gsf, cyri.gsf) were omitted from
  3171. the fileset.
  3172.     - Ghostscript incorrectly assumed that all Type 1 fonts had a
  3173. FontInfo dictionary.
  3174.     - .loadfont used false PFBDecode, so a few .PFB fonts would
  3175. get errors because the first eexec byte would be whitespace.
  3176.  
  3177. Changes font2c and its supporting code so that compiled fonts are
  3178. location-independent.
  3179.  
  3180. Drivers
  3181. -------
  3182.  
  3183. Fixes bugs:
  3184.     - The margins for the H-P printers were still wrong.
  3185.     - The H-P drivers accidentally cleared the compression seed
  3186. row when switching compression modes.
  3187.     - Some of the H-P drivers used the wrong control codes for
  3188. skipping blank lines.
  3189.  
  3190. Adds user-supported drivers for the AT&T 3B1 console device, and for
  3191. the NEC P6+ printer.
  3192.  
  3193. Updates the SunView driver with a new version supplied by a(nother)
  3194. user.
  3195.  
  3196. Changes the X Windows driver so the Ghostscript window doesn't get
  3197. input focus.
  3198.  
  3199. Changes the common code for the printer drivers so that if it can
  3200. allocate a full bitmap but there isn't at least a minimum amount of
  3201. memory left afterwards, it switches to banding.
  3202.  
  3203. Changes the Windows driver so it handles devices with more than 8
  3204. bits per pixel.  (We haven't been able to test this.)
  3205.  
  3206. Adds a read-only PageCount device property (for printer devices
  3207. only).
  3208.  
  3209. Changes all Aladdin-supported drivers to clip drawing requests to the
  3210. ((0,0), (width,height)) rectangle of device space.
  3211.  
  3212. Interpreter
  3213. -----------
  3214.  
  3215. Fixes bugs:
  3216.     - Closing a NullEncode filter always gave an ioerror.
  3217.     - If a single-character name occurred 1 character before the
  3218. end of an input buffer, the character would be doubled.
  3219.     - The procedures in gs_statd.ps didn't use "bind".
  3220.     - Setting the page size didn't work properly with devices
  3221. with rotated coordinate systems.
  3222.     - If an error occurred, and the error object wasn't the last
  3223. element of its procedure, the interpreter would re-execute the error
  3224. object after running the error handler.
  3225.     - Memory devices didn't get resized if HWSize was changed,
  3226. leading to out-of-bounds memory accesses.
  3227.  
  3228. Moves revision and revisiondate from gs_init.ps to iinit.c.  Adds a
  3229. -v switch that just prints these out.
  3230.  
  3231. Arranges things so that if Ghostscript is reading from a pipe (`-'
  3232. switch on the command line) and encounters an error, it exits with
  3233. status 1 rather than 0.
  3234.  
  3235. Changes the interpreter interface so the caller explicitly passes a
  3236. pointer for storing an error object.
  3237.  
  3238. Library
  3239. -------
  3240.  
  3241. Fixes bugs:
  3242.     - The automatic adjustment of the scaling for variant paper
  3243. sizes caused the image to get expanded when it should have been
  3244. contracted, and vice versa.
  3245.     - The curve flattener insisted that each line segment be no
  3246. more than 2 x the flatness in length, leading to an enormous number
  3247. of segments even when not necessary for accuracy.
  3248.     - flattenpath and strokepath discarded a trailing moveto.
  3249.     - strokepath treated "0-width" lines as really having a width
  3250. of zero, rather than one pixel.
  3251.     - Buffered devices weren't closed and reopened if the amount
  3252. of buffer space was changed.
  3253.     - stroke used the line cap at the beginning of each subpath
  3254. even if the subpath was closed.
  3255.  
  3256. Removes the requirement that the clipping rectangle fall in the
  3257. non-negative quadrant of device space.  (This was causing problems
  3258. for Ghostview, but removing it required adding the extra clipping
  3259. step to the drawing routines in the drivers.)
  3260.  
  3261. Version 2.5 (8/18/92)
  3262. ===========
  3263.  
  3264. This version adds Type 1 hinting, CCITTFax encoding and decoding, and
  3265. Microsoft Windows support, as well as the usual minor improvements
  3266. and bug fixes.
  3267.  
  3268. Procedures
  3269. ----------
  3270.  
  3271. Fixes bugs:
  3272.     - GSIMPATH, SLZWD, and SLZWE were omitted from the VMS
  3273. makefiles, and GSIM2OUT was not removed.
  3274.     - landscap.ps messed up the current path.
  3275.  
  3276. Adds new switches:
  3277.     -dSAFER disables file writing and directory modification.
  3278.     -dESTACKPRINT causes errors to print the execution stack with
  3279. == instead of =.
  3280.     -sOutputFile=<string> replaces -sOUTPUTFILE (which is still
  3281. recognized) for setting the output file or pipe for the default
  3282. (printer) device.
  3283.     -sPAPERSIZE=<sizename> initializes the paper size.
  3284.     -dBufferSpace=<number> sets the buffer size for the default
  3285. (printer) device.
  3286.  
  3287. For Unix systems, changes the directories in GS_LIB_DEFAULT from
  3288. `pwd` to $(gsdatadir), i.e., normally $(datadir)/ghostscript, where
  3289. datadir is normally /usr/local/lib.
  3290.  
  3291. Adds a note in the header file to the effect that the X Windows
  3292. driver expects to find header files in $(XINCLUDE)/X11, not in
  3293. $(XINCLUDE).
  3294.  
  3295. Changes -q so it defines QUIET as true instead of null (so it can be
  3296. used in the middle of the command line as well as at the beginning).
  3297.  
  3298. Renames the history.doc file as NEWS.
  3299.  
  3300. Utilities
  3301. ---------
  3302.  
  3303. Platforms
  3304. ---------
  3305.  
  3306. Fixes bugs:
  3307.     - The stack size was not getting increased on the Watcom
  3308. platform.
  3309.  
  3310. Removes "b" from the scratch file opening modes in gp_unix.c and
  3311. (conditionally) in gdevprn.c, to pacify the DECstation Ultrix system.
  3312.  
  3313. Adds a makefile (bcwin.mak) and a platform file (gp_mswin.c) for
  3314. Microsoft Windows.
  3315.  
  3316. On MS-DOS platforms (including Windows), uses the TEMP environment
  3317. variable to designate the directory for scratch files.
  3318.  
  3319. Changes std.h so that the VMS C compiler uses function prototypes and
  3320. 'const'.
  3321.  
  3322. Changes the VMS cc makefile so it doesn't use ansi2knr.
  3323.  
  3324. Fonts
  3325. -----
  3326.  
  3327. Fixes bugs:
  3328.     - findfont left an extra entry on the stack if it couldn't
  3329. find the default font.
  3330.  
  3331. Renames bchi, ncri, and puti as bchri, ncrri, and putri, to conform
  3332. with the naming scheme for other fonts.
  3333.  
  3334. Adds $(CCFLAGS) to the command line used for compiling fonts.
  3335.  
  3336. Converts the .pfa fonts (CharterBT, IBM Courier, and Utopia) to .gsf,
  3337. by removing eexec encryption and also removing some mysterious
  3338. unmapped characters from Courier.  This makes these fonts work with
  3339. DISKFONTS.
  3340.  
  3341. Changes the implementation of compiled fonts so they are read-only
  3342. and sharable (no external references).  (They are, however, not
  3343. position-independent.)
  3344.  
  3345. Provides a way to use compiled fonts on platforms that limit the
  3346. number of characters in an identifier.
  3347.  
  3348. Adds public-domain Cyrillic and Cyrillic-Italic fonts.
  3349.  
  3350. Adds a 'userdict begin' to .loadfont, because Type 3 fonts produced
  3351. by Fontographer expect a writable dictionary on the top of the stack.
  3352.  
  3353. Changes definefont for Type 1 fonts to insert UnderlinePosition and
  3354. UnderlineThickness entries in FontInfo if they are absent, because
  3355. many word processors incorrectly assume these entries are present.
  3356.  
  3357. Drivers
  3358. -------
  3359.  
  3360. Fixes bugs:
  3361.     - The documentation in use.doc said that the densities for
  3362. 9-pin Epson printers were 60x60 to 240x60, rather than 60x72 to
  3363. 240x72.
  3364.     - gdevprn.c smashed one byte beyond the end of the string
  3365. given as the OutputFile device property.
  3366.     - The X11 driver used XVisualIDFromVisual, which is not
  3367. defined in X11R3.
  3368.     - The SunView driver modified the input data, which was
  3369. declared as const.
  3370.     - The LaserJet IIP and III drivers shifted the page 185
  3371. pixels to the left and 0.25" down, because the initialization string
  3372. was incorrect.
  3373.     - The PCX driver wrote 16-bit values using the byte ordering
  3374. of the platform, rather than always LSB first.
  3375.     - For vertical spacing, the LaserJet and DeskJet drivers used
  3376. a command that spaces N/300", rather than N scan lines, but gave it a
  3377. parameter in scan lines.
  3378.     - The VESA driver didn't allocate a full 256-byte buffer for
  3379. reading the mode information from the BIOS, causing the stack to get
  3380. smashed by newer VESA implementations.
  3381.     - The VESA driver didn't use the scan line length returned by
  3382. the BIOS, causing garbage output for some cards and some resolutions.
  3383.     - The generic printer driver didn't free the bitmap when
  3384. closing the device, if it fit entirely in memory.
  3385.     - The PaintJet driver allocated its data areas on the stack
  3386. instead of with gs_malloc.
  3387.     - The generic printer driver didn't attempt to increase the
  3388. buffer size if it was too small.
  3389.     - The band list driver didn't split large bitmaps properly,
  3390. leading to garbled characters at high resolutions.
  3391.     - The GIF and PCX drivers used a color map that often turned
  3392. gray colors into non-grays.
  3393.  
  3394. Changes the default put_props procedure so that if the device is
  3395. open, setting HWSize and/or HWResolution closes the device and
  3396. reopens it.
  3397.  
  3398. Adds a driver for Microsoft Windows 3.n.
  3399.  
  3400. Updates the 'cdj' and 'dj500c' DeskJet 500C drivers with new versions.
  3401. (This are user-contributed drivers.)
  3402.  
  3403. Changes gdev_prn_put_props so OutputFile can be changed dynamically.
  3404.  
  3405. Updates the DEC LN03 driver to also handle the LA50 and LA75.  (This
  3406. is a user-contributed driver with a FSF copyright.)
  3407.  
  3408. Changes the LaserJet/DeskJet driver so that -DA4 in the makefile
  3409. makes A4 paper the default.  The driver now also sends an appropriate
  3410. page size selection command to the printer if the printer supports it.
  3411.  
  3412. Changes all the Aladdin-supported drivers to return appropriate error
  3413. codes rather than -1.
  3414.  
  3415. Adds a driver for the S3 86C911, a PC graphics accelerator used in
  3416. the popular Diamond Stealth board.  This is the first driver that
  3417. uploads character bitmaps to a device; others will probably follow.
  3418.  
  3419. Adds user-supplied code to the Epson driver so it will do triple
  3420. passes on 9-pin printers for higher resolution.
  3421.  
  3422. Adds user-supplied code for the PaintJet XL to the PaintJet driver.
  3423.  
  3424. Interpreter
  3425. -----------
  3426.  
  3427. Fixes bugs:
  3428.     - zdps1.c didn't include alloc.h.
  3429.     - On 32-bit systems, if maxlength of a dictionary was less
  3430. than the actual allocated space, length could become larger than
  3431. maxlength.
  3432.     - flushfile didn't actually flush data when reading.
  3433.     - The ASCII85Decode filter signalled EOF prematurely.
  3434.     - The scanner interpreted .3D.glorp as the number 0.3, rather
  3435. than as a name.
  3436.     - Closing a file freed the stream structure, creating
  3437. dangling references if there were other file objects pointing to the
  3438. same stream.
  3439.     - eexec called handleerror if an error occurred, instead of
  3440. letting the error propagate to an enclosing stopped.
  3441.     - gs.h made perror illegal, instead of defining it in terms
  3442. of strerror.
  3443.     - One-character names weren't being allocated at
  3444. initialization, so they could be left dangling after a restore.
  3445.     - Internal gsaves (i.e., the ones in show and setcachedevice)
  3446. didn't also save istate, so setfont inside a BuildChar procedure
  3447. might cause the font outside to get changed.
  3448.     - The allocator incorrectly freed objects in the current
  3449. chunk that were older than the current save.
  3450.     - mark was just an object, rather than an operator, so 'bind'
  3451. didn't bind it.  (This is theoretically a problem for null, true, and
  3452. false also, but even more unlikely to be a problem in practice.)
  3453.     - packed_get didn't cast packed integers to int, so negative
  3454. integer elements of packed arrays came out wrong.
  3455.     - quit just did a gs_exit, instead of returning to the driver
  3456. in an orderly way.
  3457.     - Because check_type_access checked for errors in the wrong
  3458. order, sometimes type errors were reported as access errors.
  3459.     - eq didn't check for stack underflow.
  3460.     - Some of the stream_procs structures weren't properly
  3461. declared const, leading to link errors on VMS.
  3462.  
  3463. Implements currentcolor, currentcolorspace, setcolor, and
  3464. setcolorspace (for DeviceGray, DeviceRGB, and DeviceCMYK only).
  3465.  
  3466. Implements the dictionary form of image and imagemask.  All the pairs
  3467. in the Decode array must be the same; Interpolate is ignored.  The
  3468. only supported color spaces are DeviceGray, DeviceRGB, and
  3469. DeviceCMYK.
  3470.  
  3471. Implements files as allowable sources for the image operators.
  3472.  
  3473. Removes the index field from the name structure, moving it to the
  3474. 'size' field of name refs.
  3475.  
  3476. Changes the unread/sungetc operation to require that the character be
  3477. the same as the last one read from the file.
  3478.  
  3479. Adds fflush calls to some debugging printout routines, because Unix
  3480. sometimes buffers terminal output.
  3481.  
  3482. Implements the CCITTFaxEncode and CCITTFaxDecode filters.  Implements
  3483. the general case of the SubFileDecode filter.
  3484.  
  3485. Changes definefont to treat a UniqueID of 0 as equivalent to no
  3486. UniqueID, because Fontographer output apparently often violates the
  3487. specification in this way.
  3488.  
  3489. Changes the default printer screen from 32.5 to 46 cells/inch.  (The
  3490. old value was appropriate for a hand-rotated cell with two spots in
  3491. it.)
  3492.  
  3493. Changes the utility routines to allow an integral real wherever an
  3494. integer parameter is expected in a dictionary, because Fontographer
  3495. produces fonts that violate the Adobe specification in this way.
  3496.  
  3497. Adds a `dosio' feature that provides direct access to memory and to
  3498. I/O ports under MS-DOS.  (This feature is not included in the
  3499. standard executables, of course.)
  3500.  
  3501. Changes the default character cache limit to a 1/4" x 1/4" character
  3502. at the default resolution, rather than basing it on the preallocated
  3503. cache size.
  3504.  
  3505. Removes support for t_color objects, which haven't actually been used
  3506. for several releases.
  3507.  
  3508. Implements setcmykcolor and currentcmykcolor as operators, so they
  3509. will interact properly with setcolorspace and currentcolorspace.
  3510.  
  3511. Changes the name of the file.h header file to files.h, to work around
  3512. a bug in the VMS header library.
  3513.  
  3514. Adds command line switches @file (to treat file as more command line,
  3515. to get around the DOS 128-character command line limit) and -ffile
  3516. (so one can specify file names that begin with - or @).
  3517.  
  3518. Changes the PFBDecode filter so it takes an additional boolean that
  3519. says whether or not to convert binary packets to hex.  (Conversion to
  3520. hex and back to binary accounted for a substantial amount of the time
  3521. required to load .PFB fonts.)
  3522.  
  3523. Splits off `copydevice' as a separate operator again.
  3524.  
  3525. Library
  3526. -------
  3527.  
  3528. Fixes bugs:
  3529.     - In the VMS environment, string_.h used its own prototypes
  3530. for the str... and mem... functions instead of <string.h>
  3531.     - gx_alloc_char_bits declared cdsize as long, but didn't
  3532. shorten it when passing it to shorten_cached_char.
  3533.     - Stroking didn't suppress fattening of the lines.
  3534.     - kshow didn't update the cached CTM information in the show
  3535. enumerator when returning from the callout, so further characters
  3536. could get drawn in the wrong place.
  3537.     - When a memory device returned its initial matrix, it
  3538. smashed the padding fields, which contained the interpreter's type
  3539. information.
  3540.     - setcachedevice didn't set the initial matrix in the cache
  3541. memory device.
  3542.     - image_set_rgb (in the image operators) didn't do a
  3543. gx_color_from_rgb, so in principle one could sometimes get incorrect
  3544. colors in an image.
  3545.     - The decision about whether or not to cache a character
  3546. bitmap incorrectly compared the character size against cmax rather
  3547. than cdata_size.
  3548.     - show didn't reset the in_cachedevice flag in the graphics
  3549. state, so characters rendered by a recursive show were never cached.
  3550.     - clip and eoclip didn't release the intermediate flattened
  3551. clip path, causing memory to be lost.
  3552.     - The tile_diff routine didn't handle the case of two
  3553. identical tiles properly; this produced garbage in the band list
  3554. file.
  3555.     - stringwidth didn't round the character origin to an
  3556. integral pixel; this interacted badly with hinting, causing
  3557. improperly hinted characters to wind up in the cache.
  3558.     - Bitmaps (including characters) were displaced, as well as
  3559. being clipped, if they intersected the top of a clipping region.
  3560.     - In gxclist and gdevmem1, the raster computation (although
  3561. not the result) could overflow an int on 16-bit machines.
  3562.  
  3563. Implements decoding (sample mapping) for image and imagemask.
  3564.  
  3565. Implements hinting for Type 1 fonts, based on (but not copying) the
  3566. algorithms from the X11R5 tape.
  3567.  
  3568. Changes curve rasterizing to use sampling, rather than recursive
  3569. subdivision, for characters.  This produces noticeably better output.
  3570. Speed penalty for non-cached characters is less than 10% at display
  3571. resolutions, up to 50% for 300 dpi printers.
  3572.  
  3573. Implements gs_setcmykcolor and gs_currentcmykcolor.  These are
  3574. semi-fake, since they simply convert the color to and from RGB, but
  3575. the former does set the current color space properly.
  3576.  
  3577. Changes clipping regions so they use the any-part-of-pixel rule
  3578. rather than the center-of-pixel rule.  This helps avoid dropouts when
  3579. using very small regions.
  3580.  
  3581. Implements stroke adjustment.
  3582.  
  3583. Version 2.4.2 (5/8/92)
  3584. =============
  3585.  
  3586. This is another quick release.  It finally fixes rotated halftone
  3587. screens, and cleans up a few minor problems from 2.4.1.
  3588.  
  3589. This release is being distributed only to beta testers and commercial
  3590. licensees, since I don't want to be distracted from working on 2.5.
  3591.  
  3592. Procedures
  3593. ----------
  3594.  
  3595. Fixes bugs:
  3596.     - UTRACE still appeared in the VMS makefiles.
  3597.     - The support files (*.bat, *.doc, *.gsf, *.ps, Fontmap,
  3598. COPYING, README) weren't included in the MS-DOS tar file.
  3599.     - The Unix install script didn't install landscap.ps.
  3600.  
  3601. Replaces the type1imagepath operator with PostScript code (impath.ps,
  3602. type1ops.ps) based on the new .imagepath operator.
  3603.  
  3604. Renames LICENSE as COPYING.
  3605.  
  3606. Utilities
  3607. ---------
  3608.  
  3609. Fixes bugs:
  3610.     - pcharstr.ps had an occurrence of Subrs rather than /Subrs,
  3611. causing it to not print the Subrs, or to get an error if there were
  3612. none.
  3613.     - font2c.ps didn't get the const declarations for string
  3614. dictionaries quite right.
  3615.     - The missing newline at the end of gsbj.bat confused GNU
  3616. diff.
  3617.     - ansi2knr would go into an infinite loop if a statement
  3618. exceeded its internal buffer size.
  3619.     - Compiled fonts would get processed by ansi2knr, which
  3620. messed them up.
  3621.  
  3622. Platforms
  3623. ---------
  3624.  
  3625. Fixes bugs:
  3626.     - Ghostscript didn't supply equivalents for rename and
  3627. gettimeofday, which some System V platforms lack.
  3628.     - The missing newline at the end of gp_dosfb.c confused GNU
  3629. diff.
  3630.  
  3631. Changes the Borland makefiles so that stack checking is only enabled
  3632. if DEBUG or TDEBUG is set.
  3633.  
  3634. Fonts
  3635. -----
  3636.  
  3637. Changes the names of the Utopia fonts from utrg/utb/utbi/uti to
  3638. putr/putb/putbi/puti, for consistency with the rest of the font names.
  3639. Changes cour/courb/courbi/couri to ncrr/ncrb/ncrbi/ncri likewise.
  3640.  
  3641. Replaces the Charter fonts with the CharterBT fonts donated by
  3642. Bitstream to the X11R5 distribution.
  3643.  
  3644. Adds font aliasing capability to Fontmap.  Replaces
  3645. Courier-[Bold]Oblique and ZapfChancery-MediumItalic by aliases.
  3646.  
  3647. Changes the FontBBox of the Hershey fonts to be an executable, rather
  3648. than a literal, array.
  3649.  
  3650. Drivers
  3651. -------
  3652.  
  3653. Fixes bugs:
  3654.     - The GIF driver omitted a `private' on the definition of
  3655. gif_print_page.
  3656.     - The GIF driver wrote 16-bit values using the byte ordering
  3657. of the platform, rather than always LSB first.
  3658.     - George Cameron's DeskJet 500C driver had an incorrect
  3659. control sequence for skipping blank lines.
  3660.  
  3661. Adds 'const' in many places, including the tile and bitmap arguments
  3662. of the tile_rectangle, copy_mono, and copy_color driver routines.
  3663. THIS IS A DRIVER INTERFACE CHANGE.  (Printer drivers are not
  3664. affected, since they don't implement these routines.)
  3665.  
  3666. Adds a driver for the Trident TVGA.
  3667.  
  3668. Interpreter
  3669. -----------
  3670.  
  3671. Fixes bugs:
  3672.     - alloc_free sometimes incorrectly chose to put an unaligned
  3673. block in an old segment on a freelist.
  3674.     - The default undercolor removal function returned its
  3675. argument rather than returning 0.
  3676.  
  3677. Adds NullEncode and SubFileDecode to the standard filters, since
  3678. bdftops uses the latter.
  3679.  
  3680. Adds RunLengthEncode and RunLengthDecode to the optional filters.
  3681.  
  3682. Removes the type1imagepath operator.  (It is still available as
  3683. PostScript code, impath.ps.)  Replaces it with a simpler outline
  3684. tracing operator .imagepath.
  3685.  
  3686. Adds 'const' in many places.
  3687.  
  3688. Makes fileposition (but not setfileposition) legal for NullEncode
  3689. filters.
  3690.  
  3691. Changes the default transfer function for high-resolution devices
  3692. from the identity function to the square root function.
  3693.  
  3694. Moves array_get from zgeneric.c to iutil.c.
  3695.  
  3696. Changes uses of fopen to add a "b" to the access mode, rather than
  3697. relying on the _fmode global variable on MS-DOS platforms.
  3698.  
  3699. Allows use of the -Z switch even when gsmain.c wasn't compiled with
  3700. -DDEBUG, since other modules might have been.
  3701.  
  3702. Reorganizes gs.c and gsmain.c so that the latter can be used in
  3703. server environments.
  3704.  
  3705. Replaces all uses of stdin/out/err with gs_stdin/out/err.
  3706.  
  3707. Makes the number of permanent entries on the dictionary stack a
  3708. parameter, to allow inserting globaldict in the future.
  3709.  
  3710. Changes BlueShift in the Type 1 font Private dictionary to allow real
  3711. numbers.  (This differs from the Adobe specification, but at least
  3712. one commercial font has a real number for BlueShift.)
  3713.  
  3714. Library
  3715. -------
  3716.  
  3717. Fixes bugs:
  3718.     - The doubling check in init_ht (gxht.c) still sometimes
  3719. thought there was enough room to double the tile when there actually
  3720. wasn't.
  3721.     - Rotated halftone screens didn't work.
  3722.     - gxarith.h used #ifdef vax, rather than #if
  3723. !arch_floats_are_IEEE, to test whether IEEE floats were being used.
  3724.     - pathforall didn't report a trailing moveto.
  3725.  
  3726. Replaces gs_type1imagepath with gs_imagepath.
  3727.  
  3728. Allows sOUTPUTFILE=-, meaning output to stdout.
  3729.  
  3730. Adds 'const' in many places.
  3731.  
  3732. Replaces all uses of stdin/out/err with gs_stdin/out/err.
  3733.  
  3734. Version 2.4.1 (4/21/92)
  3735. =============
  3736.  
  3737. This is a quick release to fix minor problems discovered in 2.4, and
  3738. to add a few improvements that didn't quite make it into 2.4.  It
  3739. also adds GIF and PCX file support.
  3740.  
  3741. Procedures
  3742. ----------
  3743.  
  3744. Fixes bugs:
  3745.     - Some makefile dependencies, and the ccgs script, caused trouble
  3746. for parallel versions of `make'.
  3747.     - Compiling genarch with -O with gcc on the RS/6000 produced a
  3748. buggy executable.
  3749.  
  3750. Fixes some minor problems in make.doc.
  3751.  
  3752. Adds DEVICE_DEVS2..5 to handle long device lists.
  3753.  
  3754. Removes the need to set GS_RUN_EXE when using the Watcom compiler on
  3755. MS-DOS systems.
  3756.  
  3757. Gets rid of gs_ccfnt.ps, merging its function into gs_fonts.ps.
  3758.  
  3759. Gets rid of gconfig.ps; this information is now compiled in gconfig.c.
  3760.  
  3761. Utilities
  3762. ---------
  3763.  
  3764. Fixes bugs:
  3765.     - The palette for pstoppm in 8-bit mode didn't contain all 8
  3766. primary colors.
  3767.     - font2c used just values_ to mean &values_[0]; some compilers
  3768. couldn't handle this.
  3769.  
  3770. Makes font2c insert `const' in many appropriate places.
  3771.  
  3772. Drivers
  3773. -------
  3774.  
  3775. Fixes bugs:
  3776.     - The SunView driver had not been updated properly for 2.4 and was
  3777. pretty thoroughly broken.
  3778.     - None of the printer drivers worked properly with the Watcom
  3779. compiler, because stdprn was doing \n -> \r\n substitution.
  3780.     - If the generic printer driver couldn't allocate the requested
  3781. size command list buffer, it gave up rather than trying to allocate a
  3782. smaller buffer.
  3783.     - The SuperVGA drivers (except for the VESA driver) didn't
  3784. work with the Watcom compiler, because a couple of places in the
  3785. drivers weren't truncating the offset of "segmented" pointers
  3786. properly.
  3787.     - Some of the H-P used <esc>*b#Y rather than <esc>*p+#Y for
  3788. vertical positioning; this apparently is wrong, at least for the
  3789. LJIIp.
  3790.  
  3791. Removes the dependence of the X Windows driver on Xt, Xext, and Xmu.  As a
  3792. result, Ghostscript will not install a standard colormap itself, but it
  3793. will use one if one is already installed.
  3794.  
  3795. Adds a set of drivers for Portable Bitmap, Graymap, and Pixmap file
  3796. formats.
  3797.  
  3798. Adds drivers for monochrome, EGA/VGA-style, and SuperVGA-style PCX
  3799. file formats.
  3800.  
  3801. Adds drivers for monochrome and 256-color GIF file formats.
  3802.  
  3803. Fonts
  3804. -----
  3805.  
  3806. Adds ZapfChancery-MediumItalic as a copy of ZapfChancery-Oblique.
  3807.  
  3808. Interpreter
  3809. -----------
  3810.  
  3811. Fixes bugs:
  3812.     - A value with l_new set could 'escape' to save level 0 on a
  3813. stack; if stored, it prevented the slot from being saved and restored
  3814. properly.
  3815.     - 16#7fffffff + 1 gave the floating point equivalent of -2^31, not
  3816. 2^31.
  3817.     - The PFBDecode filter computed the packet length incorrectly if
  3818. the 0x8000-bit of the length was set.
  3819.     - 5-byte numbers in Type 1 CharStrings complained of a rangecheck
  3820. if they exceeded 16 bits, rather than if they exceeded the integer part of
  3821. a fixed.
  3822.     - (, ), and \ appearing in file name arguments in the command
  3823. line did not work properly.
  3824.  
  3825. Adds 'const' in many places.
  3826.  
  3827. Changes the random number generator to be the same as the one used in
  3828. Level 2 PostScript (as reported by Ed Taft on comp.lang.postscript).
  3829.  
  3830. Exits with code 1 rather than code 0 on an unrecoverable error detected at
  3831. the PostScript level.
  3832.  
  3833. Makes dictionaries expand automatically when they fill up.
  3834.  
  3835. Adds gp_exit to complement gp_init.
  3836.  
  3837. Changes dictionaries to always allocate a power of 2 entries on
  3838. 32-bit machines.  Changes the name table to allocate indices
  3839. scattered, so dictionary lookup doesn't have to do a multiply to
  3840. scramble the index.
  3841.  
  3842. Changes the handling of currentfile to do "shallow binding" so stack
  3843. searching is almost never required.
  3844.  
  3845. Library
  3846. -------
  3847.  
  3848. Fixes bugs:
  3849.     - arc and arcn got a numeric exception if the radius was zero.
  3850.     - The undocumented 15 opcode in Type 1 fonts wasn't ignored.
  3851.     - PaintType 3 wasn't allowed.  (It isn't clear what it should
  3852. mean; we treat it as equivalent to 0.)
  3853.     - The VAX/VMS C compiler was generating incorrect code for the
  3854. chi_bits and cmask macros in gdevmem, producing incorrect output.
  3855.     - If the result of the slow algorithm for intersecting clipping
  3856. paths was a rectangle, the wrong thing happened (cbox didn't get set).
  3857.     - gx_path_is_rectangle didn't recognize open rectangles.
  3858.     - clist_change_tile didn't check properly whether the tile
  3859. size had changed, so changing the screen could produce invalid band
  3860. files.
  3861.     - The image operators did the wrong thing in the 1-for-1
  3862. case, interleaving N bytes of data with 7*N bytes of garbage.
  3863.     - stroke sometimes handled bevel and miter joins wrong in
  3864. reflected coordinate systems.
  3865.     - init_ht checked incorrectly whether there was enough room
  3866. to Y-replicate tiles, so sometimes it did it when it shouldn't have.
  3867.     - stroke sometimes thought lines were thin when they weren't.
  3868.  
  3869. Adds 'const' in many places.
  3870.  
  3871. Adds support for 2- and 4-bit-per-pixel memory devices.
  3872.  
  3873. Version 2.4 (3/25/92)
  3874. ===========
  3875.  
  3876. This is a major release that adds SuperVGA support, support for Metrics,
  3877. settable device properties, and incremental font loading.  It also
  3878. includes important performance improvements, based on rewrites of some key
  3879. algorithms, and quite a few new Level 2 / Display PostScript facilities.
  3880.  
  3881. Procedures
  3882. ----------
  3883.  
  3884. Fixes bugs:
  3885.     - The rule for compiling gconfig.c didn't include the -I switches.
  3886.     - .bat files were being distributed with a \n line terminator
  3887. rather than \r\n.
  3888.     - A CLOSE MODULE_LIST was needed after END_COMPILE: in the VMS
  3889. command files.
  3890.     - Unix systems couldn't handle multiple drivers with overlapping
  3891. sets of files.
  3892.     - -s<name> defined <name> as a null, rather than as an empty string.
  3893.  
  3894. Adds gconfig.ps to the list of needed configuration files.
  3895.  
  3896. Changes the way that the makefile handles nested .h files, so that it
  3897. doesn't have to `touch' them.
  3898.  
  3899. Adds the loadallfonts procedure to gs_fonts.ps.
  3900.  
  3901. Changes the standard DOS configuration to include VGA, EGA, VESA, Epson,
  3902. BubbleJet, and H-P printer drivers.
  3903.  
  3904. Renames ghost.mak as gs.mak, and gdevs.mak as devs.mak.
  3905.  
  3906. Adds a USE_ASM flag so that one can build a DOS version of Ghostscript
  3907. without having an assembler.
  3908.  
  3909. Splits off common code from the two MS-DOS makefiles into tccommon.mak.
  3910.  
  3911. Replaces the COPYING and LICENSE files with a new LICENSE file containing
  3912. version 2 of the GNU General Public License.
  3913.  
  3914. Removes DEVICES and DEVICE_OBJS from the makefiles, since they are no
  3915. longer needed.
  3916.  
  3917. Adds a GS_DEVICE environment variable to supply a default device name if
  3918. desired.
  3919.  
  3920. Adds ansihead.mak and unix-ansi.mak, to parallel [g]cc-head.mak and
  3921. unix-[g]cc.mak, for other ANSI C compilers.
  3922.  
  3923. Changes the way that optional features are defined in the makefiles, so
  3924. that they actually work.
  3925.  
  3926. Adds support for the Watcom C/386 compiler.
  3927.  
  3928. Allows # in the command line as equivalent to =, to compensate for
  3929. brain-damaged MS-DOS shell.
  3930.  
  3931. Adds -sOUTPUTFILE= to set the output file or pipe.
  3932.  
  3933. Adds -dWRITESYSTEMDICT to leave systemdict writable.
  3934.  
  3935. Utilities
  3936. ---------
  3937.  
  3938. Fixes bugs:
  3939.     - pcharstr.ps insisted on having Subrs be present in the font.
  3940.     - pcharstr.ps decoded negative numbers between -108 and -1131
  3941. incorrectly.
  3942.     - pfbtogs.ps didn't handle packets longer than 64K correctly.
  3943.  
  3944. Changes the bdftops utility so that it makes entries for UnderlinePosition
  3945. and UnderlineThickness in FontInfo, and so that it always records a
  3946. FullName (the FontName if no other is provided).
  3947.  
  3948. Changes the name of the pfbtops utility to pfbtogs, because groff already
  3949. includes a program called pfbtops.
  3950.  
  3951. Adds the gslp utility for doing "line printing" of text files, similar to
  3952. enscript + lpr.
  3953.  
  3954. Adds a new variable DITHERPPI that enables a different dither pattern,
  3955. claimed to be better for printers.
  3956.  
  3957. Adds the font2c utility for compiling Type 1 fonts into C, so they can be
  3958. linked into an executable rather than loaded dynamically.
  3959.  
  3960. Drivers
  3961. -------
  3962.  
  3963. Fixes bugs:
  3964.     - gdev_prn_copy_scan_lines was erroneously masking the last byte
  3965. of data even on color printers, as was paintjet_print_page.
  3966.     - The TruFax driver had a couple of compilation errors, since it
  3967. hadn't been compiled in a while.
  3968.     - The BGI driver sometimes didn't consult BGIPATH when looking for
  3969. .BGI files.
  3970.     - initclip did the wrong thing with memory devices.
  3971.     - The BGI driver didn't look in BGIDIR for .BGI files.
  3972.     - The Epson driver didn't set the right margin properly with
  3973. ESC+Q.
  3974.     - The BJ-10e driver was badly broken.
  3975.     - gdev_prn_open/close_printer didn't reset the command list file,
  3976. so it was taking quadratic time to print multi-page documents.
  3977.  
  3978. Adds color to the SunView driver.
  3979.  
  3980. Adds selectable resolution (75, 100, 150, or 300 DPI) to the
  3981. DeskJet/LaserJet driver.
  3982.  
  3983. Changes gssetdev so that drivers can specify special libraries to be
  3984. loaded, as well as object files.
  3985.  
  3986. Adds a driver for VESA-compliant SuperVGA displays.  This driver handles
  3987. all resolutions from 640 x 400 up to 1280 x 1024, in 256-color mode.  The
  3988. default is VGA resolution (640 x 480).
  3989.  
  3990. Adds a driver for the ATI Wonder SuperVGA card, and for SuperVGA cards
  3991. using the Tseng Labs ET3000 or ET4000 chip such as the STB VGA EM-16 and
  3992. the Orchid ProDesigner II (256-color modes only).
  3993.  
  3994. Adds a driver for Trident and Tseng Labs SuperVGA cards in 800 x 600,
  3995. 16-color modes (for cards with only 256K of memory).
  3996.  
  3997. Adds user-contributed drivers for the Ricoh 4081, DEC LN03, Canon LBP-8II,
  3998. and H-P DeskJet 500C printers.
  3999.  
  4000. Adds Tim Theisen's Ghostview changes to the X11 driver.
  4001.  
  4002. MAKES NON-BACKWARD-COMPATIBLE CHANGES TO THE DRIVER PROCEDURE INTERFACE as
  4003. follows:
  4004.  
  4005.     - Changes map_rgb_color and map_color_rgb to always work in a
  4006.         16-bit color value space, rather than a space defined by the
  4007.         maximum number of distinct colors provided by the device.
  4008.  
  4009.     - Adds an argument to the output_page procedure to indicate
  4010.         whether the procedure is being called for copypage or
  4011.         showpage, and a num_copies argument.
  4012.  
  4013.     - Adds a gx_bitmap_id to the copy_ and tile_ procedures, so that
  4014.         drivers can cache bitmaps in the server or device if they want
  4015.         to.
  4016.  
  4017.     - Removes fill_trapezoid and tile_trapezoid.
  4018.  
  4019.     - Adds a new get_bits procedure for reading the bits back from the
  4020.         driver buffer (when possible), replacing copy_scan_lines.
  4021.         This procedure takes a new argument describing padding and
  4022.         byte swapping, and returns a different value from
  4023.         copy_scan_lines.
  4024.  
  4025.     - Adds get_props and put_props procedures for accessing arbitrary
  4026.         additional properties of devices.  The interface is quite
  4027.         complex, but provides a great deal of flexibility.
  4028.  
  4029. See drivers.doc for details.
  4030.  
  4031. Changes gdev_mem_bytes_per_scan_line to gdev_prn_bytes_per_scan_line.
  4032.  
  4033. Adds a user-contributed driver for DigiBoard, Inc.'s fax software.
  4034.  
  4035. Fonts
  4036. -----
  4037.  
  4038. Changes Type1BuildChar so it uses the information from the Metrics
  4039. dictionary in the font, if Metrics is present.
  4040.  
  4041. Changes findfont (.loadfont) so it recognizes .PFB fonts and can load them
  4042. directly.  Also changes .loadfont to disable packing temporarily, because
  4043. some fonts rely on procedures being writable (!).
  4044.  
  4045. Interpreter
  4046. -----------
  4047.  
  4048. Fixes bugs:
  4049.     - The hypot function is not available on some Unix systems.
  4050.     - Ghostscript didn't flush and close files when exiting.
  4051.     - In statusdict, the /margins procedure used .leftmargin, but
  4052. /setmargins used .lmargin.
  4053.     - An out-of-range putinterval would simply do nothing, rather than
  4054. reporting an error.
  4055.     - If an attempt to allocate a block larger than the allocator's
  4056. chunk size (20K) failed, the allocator would erroneously think it had
  4057. succeeded.
  4058.     - The bind operator made the top-level procedure read-only, as
  4059. well as interior procedures.
  4060.     - gs.c copied 1 extra character for the value of strings defined
  4061. on the command line with -s...=, which could smash the first byte of the
  4062. next object in memory.
  4063.     - copying a dictionary erroneously required the maxlength of the
  4064. destination to be greater than or equal to the maxlength of the source,
  4065. rather than the length of the source.
  4066.     - undef didn't correctly decide when to mark a deleted entry as
  4067. deleted vs. free; as a result, some keys couldn't be looked up properly
  4068. after an undef.
  4069.     - type1encrypt and type1decrypt didn't set the size of the result
  4070. properly.
  4071.     - cvi and cvr didn't allow leading or trailing whitespace in
  4072. strings.
  4073.     - cvs didn't cause an error if the destination string was too
  4074. short.
  4075.     - Many operators didn't check correctly for stack underflow (off
  4076. by 1).
  4077.     - `for' used reals, rather than integers, if the limit was a real,
  4078. even if the initial value and increment were integers.
  4079.     - `restore' didn't properly invalidate copies of the save object
  4080. being restored from; `save dup restore restore' would crash.
  4081.     - `restore' sometimes didn't undo stores into matrices that were
  4082. stored into by operators.  (The identity matrix always had l_new set.)
  4083.     - readline gave a rangecheck if the input line exactly filled the
  4084. string.
  4085.     - `--' as the last switch on the command line caused a crash
  4086. rather than an error message.
  4087.     - On MS-DOS systems, filenameforall didn't handle patterns with a
  4088. drive or directory specifier properly.
  4089.     - stroke sometimes called gz_draw_line_fixed even if the line went
  4090. outside the clipping box by 1 pixel.
  4091.  
  4092. Changes the loop that binds procedure "operators" to entirely disable the
  4093. handling of the typecheck error, rather than to use stopped.  This cuts
  4094. initialization time significantly, and also eliminates about 35K of wasted
  4095. space (for saving the stacks).
  4096.  
  4097. Changes the version "operator" so it returns 47.0.  Adds "revision" to
  4098. define the Ghostscript version # x 100.
  4099.  
  4100. Adds gscurrentresolution and gssetresolution procedures for getting and
  4101. setting the device resolution.
  4102.  
  4103. Adds -r<res> and -r<xres>x<yres> as command line options for setting
  4104. device resolution.
  4105.  
  4106. Adds a facility for incrementally loading the individual CharStrings of a
  4107. Ghostscript font from the disk.  This can save a lot of memory, at the
  4108. expense of slower rendering.  (It is intended primarily for MS-DOS
  4109. systems.)
  4110.  
  4111. Changes findlibfile to return the name of the file that was actually
  4112. opened, as well as the file itself, when the operation succeeds.
  4113.  
  4114. Changes the name of the main entry to the interpreter from interpret to
  4115. gs_interpret, because of a conflict with a Data General library procedure.
  4116.  
  4117. Adds the .setmetrics operator to set the metrics for the current
  4118. character for Type 1 fonts.
  4119.  
  4120. Adds more LaserWriter-specific entries to statusdict.
  4121.  
  4122. Gives names to all the internal `operators', so they will print out
  4123. reasonably when an error occurs.
  4124.  
  4125. Extends the status operator to accept a string and return file
  4126. information, as defined for Level 2 PostScript.
  4127.  
  4128. Adds the filter operator and some specific filters: ASCII85Encode,
  4129. ASCII85Decode, ASCIIHexEncode, ASCIIHexDecode, eexecDecode, NullEncode,
  4130. PFBDecode, and the null case of SubFileDecode.
  4131.  
  4132. Extends the scanner to recognize the Level 2 << and >> tokens.
  4133.  
  4134. Adds a facility for extracting the text strings from a PostScript file and
  4135. writing them out in a simple format (selected by -dASCIIOUT, implemented
  4136. by gs_2asc.ps).
  4137.  
  4138. Implements all of the remaining Display PostScript facilities that are
  4139. also in Level 2 (i.e., everything in section A.1.3 of the PostScript
  4140. Language Reference Manual, Second Edition, that is not also in section
  4141. A.1.2).  The virtual memory operations are all stubs; the new halftone
  4142. options are not fully implemented.
  4143.  
  4144. Changes makeimagedevice to use a string of gray or RGB values, rather than
  4145. an array of color objects, to specify the palette.  Removes
  4146. currentgscolor and setgscolor from the interpreter, but leaves t_color
  4147. objects in, since they may be useful later.
  4148.  
  4149. Adds getdeviceprops and putdeviceprops for manipulating device properties.
  4150. Currently defined properties for all devices: InitialMatrix, HWResolution,
  4151. HWSize, Name.  Currently defined properties for printers: BufferSpace,
  4152. MaxBitmap, OutputFile.  OutputFile allows |command for piping on Unix
  4153. systems.
  4154.  
  4155. Removes deviceparams and makedevice.  Adds devicedefaultmatrix.
  4156.  
  4157. Implements reversepath.
  4158.  
  4159. Makes copy work on devices.
  4160.  
  4161. MS-DOS specific
  4162. - - - - - - - -
  4163.  
  4164. Fixes bugs:
  4165.     - iutilasm.asm wouldn't assemble with newer versions of MASM if
  4166. CPU_TYPE was set to 286 or above.
  4167.     - CPU_TYPE=386 didn't properly substitute the faster
  4168. multiply/divide routines under Turbo C++ or Borland C++, only under the
  4169. original Turbo C.
  4170.  
  4171. Library
  4172. -------
  4173.  
  4174. Fixes bugs:
  4175.     - A curve whose first and last points were the same wouldn't get
  4176. drawn at all.
  4177.     - A bug in the Turbo C++ compiler generated bad code when shifting
  4178. a long right by 1 bit.
  4179.     - If stroking a dashed line ever encountered a segment that was
  4180. completely blank, Ghostscript would indirect through a null pointer.
  4181.     - arc and arcn gave an error if the radius was negative.
  4182.     - stroke always used the general algorithm, even if the line was
  4183. guaranteed to be thin.
  4184.     - arc and arcn erroneously reduced the angles mod 360.
  4185.     - Very large or negative 32-bit numbers in Type 1 fonts didn't
  4186. work properly on MS-DOS systems (the ff0000 bits got set to zero). 
  4187.     - Color printer devices rendering entirely in memory only
  4188. allocated a monochrome-sized bitmap.
  4189.     - clip and eoclip didn't intersect the paths properly in the
  4190. general case.
  4191.     - charpath erroneously rounded the current point to an integral
  4192. value, causing characters to be spaced improperly.
  4193.     - The definition of max_color_param got some compilers confused.
  4194.     - charpath always used quadratic time and space, and dropped all
  4195. but the last character when used with a Type 3 font.
  4196.     - Stroking a path with a 180 degree angle would incorrectly miter
  4197. instead of beveling.
  4198.     - Type 1 fonts used the current flatness for curves, which could
  4199. produce bad (and inconsistent) results.
  4200.     - Stroking a degenerate line segment produced incorrect results.
  4201.  
  4202. Changes the character cache to use the UniqueID as the key, when
  4203. available, instead of the font pointer.  This dramatically improves
  4204. performance when fonts are getting removed and reloaded because of page
  4205. isolation with save/restore.
  4206.  
  4207. Removes some unnecessary casts to (float) from gsmatrix.c and gscoord.c.
  4208.  
  4209. Changes the Type 1 interpreter so that it rounds line and curve endpoints
  4210. to the center of the nearest half-pixel, and omits null line segments.
  4211. This both speeds up rendering at small sizes and improves output quality.
  4212.  
  4213. Changes gs_deviceparams to return resolution as well as extent; changes
  4214. gs_makedevice to accept resolution as well as extent.
  4215.  
  4216. Replaces the algorithm for approximating circular arcs with curves with a
  4217. more accurate one.
  4218.  
  4219. Changes gs_point and gs_rect to use doubles rather than floats.
  4220.  
  4221. Adds gs_setmetrics, for overriding Type 1 font metrics for the current
  4222. character.
  4223.  
  4224. Changes clipping to use lists of rectangles rather than path intersection.
  4225.  This makes a big difference when clipping bitmaps (including characters).
  4226.  
  4227. Changes the character cache to discard entries incrementally, rather than
  4228. clearing the entire cache when it fills up.
  4229.  
  4230. Changes the implementation of transfer functions to use a cached map,
  4231. built when the transfer function is set.  This makes transfer functions
  4232. work properly in all situations, including images.
  4233.  
  4234. Defines a .quit operator that takes an exit code, and redefines quit in
  4235. terms of it.
  4236.  
  4237. Adds support for 16-bit-per-pixel devices in gdevmem.
  4238.  
  4239. Adds gs_copydevice and gs_deviceinitialmatrix; removes gs_deviceparams and
  4240. gs_makedevice.
  4241.  
  4242. Changes setscreen to ensure that the cell is always at least 4x4 pixels in
  4243. size.
  4244.  
  4245. Version 2.3 (8/28/91)
  4246. ===========
  4247.  
  4248. This is a minor release to fix two bugs and add the PaintJet driver, which
  4249. didn't make it into 2.2.
  4250.  
  4251. Utilities
  4252. ---------
  4253.  
  4254. Changes the pstoppm utility so it counts pages correctly even in the
  4255. presence of arbitrary saves and restores.
  4256.  
  4257. Drivers
  4258. -------
  4259.  
  4260. Adds a new, "supported" PaintJet driver.
  4261.  
  4262. Changes the Epson driver to use ESC+D rather than ESC+\ for horizontal
  4263. positioning, since many printers don't support the latter.
  4264.  
  4265. Adds horizontal double-density (two-pass) printing to the Epson driver, so
  4266. it can do 240 x 60 and 360 x 180 densities.  (Vertical double density is
  4267. not supported yet.)
  4268.  
  4269. Version 2.2 (6/1/91)
  4270. ===========
  4271.  
  4272. The purpose of this release is to add save/restore, and a few
  4273. miscellaneous Level 2 P*stScr*pt features such as undef.  It also includes
  4274. major improvements in graphics quality and in handling of high-resolution
  4275. printers.
  4276.  
  4277. Procedures
  4278. ----------
  4279.  
  4280. Changes the version numbering to M.mpp rather than M.m.p, so that
  4281. `version' can be a real number for those programs that insist on it.
  4282.  
  4283. Renames ghost.ps as gs_init.ps, gfonts.ps as gs_fonts.ps, and statusd.ps
  4284. as gs_statd.ps.  The initialization files now all are named gs_*.ps.
  4285.  
  4286. Renames gdevs.{c,h,tl} as gconfig.{c,h,tl}.
  4287.  
  4288. Changes the relevant makefiles and command files so that a single build
  4289. can contain several drivers that share code, e.g., the Epson driver and
  4290. the DeskJet driver.
  4291.  
  4292. Changes gs_init.ps so it relies on an external gconfig.ps file rather than
  4293. making a specific test for the presence of Level 2 features.
  4294.  
  4295. Adds an entry for uglyr.gsf to the makefile.
  4296.  
  4297. Removes the distinction between CCA and CCNA, since most of the files now
  4298. contain constructs that require non-ANSI compilation on MS-DOS platforms.
  4299.  
  4300. Adds a `man' page for the ansi2knr utility.
  4301.  
  4302. Changes the documentation (use.doc) to show how to use -sDEVICE=<device>,
  4303. or the selectdevice procedure, to select devices by name.
  4304.  
  4305. Adds DEVICE_DEVS to the makefiles (analogous to DEVICES and DEVICE_OBJS).
  4306. This finally makes the make procedure fully automatic.
  4307.  
  4308. Adds the name of the initialization file (gs_init.ps) as a
  4309. platform-specific makefile parameter, GS_INIT.
  4310.  
  4311. Removes the test program gt.{c,tr} from the fileset, since it is not
  4312. useful to users.
  4313.  
  4314. Moves the Symbol encoding vector to a separate file (symbol_e.ps), from
  4315. which it is loaded when first used.
  4316.  
  4317. Changes the error handler so it can handle errors that occur while reading
  4318. the initialization files.
  4319.  
  4320. Extends ansi2knr so it can handle `void' and `...' in parameter lists.
  4321.  
  4322. Adds quit.ps to the set of installed files.
  4323.  
  4324. MS-DOS-specific changes
  4325. - - - - - - - - - - - -
  4326.  
  4327. Adds the VGA and BGI drivers to the standard MS-DOS configuration, and
  4328. makes VGA the default.
  4329.  
  4330. Adds a `+' and a newline at the end of gs.tr, to avoid problems with file
  4331. transfer programs or editors that add a newline at the end of files.
  4332.  
  4333. Changes the name of msdos.mak to turboc.mak, and creates a new tbcplus.mak
  4334. makefile for use with Turbo C++ and Borland C++.
  4335.  
  4336. Changes the extension of the loader response files from .tl to .tr.
  4337.  
  4338. Changes the default search path from c:/ghost and c:/ghost/fonts to c:/gs
  4339. and c:/gs/fonts.
  4340.  
  4341. Changes the directory separator from `|' back to ';', since it appears
  4342. that DOS can handle a ; in a command line if it is prefixed with \.
  4343.  
  4344. Unix-specific changes
  4345. - - - - - - - - - - -
  4346.  
  4347. Changes the uses of install in unixtail.mak so they only install a single
  4348. file at a time, which is all that the standard Unix install allows.
  4349.  
  4350. Removes the duplicate files (README/readme, LICENSE/license,
  4351. COPYING/copying, Fontmap/fontmap).
  4352.  
  4353. Changes the ld flags from LDPLAT to LDFLAGS.
  4354.  
  4355. Adds XCFLAGS and XLDFLAGS.  These are concatenated with CFLAGS and LDFLAGS
  4356. respectively.  The intention is that they be set from the `make' command
  4357. line if desired.
  4358.  
  4359. VMS-specific changes
  4360. - - - - - - - - - -
  4361.  
  4362. Repairs the omission of ZPACKED from the VMS build lists.
  4363.  
  4364. Drivers
  4365. -------
  4366.  
  4367. Fixes bugs:
  4368.     - The SunView driver produced semi-garbage on little-endian
  4369. platforms (Sun-386i) because it didn't swap the bit order.
  4370.     - The X driver would dump core if it couldn't open the display and
  4371. the DISPLAY environment variable wasn't set.
  4372.     - The X driver relied on white = 0, black = ones in a couple of
  4373. places;
  4374.     - The X driver would return an error, instead of clipping, if
  4375. asked to display outside the window.
  4376.     - The X driver would create inappropriately sized windows, because
  4377. it believed the server's report of the screen resolution.
  4378.  
  4379. Adds Fran Taylor's Private Eye driver to gdevs.mak and the fileset (not
  4380. supported by Aladdin Enterprises).
  4381.  
  4382. Adds Neil Ostroff's TruFax driver to gdevs.mak and the fileset (not
  4383. supported by Aladdin Enterprises).
  4384.  
  4385. Makes the scratch file template for the printer drivers a per-platform
  4386. quantity (gp_scratch_file_name_template).  Puts the default scratch files
  4387. for Unix in /usr/tmp rather than /tmp.
  4388.  
  4389. Changes the SunView driver to prevent the Ghostscript window from being
  4390. destroyed (which badly confuses the interpreter).
  4391.  
  4392. Extends the Epson driver to handle a variety of print densities in both X
  4393. and Y, to handle 24-pin as well as 8-pin graphics, and to allow optional
  4394. specification of default density in the makefile (gdevs.mak).
  4395.  
  4396. Refactors the printer drivers so that a single driver handles both DeskJet
  4397. and LaserJet.  Adds LaserJet drivers that use the new compression modes on
  4398. the LJ IId/IIp and LJ III.
  4399.  
  4400. Changes all the printer drivers to use band lists rather than bitmap
  4401. paging as the buffering method.  (The individual drivers need only a
  4402. one-line change to replace mem_copy_scan_lines with
  4403. gdev_prn_copy_scan_lines with a different argument.)
  4404.  
  4405. Adds the halftone phase as additional arguments to tile_rectangle and
  4406. tile_trapezoid.
  4407.  
  4408. Adds an entirely new and much simpler PaintJet driver, using the new band
  4409. list interface.
  4410.  
  4411. Adds margin information to the device structure.  This is currently only
  4412. relevant for printer devices.
  4413.  
  4414. Adds BGIPATH and BGIUSER environment variables, allowing additional
  4415. control of the BGI driver.
  4416.  
  4417. Changes the x/y_pixels_per_inch member of the device structure from int to
  4418. float.
  4419.  
  4420. Fonts
  4421. -----
  4422.  
  4423. Patches gs_fonts.ps so definefont will add an isFixedPitch entry to
  4424. FontInfo if there isn't one there.
  4425.  
  4426. Removes the old "type 7 path" encoding code from gs_fonts.ps.
  4427.  
  4428. Changes bdftops so it puts isFixedWidth and ItalicAngle entries in the
  4429. FontInfo dictionary of the fonts it creates, since some P*stScr*pt
  4430. programs rely on this.
  4431.  
  4432. Changes bdftops so it synthesizes as many missing characters as possible
  4433. out of the ones that are there (in particular: synthesizes accents out of
  4434. punctuation marks, and accented characters using seac.)  The results
  4435. aren't all that good, but they're a lot better than having characters
  4436. missing out of the font.
  4437.  
  4438. Utilities
  4439. ---------
  4440.  
  4441. Adds a pfbtops utility for converting .PFB fonts to standard Ghostscript
  4442. fonts.
  4443.  
  4444. Fixes bugs:
  4445.     - ps2image didn't reset things properly between pages for
  4446. multi-page documents.
  4447.  
  4448. Interpreter
  4449. -----------
  4450.  
  4451. Makes Ghostscript recognize `-' alone as meaning that it should read from
  4452. standard input as though it were a file.  This allows Ghostscript to
  4453. accept a pipe as input.
  4454.  
  4455. Fixes bugs:
  4456.     - seac in type1addpath used the current font's encoding, not
  4457. StandardEncoding.
  4458.     - type1decryptfile (eexec) didn't recognize binary (as opposed to
  4459. hex) representation.
  4460.     - Mentioning a name whose value was a no-access object caused an
  4461. invalidaccess error.
  4462.     - There was a bogus definition of `run' in zfile.c.
  4463.     - The interpreter didn't handle end-of-file on stdin properly.
  4464.     - Real numbers with an 'e' or 'E' but no decimal point were not
  4465. recognized.
  4466.     - On MS-DOS systems, inside strings, \ followed by a newline was
  4467. not discarded properly.
  4468.     - On MS-DOS systems, the long unsigned divide routine sometimes
  4469. gave incorrect answers.  Among other things, this caused alternate-radix
  4470. numbers sometimes to crash the interpreter.
  4471.     - cvrs didn't do the right thing about reals or negative integers.
  4472.     - .echo.mode was being reset with def instead of store, and was
  4473. defined in systemdict rather than userdict.
  4474.     - setgray and settransfer didn't interact properly.
  4475.     - 16#80000000 was being interpreted as a signed integer (and
  4476. converted to a real) rather than an unsigned one.
  4477.     - atan returned 0 sometimes when it should have returned 180.
  4478.     - currentcmykcolor was defined wrong.
  4479.  
  4480. Removes the filename operator, since no standard Ghostscript code used it,
  4481. and it caused problems with some P*stScr*pt files.
  4482.  
  4483. Implements new operators: filenameforall, selectfont (as a procedure),
  4484. stringmatch, undef.
  4485.  
  4486. Adds new standard procedures: selectdevice.
  4487.  
  4488. For MS-DOS, requires that the operand and execution stacks be located in
  4489. the data segment, and uses short pointers to address them.  This produces
  4490. significantly smaller and faster code.  (These changes are not visible to
  4491. users or library clients.)
  4492.  
  4493. Changes the assignment of attribute bits, and adds new bits for
  4494. save/restore and the garbage collector.  Changes many of the macros in
  4495. store.h to support save/restore.  (These changes are not visible to users
  4496. or library clients.)  Implements save and restore.
  4497.  
  4498. Moves type names from gs_init.ps to ghost.h and ztype.c.
  4499.  
  4500. Moves error names from gs_init.ps to errors.h and iinit.c.
  4501.  
  4502. Introduces gp.h as a documented interface to the platform-specific files.
  4503.  
  4504. Adds the -- switch, which allows Ghostscript programs to take arguments
  4505. from the command line.
  4506.  
  4507. Changes many uses of the name `name' to something else, to avoid upsetting
  4508. the Microsoft C compiler.
  4509.  
  4510. Really implements packed arrays -- they took the same amount of space as
  4511. ordinary arrays in previous versions.
  4512.  
  4513. Changes exitserver in serverdict so that it just clears the stacks.  (This
  4514. isn't the correct fix, but it will do as a workaround.)
  4515.  
  4516. Makes many miscellaneous small changes to pacify various compilers.
  4517.  
  4518. Changes gs_fonts.ps so that when "quiet" mode is selected (-q switch),
  4519. Ghostscript doesn't print anything when loading fonts or when substituting
  4520. for undefined characters.
  4521.  
  4522. Defines the name consisting of just a control-D as a no-op, because some
  4523. P*stScr*pt-generating applications put control-Ds in their output.
  4524.  
  4525. Implements halftone phase (sethalftonephase and currenthalftonephase
  4526. operators).
  4527.  
  4528. Removes the -E switch, since it is no longer useful.
  4529.  
  4530. Changes the -w and -h switches to a single -g (geometry) switch, with
  4531. usage -g<width>x<height>.  Makes the -h switch, and a new -? switch, print
  4532. usage help.
  4533.  
  4534. Implements correct handling of stack overflow errors (makes an array out
  4535. of the contents of the overflowing stack, and resets the stack, before
  4536. invoking the error handler).
  4537.  
  4538. Adds t_oparray (`operators' defined as procedures) and the makeoperator
  4539. operator.  This is so that programs like the Distillery that rely on all
  4540. operators being bound by `bind' will work properly.
  4541.  
  4542. Adds a new NOPAUSE flag to suppress the prompt and pause at copypage and
  4543. showpage.
  4544.  
  4545. Library
  4546. -------
  4547.  
  4548. Fixes bugs:
  4549.     - gs_type1_interpret didn't store the encryption state or the skip
  4550. count before returning to let the client handle a seac or an endchar in
  4551. the middle of a seac.
  4552.     - The definition of the Type 1 operator ce_testadd was based on
  4553. wrong information; the operator takes only 2 operands and does something
  4554. unknown.
  4555.     - mem_true24_copy_mono wasn't incrementing the destination pointer
  4556. if the color was transparent, leading to garbled characters.
  4557.     - gx_lookup_fm_pair would sometimes look at one entry beyond the
  4558. end of the cached font/matrix pair area.  (This probably had no practical
  4559. effect.)
  4560.     - gs_type1_interpret didn't save the current point when returning
  4561. to the client for a callothersubr, causing some characters to be rendered
  4562. displaced (such as some of the chess pieces in chess.ps).
  4563.     - gs_setgray, gs_sethsbcolor, gs_setrgbcolor, gs_setflat, and
  4564. gs_setlinewidth gave errors for out-of-range operands rather than forcing
  4565. them into range.
  4566.     - Transfer functions were not actually supported.
  4567.     - The area fill algorithm failed on certain complex paths.
  4568.     - The current point was sometimes defined when a BuildChar
  4569. procedure was called.
  4570.     - Stroking a degenerate line didn't display anything for round
  4571. caps or joins.
  4572.     - If the ends of a curve had exactly the same X coordinate, the
  4573. curve sometimes wouldn't be displayed.
  4574.     - Very thin lines that went outside the clipping region would
  4575. sometimes be displayed as dashed, or not at all.
  4576.     - The translation in a FontMatrix was ignored.
  4577.     - Very wide, shallow lines would color extraneous pixels when
  4578. using bevel or miter joins.
  4579.     - Dashed lines didn't join properly at the beginning of a closed
  4580. path.
  4581.     - 0-degree arcs didn't add the appropriate line (possibly
  4582. degenerate) to the path.
  4583.     - gs_type1_interpret didn't reset the callsubr stack when starting
  4584. the base character of a seac, which caused confusion if the accent's
  4585. endchar fell inside a Subr.
  4586.     - Non-monochrome memory memory devices weren't checking the
  4587. arguments of the drawing procedures properly.
  4588.     - The initial clipping rectangle for memory devices was being
  4589. computed wrong.
  4590.     - Null devices had a semi-infinite clipping rectangle instead of
  4591. an empty one.
  4592.     - gs_setlinewidth was treating negative arguments as zero, instead
  4593. of taking the absolute value.
  4594.     - imagemask with a dithered color used a solid color rather than
  4595. the dithered one.
  4596.  
  4597. Tweaks the area fill and image rendering algorithms to be a little more
  4598. liberal with paint when being used to render characters.
  4599.  
  4600. Changes the name of the 8-bit mapped color memory device from
  4601. mem_mapped_color_device to mem_mapped8_color_device.
  4602.  
  4603. Changes the memory devices so that on little-endian platforms, they can
  4604. store the bytes within a word in either order.  (Little-endian order
  4605. allows efficient 32-bit updating, big-endian is required when displaying
  4606. or writing to a printer or a file.)
  4607.  
  4608. Implements halftone phase.
  4609.  
  4610. Replaces the trapezoid fill algorithm with a much more accurate one
  4611. inspired by a contribution from Paul Haeberli.  This also changes the
  4612. graphics convention back to filling only pixels whose center falls within
  4613. the region to be filled.
  4614.  
  4615. Changes the character cache to allocate headers and bits contiguously out
  4616. of a single ring buffer.
  4617.  
  4618. Changes gs_imagemask and gs_imagemask_init to take a thickness adjustment
  4619. parameter.
  4620.  
  4621. Changes gs_setcachedevice and gs_setcharwidth to take the graphics state
  4622. as a parameter.
  4623.  
  4624. Renames gx_device_memory_bitmap_size as gdev_mem_bitmap_size,
  4625. mem_copy_scan_lines as gdev_mem_copy_scan_lines, and
  4626. mem_bytes_per_scan_line as gdev_mem_bytes_per_scan_line.
  4627.  
  4628. Version 2.1.1 (1/15/91)
  4629. =============
  4630.  
  4631. This is a sub-release distributed to fix a few early bugs in 2.1, just in
  4632. time for the new GNU master tape.
  4633.  
  4634. Build procedures
  4635. ----------------
  4636.  
  4637. Removes all of the (undebugged) Level 2 code from the fileset, as well as
  4638. the (unused) file gdevvga.c.
  4639.  
  4640. Changes the tar file so that the files are stored in the directory
  4641. gs<version> rather than simply gs, e.g., gs211.
  4642.  
  4643. Interpreter
  4644. -----------
  4645.  
  4646. Changes the scanner so that \ is recognized within strings regardless of
  4647. whether the scanner is reading from a string or from a file.  This is
  4648. compatible with newer P*stScr*pt interpreters, and with the newer
  4649. P*stSc*pt language specification, but not with the older specification in
  4650. the original PostScript Language Reference Manual.
  4651.  
  4652. Drivers
  4653. -------
  4654.  
  4655. Fixes the max_value macro in gdevmem.c so that compilers won't complain
  4656. about a left shift by 32.
  4657.  
  4658. Adds 'byte' to the list of types that gdevx.c must sidestep because header
  4659. files use them.
  4660.  
  4661. Library
  4662. -------
  4663.  
  4664. Changes the computation of penum->unpack in gsimage.c so as not to upset
  4665. compilers that don't treat procedures and pointers to procedures as
  4666. compatible types for conditional expressions.
  4667.  
  4668. Version 2.1 (12/31/90)
  4669. ===========
  4670.  
  4671. This is primarily a bug fix release to clean up problems in 2.0.  It also
  4672. implements a first cut at the new color operators.
  4673.  
  4674. Build procedures
  4675. ----------------
  4676.  
  4677. Changes the separator for multiple directories in MS-DOS from ';' to '|',
  4678. since there is no way to include a ';' in a command line.
  4679.  
  4680. Adds <dir>/fonts to the default search path, where <dir> is c:/ghost for
  4681. MS-DOS systems and `pwd` for Unix systems.
  4682.  
  4683. Adds new documentation describing how to direct output to the printer.
  4684.  
  4685. Changes the PROCTYPE and USE8087 options in MSDOS.MAK to CPU_TYPE and
  4686. FPU_TYPE.  The latter now indicates the type of FPU to generate code for,
  4687. if any.
  4688.  
  4689. Drivers
  4690. -------
  4691.  
  4692. Adds a driver for the Canon BubbleJet BJ10e.
  4693.  
  4694. Modifies the EGA driver to handle (non-standard) frame buffers larger than
  4695. 64K.  Adds drivers for the VGA and for the EIZO MDB-10 (a 1024 x 768 frame
  4696. buffer).
  4697.  
  4698. Changes the X driver so that it clips to the window dimensions, rather
  4699. than reporting an error.
  4700.  
  4701. Notes that the H-P LaserJet driver, like the DeskJet driver, works under
  4702. Unix as well as MS-DOS.
  4703.  
  4704. Adds support for 120 X DPI mode, and for the LQ-1500, to the Epson driver.
  4705.  
  4706. Fonts
  4707. -----
  4708.  
  4709. Fixes bugs in bdftops:
  4710.     - It was using /UniqueId instead of /UniqueID as the key for the
  4711. font unique ID.  This effectively disabled the font cache.
  4712.     - The definition for .notdef was bogus -- an invalid CharString.
  4713.  
  4714. Changes ghost.ps and gfonts.ps so that NullFont is the initial font,
  4715. rather than Ugly.
  4716.  
  4717. Arranges things so that when attempting a font substitution, if the
  4718. default font is not found, NullFont is used instead.
  4719.  
  4720. Extends bdftops so that if certain easily synthesized characters are
  4721. missing from a font, it will attempt to synthesize them using available
  4722. characters.
  4723.  
  4724. Interpreter
  4725. -----------
  4726.  
  4727. Extends the -T switch to allow specifying a printf template for the
  4728. arguments of the procedure being traced.
  4729.  
  4730. Fixes bugs:
  4731.     - /0 was interpreted as equivalent to 0 (a number) rather than a
  4732. literal name.
  4733.     - packedarray was defined as being like array, instead of like
  4734. array followed by astore.
  4735.     - Many minor and harmless type mismatches (and a couple of very
  4736. minor genuine bugs) were upsetting the Apollo C compiler.
  4737.     - exp was incorrectly failing in certain cases with a negative
  4738. first argument.
  4739.     - copyscanlines incorrectly required at least 4 elements on the
  4740. operand stack, although it correctly only used the top 3.
  4741.     - readhexstring incorrectly read 1 byte even if the string length
  4742. was zero.
  4743.     - Not every place that expected an array would accept a packed
  4744. array.
  4745.     - Very complex paths (and infrequently other things) could produce
  4746. a 'memory leak'.
  4747.     - / alone would skip following whitespace and gather following
  4748. characters, rather than creating an empty name.
  4749.     - ghost.ps left newerror defined as true in $error, which resulted
  4750. in an erroneous error report if a program executed a 'stop'.
  4751.     - The definition of exitserver in serverdict didn't clear the
  4752. stack.
  4753.     - currentfile returned an executable file, rather than a literal
  4754. one.
  4755.     - setfont for Type 1 fonts didn't check the UniqueID in the font
  4756. dictionary against the one in the font's Private dictionary.
  4757.     - A value stored in a dictionary under the key /xxx couldn't be
  4758. retrieved using the key (xxx), and vice versa.
  4759.     - charpath with a Type 1 font on a string containing a 'space'
  4760. would produce garbage (it released the parent path inappropriately).
  4761.     - bytesavailable did not work properly for terminal input.
  4762.  
  4763. Changes the interface to the memory allocator so that it always takes an
  4764. element size and an element count, like calloc instead of malloc (but note
  4765. that alloc does *not* clear just-allocated blocks).  Gets rid of the
  4766. special 'dynamic' allocation procedures.
  4767.  
  4768. Changes the random number operators to use a better implementation.
  4769.  
  4770. Changes the idiv operator so it will accept any numbers, not just
  4771. integers, as arguments.  (The PostScript manual doesn't allow this, but
  4772. implementations apparently do.)
  4773.  
  4774. Provides semi-fake but usable definitions for all of the color PostScript
  4775. extensions, including a real implementation of colorimage.
  4776.  
  4777. No longer uses the name 'null', which is apparently reserved by Microsoft
  4778. C.  Makes a number of other minor changes required to pacify the Microsoft
  4779. C compiler.
  4780.  
  4781. Implements %statementedit and %lineedit.  (%statementedit is equivalent to
  4782. %lineedit, which is wrong.)  Changes the interactive interpreter to use
  4783. %statementedit.
  4784.  
  4785. Changes the scanner to accept null, ctrl-K (vertical tab), and ctrl-L
  4786. (form feed) as whitespace.  Ctrl-L terminates a comment, null and ctrl-K
  4787. do not.
  4788.  
  4789. Allows a literal string as the 'proc' argument(s) for image, imagemask,
  4790. and colorimage.
  4791.  
  4792. Adds the following operators/procedures: arct, cleardictstack, deletefile,
  4793. renamefile.
  4794.  
  4795. Defines =print as a synonym for =, for the benefit of LaserPrep.
  4796.  
  4797. Implements non-zero PaintType for the show operators (but not for
  4798. charpath) for Type 1 fonts.
  4799.  
  4800. Adds the ISOLatin1Encoding encoding vector.
  4801.  
  4802. Renames currentcolor and setcolor as currentgscolor and setgscolor, to
  4803. avoid conflict with the Level 2 PostScript names.  Removes colorhsb,
  4804. colorrgb, hsbcolor, and rgbcolor.
  4805.  
  4806. Library
  4807. -------
  4808.  
  4809. Fixes bugs:
  4810.     - In a couple of places, a 0 was being passed as a pointer
  4811. argument without casting, which confused the Microsoft C compiler.
  4812.     - Image devices were not recognized properly in debugging
  4813. configurations.
  4814.     - Inverted-color monochrome image devices were not recognized
  4815. properly.
  4816.     - Images that exactly fill the drawing area rendered very slowly,
  4817. because they erroneously used the general clipping algorithm.
  4818.     - Images that are 1-for-1 with the device were incorrectly scaled
  4819. by a factor of 8 in X.
  4820.     - Rounding artifacts sometimes caused characters to be unevenly
  4821. offset vertically by 1 pixel.
  4822.     - Type 1 fonts that used the Flex feature resulted in garbled
  4823. images.
  4824.     - The show operator routines would incorrectly fill or stroke a
  4825. path that existed at the time the show was started.
  4826.     - setscreen truncated the cell size instead of rounding, which
  4827. could produce off-by-1 anomalies.
  4828.     - stroke would sometimes produce garbage (or nothing at all) for
  4829. very narrow lines.
  4830.     - path filling would only color the pixels whose centers fell
  4831. inside the path: the Adobe specification requires coloring a pixel if any
  4832. part of it falls inside the path.
  4833.  
  4834. Changes the Epson printer driver so that it drives the printer directly
  4835. rather than writing to a file.
  4836.  
  4837. Changes pathbbox so that if the path is empty but there is a current
  4838. point, it returns a null rectangle at the current point.
  4839.  
  4840. Changes gs_image_init to take an additional parameter (after bps) giving
  4841. the number of samples per pixel (1, 3, or 4), and an indication of whether
  4842. the samples for each pixel are together or separated (-3 or -4).
  4843.  
  4844. Renames the gs_image_data and gs_imagemask_data procedures as gs_image and
  4845. gs_imagemask, and removes the old versions of the latter.
  4846.  
  4847. Adds gs_colorimage.
  4848.  
  4849. Replaces Snoopy's color dithering algorithm with one contributed by Paul
  4850. Haeberli.
  4851.  
  4852. Changes gs_setgray, gs_[set]hsbcolor, and gs_[set]rgbcolor so that they
  4853. coerce arguments outside the range [0..1] back into the range, instead of
  4854. signalling an error.
  4855.  
  4856. Makes a number of minor changes required to pacify the Microsoft C
  4857. compiler.
  4858.  
  4859. Changes gs_arcto so that if the last argument is a null pointer, the
  4860. tangent points are not returned.
  4861.  
  4862. Removes gs_type1addpath, which is not useful.  (Clients must call
  4863. gs_type1_init and gs_type1_interpret directly.)
  4864.  
  4865. Implements the 'seac' opcode for Type 1 fonts, allowing fonts with accented
  4866. characters to display properly.
  4867.  
  4868. Implements the undocumented 'testadd' opcode for Type 1 fonts, which is
  4869. used by some Adobe fonts.
  4870.  
  4871. Renames gs_currentcolor and gs_setcolor as gs_currentgscolor and
  4872. gs_setgscolor.  Removes gs_colorhsb, gs_colorrgb, gs_hsbcolor, and
  4873. gs_rgbcolor.
  4874.  
  4875. Version 2.0 (9/12/90)
  4876. ===========
  4877.  
  4878. The main purpose of this release is to add fonts, support for multiple
  4879. devices, and imaging into memory.  It also fixes a number of miscellaneous
  4880. bugs.  (Unfortunately, accurate records of the bugs fixed are not
  4881. available.)  The changes were so extensive that we chose to increment the
  4882. major version number.
  4883.  
  4884. Miscellaneous
  4885. -------------
  4886.  
  4887. Doesn't attempt to open the .MAP file on Unix systems.
  4888.  
  4889. Adds mention of statusd.ps to interp.doc.
  4890.  
  4891. Notes that Turbo C 2.0, not 1.5, is required for building the MS-DOS
  4892. version.
  4893.  
  4894. Adds a DEVICES= line to the makefile, and allows multiple devices.
  4895.  
  4896. Documents, in interp.doc, the X Windows resources that Ghostscript
  4897. recognizes.
  4898.  
  4899. Adds three PostScript masters to the fileset: chess.ps (+ cheq.ps),
  4900. golfer.ps, and escher.ps.
  4901.  
  4902. Drivers
  4903. -------
  4904.  
  4905. Changes the names of all the device drivers.  See gdevs.mak for the
  4906. updated list.
  4907.  
  4908. Adds a (working) driver for SunView.
  4909.  
  4910. Adds drivers for the Sony NeWS frame buffer, and the Sony Microsystems
  4911. NWP533 printers.  These drivers were contributed by users, so we aren't
  4912. prepared to answer questions about them.
  4913.  
  4914. Adds a driver for the Borland Graphics Interface (BGI) for MS-DOS systems.
  4915. Note that to use this driver with a non-EGA/VGA display, you need a .BGI
  4916. file appropriate for your hardware.  (The Ghostscript executable includes
  4917. the EGA/VGA driver.)
  4918.  
  4919. Adds a driver for Epson printers.  The driver has only been tested on an
  4920. LX-800, and on an H-P DeskJet in FX-80 emulation mode, but may work on
  4921. other models.  The driver could be adapted to work on Unix systems, but as
  4922. distributed, it only works on MS-DOS systems.
  4923.  
  4924. Adds a driver for the Hewlett-Packard DeskJet printer.  The driver could
  4925. be adapted to work on Unix systems, but as distributed, it only works on
  4926. MS-DOS systems.
  4927.  
  4928. The X Windows driver no longer waits for the user to type a character
  4929. before bringing up the initial display.
  4930.  
  4931. Adds information to drivers.doc describing how to change the definition of
  4932. the device structure and procedure table.
  4933.  
  4934. Extends the tile_rectangle and tile_trapezoid driver procedures to
  4935. interpret color0 = color1 = gx_no_color_index as meaning that the tile is
  4936. actually colored, not a mask.
  4937.  
  4938. Build procedures
  4939. ----------------
  4940.  
  4941. Changes the tar file so it puts everything in a directory called gs.
  4942.  
  4943. Removes the -ansi switch for gcc (this was causing problems with <math.h>
  4944. on some systems).
  4945.  
  4946. Changes LDPLAT to the string -X, which is appropriate for most Unix
  4947. systems (but not for SunOS 4.n).
  4948.  
  4949. Adds EXTRALIBS to the makefile, for specifying additional libraries to be
  4950. linked in.
  4951.  
  4952. Adds a 'clean' target for 'make', to get rid of all temporary files, the
  4953. binaries, and the executable.
  4954.  
  4955. Changes names of system-specific files from gp-xxx.c to gp_xxx.c.
  4956.  
  4957. Adds support for VMS (gp_vms.c and ghost.dcl).
  4958.  
  4959. Creates a new file gdevs.mak, and reorganizes the other makefiles, so that
  4960. the choice of which device driver(s) to include is isolated in a single
  4961. line in the platform-specific makefile.
  4962.  
  4963. Changes the standard MS-DOS makefile so it builds for 8088/86 (not 80386),
  4964. with neither -DNOPRIVATE nor -DDEBUG.
  4965.  
  4966. Changes the name of the MS-DOS makefile from dos-ega.mak to msdos.mak, and
  4967. the Unix makefiles from ux-[g]cc-x.mak to unix-[g]cc.mak.
  4968.  
  4969. Updates drivers.doc to describe how to add new drivers in gdevs.mak.
  4970.  
  4971. Removes gdevs.ps: the drivers are now responsible for specifying the size
  4972. of the imaging region.
  4973.  
  4974. Interpreter
  4975. -----------
  4976.  
  4977. Adds a makefile macro GS_LIB_DEFAULT and an environment variable GS_LIB to
  4978. define a search path for the library (initialization and font) files, and
  4979. implements the -I switch for the same purpose (replacing -sLIB=, which was
  4980. never actually implemented).  See interp.doc for details.
  4981.  
  4982. No longer clears the operand stack between interactive inputs.  No longer
  4983. prints the contents of the operand stack after every input in debug mode.
  4984.  
  4985. Doesn't "eat" the character that the user types to proceed after a
  4986. showpage, unless it's an isolated <return>.
  4987.  
  4988. Changes the prompt so that it says
  4989.     GS>
  4990. if the operand stack is empty, or
  4991.     GS<n>
  4992. if there are n > 0 elements on the operand stack.
  4993.  
  4994. Adds -w and -h switches to the command line, equivalent to -dWIDTH= and
  4995. -dHEIGHT= except that they require numeric arguments.
  4996.  
  4997. Adds -q (quiet startup) switch to the command line, which suppresses some
  4998. initial messages and also has an effect equivalent to -dQUIET.
  4999.  
  5000. Fixes bugs:
  5001.     - = and == caused an error on some kinds of objects if the object
  5002. didn't have read access.
  5003.     - cvs didn't print operator names.
  5004.     - The definition of dynamic_begin in iscan.c caused the DEC VMS C
  5005. compiler to produce incorrect code.
  5006.     - mul didn't return a correct (real) result when multiplying a
  5007. very large integer by an integer that wasn't very large.
  5008.     - eq and ne didn't work on files, fonts, save objects, and some
  5009. operators.
  5010.     - The scanner would sometimes blow up on floating point numbers
  5011. beginning with a '.'.
  5012.     - flushfile didn't pop its argument from the stack.
  5013.     - put and putinterval would store into a packed array.
  5014.     - a few operators didn't check properly for stack underflow.
  5015.     - cvrs produced wrong output for radix values greater than 10.
  5016.     - The scanner would convert upper-case letters in alternate-radix
  5017. numbers wrong on Unix systems.
  5018.     - String comparisons other than equality often produced the wrong
  5019. result if the strings were of different lengths.
  5020.     - An ifelse as the last thing inside a forall would confuse the
  5021. execution stack.
  5022.     - There were some omitted casts and 'private' declarations that
  5023. made the GNU compiler unhappy.
  5024.     - There was a memory leak in the image[mask] operators that caused
  5025. 516 bytes to be permanently lost each time one of them was used.
  5026.     - Quoted strings of length greater than 50 and less than 100 would
  5027. get mangled when being read in.
  5028.     - The scanner didn't consume the whitespace character following a
  5029. token, so programs that read data out of the program file could get
  5030. confused.
  5031.     - Under rare circumstances, an object of size between 249 and 255
  5032. bytes could get allocated on top of another object.
  5033.  
  5034. Allows bind to bind packed arrays, even though they aren't normally
  5035. writable.
  5036.  
  5037. Changes the length operator to allow a name as the argument.  (The
  5038. PostScript manual doesn't allow this, but implementations apparently do.)
  5039.  
  5040. Changes the setcachedevice operator to allow the bounding box to be
  5041. specified as a 4-element array instead of 4 scalars.  (The PostScript
  5042. manual doesn't allow this, but implementations apparently do.)
  5043.  
  5044. Removes a line from ghost.ps that accidentally disabled the font cache.
  5045.  
  5046. Implements memory devices (makeimagedevice, copyscanlines, and makedevice
  5047. for image devices).  makeimagedevice is implemented only for 1, 8, 24, and
  5048. 32 bits per pixel.
  5049.  
  5050. Changes the deviceparams operator so it pushes a mark on the stack below
  5051. the parameters.  This is to allow for devices that have more than the
  5052. standard set of parameters.
  5053.  
  5054. Replaces defaultdevicename with two new operators, getdevice and
  5055. devicename.
  5056.  
  5057. Adds a flushpage operator that flushes any outstanding buffered output to
  5058. the screen.  This is not the same as copypage: on printers, copypage
  5059. actually prints a page, whereas flushpage may do nothing; on displays,
  5060. flushpage and copypage may both flush output to a server.
  5061.  
  5062. Adds an unread operator for pushing back a character into a file.
  5063.  
  5064. Adds a description of proposed grayimage and colorimage operators to
  5065. ghost.doc, even though they aren't implemented yet.
  5066.  
  5067. Changes the name of the currentfileposition operator to fileposition.
  5068.  
  5069. Removes the framedevice operator, since the new device operators supersede
  5070. it.
  5071.  
  5072. Adds a writeppmfile operator, for writing the contents of a memory device
  5073. to a ppm file.
  5074.  
  5075. Makes Ghostscript work even when the >> operator doesn't sign-extend
  5076. negative numbers.  (This has not been tested.)
  5077.  
  5078. Adds the Symbol encoding to ghost.ps.
  5079.  
  5080. Adds two new file-related operators, filename and findlibfile.  See
  5081. ghost.doc and interp.doc for details.
  5082.  
  5083. Adds type1encrypt and type1decrypt operators for manipulating Adobe Type 1
  5084. encoded fonts.
  5085.  
  5086. Changes the imagecharpath and addcharpath operators to type1imagepath and
  5087. type1addpath.  These operators now work with the Adobe Type 1 font
  5088. encoding.
  5089.  
  5090. Adds the type1decryptfile operator for reading Adobe Type 1 encrypted
  5091. fonts.
  5092.  
  5093. Library
  5094. -------
  5095.  
  5096. Fixes bugs:
  5097.     - curveto and lineto didn't check for the current point being
  5098. defined.
  5099.     - stringwidth would fail if there was no current point.
  5100.     - There were omitted casts that made the GNU compiler unhappy.
  5101.     - Line caps and joins didn't always work.
  5102.     - Dashed lines didn't work at all.
  5103.     - If you read out the current matrix while inside a BuildChar
  5104. procedure, the result was garbage.
  5105.     - image[mask] would crash if you gave it a single string with more
  5106. than 64K-1 pixels (MS-DOS only).
  5107.     - Filling with a gray pattern sometimes wrote into pixels beyond
  5108. the right edge of the region (MS-DOS only).
  5109.     - The font cache would mistake fonts for each other if both fonts
  5110. had a default (unsupplied) "unique ID".
  5111.     - When a character was entered into the font cache for the first
  5112. time, sometimes it would display as garbage and/or displaced vertically
  5113. from its proper position.
  5114.  
  5115. Implements gs_makeimagedevice, gs_copyscanlines, gs_getdevice,
  5116. gs_devicename, gs_flushpage, gs_writeppmfile, gs_type1encrypt,
  5117. gs_type1decrypt, gs_type1imagepath, and gs_type1addpath procedures
  5118. corresponding to the new operators in the interpreter (see preceding
  5119. section).
  5120.  
  5121. Changes [gs_]setdevice so that it does an erasepage when it first opens
  5122. the device.
  5123.  
  5124. Changes definition of gx_device structure as follows.  NOTE: THIS AFFECTS
  5125. ALL DRIVERS.
  5126.  
  5127.     - Removes bits_from_MSB (which wasn't actually used, in any case).
  5128.         Ghostscript now assumes officially, as it always did in
  5129.         practice, that device bitmaps are stored MSB first, i.e., X=0
  5130.         corresponds to the 0x80 bit in the first byte.
  5131.  
  5132.     - Removes the initial_matrix member, which wasn't actually being
  5133.         set up.
  5134.  
  5135.     - Adds a new member 'name', a string giving the device name.
  5136.  
  5137.     - Adds new members 'x_pixels_per_inch' and 'y_pixels_per_inch'.
  5138.         These are only used by the default initial_matrix procedure
  5139.         (see below).
  5140.  
  5141.     - Adds a new procedure 'output_page'.  The default implementation
  5142.         (gx_default_output_page) just calls the sync_output procedure.
  5143.  
  5144.     - Adds a new procedure 'get_initial_matrix'.  The default
  5145.         procedure uses the width, height, and x/y_pixels_per_inch
  5146.         members to compute the matrix, assuming that X values run from
  5147.         right to left, and Y values run from top to bottom.
  5148.  
  5149. Changes the names of the allocation procedure types gs_proc_alloc and
  5150. gs_proc_free to proc_alloc_t and proc_free_t, and moves them from gs.h to
  5151. std.h.
  5152.  
  5153. Makes Ghostscript work even when the >> operator doesn't sign-extend
  5154. negative numbers.  (This has not been tested.)
  5155.  
  5156. Versions before 2.0
  5157. ===================
  5158.  
  5159. See the file history1.doc.
  5160.