Copyright (C) 1989, 1996, 1997 Aladdin Enterprises. All rights reserved. This file is part of Aladdin Ghostscript. Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or distributor accepts any responsibility for the consequences of using it, or for whether it serves any particular purpose or works at all, unless he or she says so in writing. Refer to the Aladdin Ghostscript Free Public License (the "License") for full details. Every copy of Aladdin Ghostscript must include a copy of the License, normally in a plain ASCII text file named PUBLIC. The License grants you the right to copy, modify and redistribute Aladdin Ghostscript, but only under certain conditions described in the License. Among other things, the License requires that the copyright notice and this notice be preserved on all copies. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This file, NEWS, describes the changes in the most recent releases of Ghostscript. Changes in older releases are described in history*.txt. For an overview of Ghostscript and a list of the documentation files, see README. Within each release, news appears in the following order: Documentation, Procedures, Utilities, Drivers, Platforms, Fonts, Interpreter, Streams (included under Interpreter through release 2.9.9), Library. Changes marked with a * were made available as patches to a previous release. Version 5.10 (11/23/97) ======================= This release, not originally planned, greatly reduces the size of PDF files produced by the pdfwrite device, fixes a number of minor problems in PDF output, and optionally produces output compatible with Acrobat 2.x, in order to address problems reported by NSF in processing these files as part of their FastLane electronic proposal submission process. Aside from that, and some localized bug fixes, it has minimal changes from 5.03. Known problems: - ps2pdf sometimes produces output with links in an incorrect format (k/index.*) or missing or inactive links (k/rahtz/foo.ps). - Setting HWSize by itself with setpagedevice has no effect. - When shrinking oversize halftone cells, the current algorithm, which progressively halves the size, can produce non-monotonic behavior; GS should either use a monotonic algorithm or give a limitcheck. (k/jdscreen.ps) - In Type 1 fonts, almost-vertical lines that straddle a stem edge produce uneven output. - flushfile with a procedure-target stream doesn't pass the buffered data to the procedure. - At some resolutions, gaps occur in some character outlines with certain Type 1 fonts. (? - no test file) - The Watcom MS Windows makefile (watcw32.mak) doesn't work. - The uniprint driver sometimes drops some output, and is very slow at 720x720 resolution. - pdf2ps can't handle embedded TrueType and CFF fonts: it produces invalid output. (k/tjava8.pdf, p. 192) - pdf2ps can't handle Patterns. (k/nissl.pdf) - pdf2ps can't handle embedded fonts with CharProcs (characters defined by PDF objects). (k/be/iguide_unix.pdf) - pdf2ps has other, undefined problems. (k/gfreeman/ps2.*, qsshort.*, wallp3.*) - [e]pswrite core-dumps on certain files if GC is enabled. Work around this by including -dNOGC on the command line. (k/spong.pdf) - [e]pswrite can't handle Patterns. (k/gfreeman/overpart.ps) - [e]pswrite may produce incorrect line widths for stroked graphics. (k/gfreeman/walpart2.ps) - Halftones look relatively coarse: we should be using a small-scale version of AccurateScreens (multiple small dot cells with an ordered dither cell visiting pattern) to get both fine screens and many levels. - Since the x11alpha device uses saturation to emulate alpha, writing anti-aliased objects over dark areas produces incorrect output. (gdevxalt.c) - Setting OutputFile=- should redirect stdout to stderr (or provide some other way to redirect stdout). - Type 0 (Japanese / Chinese / ...) fonts are not supported in PDF files. (k/microw-j.pdf) - Ghostscript can't load TrueType fonts where the amount of data either before or after the glyf section exceeds 64K. (k/baueti__.ttf) - Ghostscript can't load TrueType fonts where the total data is more than 64K and the offset or length of the glyfs is odd. - High-level output devices ([e]pswrite, pdfwrite, pxl*) always produce a single output file rather than a separate file for each page, even if there is a %d in the OutputFile name. - ps2pdf doesn't handle the Distiller 3.0 named objects and BP/EP/SP pdfmarks. (k/pdfmark3.ps) Documentation ------------- Fixes bugs: - ansihead.mak referred to unix-ansi.mak, which is actually named unixansi.mak. (ansihead.mak) - README referred to an "If you need help" section that was moved to new-user.txt. (README) Updates build information for HP-UX systems. (make.txt) Updates the information for getting Martin Lottermoser's hpdj driver. (new-user.txt) Improves the error message when a user tries to invoke gswin32c without explicitly selecting a device. (dwmainc.cpp) Removes the author's name and e-mail address from the pdf2ps man page, at his request. (pdf2ps.1) Improves the documentation for BandBufferSpace. (language.txt) Procedures ---------- Changes the VMS command files so that they don't echo the commands. (append_l.com, copy_one.com, rm_all.com, rm_one.com) Utilities --------- Fixes bugs: - The "lp" command files all inappropriately set the top margin to 0.1". (lp386.bat, lp386r2.bat, lpgs, lpgs.bat, lpr2, lpr2.bat) - The lp386[r2].bat command files inappropriately set the LanguageLevel to 1. (lp386.bat, lp386r2.bat) Drivers ------- Fixes bugs: - The PDF writer got confused about the current color if the input contained text strings separated only by color changes. (gdevpdf.c) - Some casts between const char * and const byte * were incorrect (warnings only). (gdevpdft.c) Adds a NoCancel parameter to the winpr2 device, which suppresses display of the dialog box. (gdevwpr2.c) Interpreter ----------- Fixes bugs: - An "extern" was omitted, causing a duplicate definition of build_function_procs. (ifunc.h) - The global pseudo-operator table was too small, causing a limitcheck in ps2ascii. (iinit.c) - setcolorspace with a Pattern space with no underlying space would cause an error if the current color space was a Pattern space. (zpcolor.c) - The Decode key was optional, not required, in the dictionary form of image[mask]. (zimage2.c) Adds two more PCL/PJL reset sequences to the list of sequences to ignore. (gs_init.ps) Library ------- Fixes bugs: - Multi-screen color halftones could produce "seams". (gxcht.c) - A bug in the gcc optimizer on H-P RISC workstations caused all curves to be output as lines. (gxpflat.c) - If a non-standard OtherSubr was called before the [h]sbw in a Type 1 font, a crash could occur. (gxhint3.c) - gxclist.c didn't include string_.h. (gxclist.c) Version 5.07(limited) (10/31/97) ================================ A few more bug fixes for the 5.10 release. Documentation ------------- Fixes bugs: - Some file and directory names hadn't been updated to match the new directory structure on the primary server. (make.txt, new-user.txt) Adds the URL for reaching URW++. (Fontmap.*) Drivers ------- Fixes bugs: - Because the C % operator isn't equivalent to 'modulus' for negative numerators, gx_default_strip_tile_rectangle could crash in some cases. (gxdevice.h, gdevdflt.c) - In the PDF writer, Dest values were correct (page numbers) for GoToR actions, but were incorrect (should be page object references) for other actions; also, Rect values were transformed, but should not be. (gdevpdfm.c) - In the PDF writer, articles and bookmarks could attempt to write multiple Contents streams, which is not allowed. (gdevpdfx.h, gdevpdf.c, gdevpdfm.c) - The PDF writer ignored PS (PostScript pass-through) pdfmarks. (gdevpdfm.c) - The PDF writer didn't write out the color space parameters for CIE-based spaces. (gdevpdfi.c) Library ------- Fixes bugs: - Suffix subclass structures with 4 added pointers skipped the first pointer in the superclass when garbage collecting, possibly causing invalid memory accesses. (gsstruct.h) - An argument list incompatibility in a procedure used in a static structure initialization upset some compilers. (gsfunc.h, gsfunc0.c) Version 5.06(limited) (10/7/97) =============================== This fixes a few more bugs in the PDF writer, and a few other very obscure problems. It also adds support for Functions and brings multiple contexts closer to working, neither of which we expect actually to be used any time soon. This is intended to be the candidate fileset for the 5.10 release, but since we had to tinker with a delicate part of the PDF writer to fix a problem affecting visual quality with Acrobat, there may be new bugs that will have to be fixed in yet another candidate fileset. Documentation ------------- Fixes bugs: - Jim McPherson's e-mail address was out of date. (devices.txt) - Invoking ps2pdf with only a single file name is supported on some versions of Windows NT and OS/2, not only on Unix. (ps2pdf.txt) - The ps2pdf documentation didn't indicate that ps2pdf can use the Windows "console mode" executable as well as the MS-DOS executable. (ps2pdf.txt) - The list of which Distiller parameters actually have an effect was incorrect. (gdevpdfp.c) Notes that the cdj550 driver is compatible with the H-P 660C and 660Cse. (devs.mak, devices.txt) Adds a note about using Acrobat Reader fonts. (install.txt, use.txt) Notes that the LJ 5P, like the 5L, is not a PCL XL printer. (devs.mak) Notes problems and possible problems with certain versions of the Borland C++ compiler. (make.txt) Notes the change in -Z:. (use.txt) Updates the uniprint documentation for this release. (devices.txt) Expands the rationale for the large resolution in the bbox device. (gdevbbox.c) Notes that the H-P DeskJet 600 series can use the djet500 driver with -r600. (devs.mak) Procedures ---------- Fixes bugs: - Vector devices didn't include a necessary dependency on the stream package. (lib.mak) - There were several bugs in the ps2pdf.bat file. (ps2pdf.bat) Changes -Z: so it prints some summary lines as well as minimal information about banding. This makes the -ZA trace compatible with our memory leak tool. (iminst.h, imain.c) Utilities --------- Fixes bugs: - ps2epsi sometimes produced a too-large bounding box, or even caused a rangecheck. (ps2epsi) At the advice of a user, removes the RESOLUTION=100 line from pv.sh. (pv.sh) Drivers ------- Fixes bugs: - The PDF writer produced incorrect output for stroke operations with unusual CTMs, because PDF, unlike PostScript, applies the CTM to the path at the time of the fill or stroke, not as the path is being constructed. (gdevpdfd.c) - Vector devices returned an error, instead of falling back to the default implementations, when filling or stroking with a pattern. (gdevvec.c) - The PDF writer freed an internal stream structure using the wrong allocator, possibly causing memory corruption. (gdevpdf.c) - The uniprint driver had some compilation problems, and possibly other problems as well (consult the source file). (gdevupd.c, *.upp) - With -dNOCACHE, the PDF writer wrote all text in the base 14 fonts twice, once as text and once as outlines. (gs_pdfwr.ps, gdevpdfd.c) - The PDF writer didn't properly recognize Symbol and ZapfDingbats as being among the base 14 fonts. (gs_pdfwr.ps) - When using Acrobat Reader with font smoothing turned on, the base 14 fonts appeared too bold on the screen in files produced by ps2pdf, because Reader decides that a 100-unit font at 1 unit = 0.1 point should be bolder than a 10-unit font at 1 unit = 1 point. (gdevpdfx.h, gdevpdf.c, gdevpdft.c) - The PDF writer didn't convert View/Page specifications for bookmark pdfmarks to a Dest key, causing bookmarks not to work. (gdevpdfm.c) Speeds up the PDF writer by only passing the encoding if it isn't StandardEncoding. (gs_pdfwr.ps, gdevpdft.c) Changes the PDF writer's handling of unencoded glyphs. Adds device parameters ReEncodeCharacters and ReAssignCharacters to control how unencoded glyphs are handled. (These parameters will go away when we handle variant encodings in full generality.) (gdevpdfx.h, gdevpdf.c, gdevpdfp.c, gdevpdft.c) Interpreter ----------- Fixes bugs: - setpagedevice didn't restore the stack properly if it failed. (gs_setpd.ps) - 0 identmatrix didn't cause an error. (gs_init.ps) - Devices expecting array-valued parameters didn't accept packed arrays. (iparam.c) Starts to de-implement support for special handling of the stacks on machines with 16:16 addressing. Currently this only happens if DPNEXT is defined. (istack.h) Brings multiple contexts closer to working. The interpreter can now run some very simple test cases. (int.mak, icontext.h, igstate.h, interp.h, istruct.h, icontext.c, interp.c, zcontext.c, zgstate.c) Adds support for FunctionType 0 Functions, which are used in PDF 1.2. (ifunc.h, iref.h, store.h, zfunc.c, zfunc0.c) Updates a few remaining pseudo-operators in gs_init.ps to take advantage of automatic operand and dictionary stack restoration: eexec, identmatrix, pathbbox. Not updated yet: filter. (gs_init.ps) Interpreter (PDF) ----------------- Fixes bugs: - Separation color spaces weren't supported. (gs_pdf.ps, pdf_draw.ps) Library ------- Fixes bugs: - The size argument to gs_free was wrong in an out-of-memory case. (This was irrelevant, since gs_free only uses the size argument for error-checking during debugging.) (gdevprn.c) - When freeing a block on the C heap, if -Z@ was set, the block's header wasn't filled with the sentinel pattern. (Only relevant when debugging.) (gsmemory.c) - The C heap allocator didn't fix up pointers properly when freeing a block, causing unpredictable memory corruption after a 'resize' call. (gsmemory.c) - Using a show operator inside the procedure of a cshow with a composite font could cause an invalid access. (gschar.c) Adds support for FunctionType 0 Functions. (gsdsrc.h, gsfunc.h, gsfunc0.h, gxfunc.h, gsdsrc.c, gsfunc.c, gsfunc0.c) Moves the GC descriptor for arrays of constant strings to a place where it is more visible. (gscie.h, gsstruct.h, gscie.c, gsmemory.c) Version 5.05(limited) (9/24/97) =============================== This fixes a few bugs found in the first few days of testing 5.04. There will probably be several more small incremental filesets before the next public release. Platforms --------- Fixes bugs: - The Windows code wouldn't compile with the latest MSVC++, because Microsoft changed the prototype for fprintf. (gp_msio.c) Drivers ------- Fixes bugs: - A picky compiler complained about some omitted casts. (gdevpdf.c, gdevpdft.c) - Writing a PDF file with any synthesized fonts could produce slightly garbled output or possibly even an invalid memory access, because a string was not terminated. (gdevpdft.c) - When writing a PDF file, the first character of a string could get placed off the page, because of a matrix bookkeeping error. (gdevpdft.c) Interpreter ----------- Fixes bugs: - In case of an error, setpagedevice executed a 'stop' unconditionally, rather than just signalling an error through the error machinery. (gs_setpd.ps) Interpreter (PDF) ----------------- Fixes bugs: - Files with unknown operators caused errors, even if the BX operator was used to disable the error report. (pdf_base.ps) Version 5.04(limited) (9/21/97) =============================== This is the first test fileset for the 5.10 release: see above. Documentation ------------- Fixes bugs: - George Cameron's address was listed with a domain of .ukis rather than .uk. (devices.txt) - The default value of ORIENT1 was given as false rather than true. (use.txt) - The documentation for ps2pdf said one can omit the output file name, but this is only true on Unix systems. (ps2pdf.txt) - The documentation for ps2pdf didn't make clear that the executable must be named gs on Microsoft OSs. (ps2pdf.txt) - ht_cache is actually allocated with the first gstate, not on demand. (gsstate.c) Slightly improves the documentation of .type1execchar. (zchar1.c) Clarifies the distinction between Ghostscript (PostScript) commands and shell commands, for the benefit of users brainwashed by Microsoft. (use.txt) Improves the usage synopsis in the ps2epsi man page. (ps2epsi.1) Adds a reference to Uli Wortmann's H-P drivers. (new-user.txt) Improves the documentation of GS_FONTPATH, distinguishing it from GS_LIB and the search path. (use.txt) Notes that on some systems, one must substitute 'installbsd' for 'install' in the makefile and make other edits. (install.txt, ansihead.mak, cc-head.mak, gcc-head.mak) Notes that ps2epsi is no longer maintained. (ps2epsi.ps) Clarifies the availability of support. (new-user.txt) Procedures ---------- Fixes bugs: - The uniprint driver was accidentally omitted from the default Watcom (MS-DOS) and OS/2 configurations. (watc.mak, os2.mak) - The suggested compiler switches for Digital Unix were incorrect. (make.txt) - The cp.cmd script file didn't work in the newest versions of OS/2. (cp.cmd) - The compilation rules for some Windows-specific files didn't include ccf32.tr in their dependencies, which could cause the compilation to fail. (winint.mak) Removes the lev2min configuration, since we no longer support 16-bit Windows environments. (int.mak) Utilities --------- Fixes bugs: - ps2epsi.bat always appended to the output file, rather than writing over it. (There are probably other bugs in this script file.) (ps2epsi.bat) - The output of pdf2ps didn't execute properly on some printers, especially Level 1 printers. (gs_pdf.ps) Makes ps2pdf do an initial 'save', which causes fonts to be retained better across pages. (ps2pdf, ps2pdf.bat) Adds an option to pcharstr.ps to produce C-like rather than PostScript-like output. (pcharstr.ps) Drivers ------- Fixes bugs: - The LaserJet III and higher printers weren't able to print in the narrow strip between 1/6" and 1/4" from the left edge of the page. (gdevdjet.c) - The PCL XL drivers produced incorrect output which often caused a PCL XL NoCurrentFont error at the beginning of the second page. (gdevpx.c) - The GC descriptors for the pswrite device and for PS/PDF devices were incorrect, causing the GC to smash memory. (gdevpsdf.h, gdevps.c) - The pdfwrite device didn't have a GC descriptor at all. ****** DISABLED because the device allocates all its temporary structures directly on the C heap. ****** (gdevpdf.c) - When the PDF writer wrote out the Dest key in an action dictionary, it always used a page object instead of a page number, even if the page was in another file or didn't exist; it now always uses a page number. (gdevpdfm.c) - The PDF writer gave an error if a file redefined any of the 14 known fonts. (gs_pdfwr.ps) - The PDF writer didn't handle copy_mono with a non-zero sourcex. (This probably had no effect in practice.) (gdevpdfi.c) Splits off gdevpdfd.c (driver drawing procedures) from gdevpdf.c, since the file was getting too large. (gdevpdfx.h, gdevpdf.c, gdevpdfd.c) Adds recognition of the CompressPages, CompatibilityLevel, and UseFlateCompression device (distiller) parameters to the PDF writer. If CompressPages is true (default), CompatibilityLevel is 1.2 (default), and UseFlateCompression is true (default), page contents will be compressed with Flate ("zip") compression; otherwise, they will not be compressed. Restructures the PDF writer to produce much smaller and faster PDF files, by restructuring its handling of text to defer all resources to the end of the file, eliminate duplicate Font resources, turn characters into Type 3 fonts rather than Image XObjects, use more efficient text positioning commands, and optionally (but by default) Flate-compress the contents streams. Also removes some unnecessary spaces in the output. (gdevpdfx.h, gdevpdf.c, gdevpdfd.c, gdevpdfi.c, gdevpdfm.c, gdevpdft.c) Improves the PDF writer so that it no longer converts stroke operations with non-uniform CTMs to fills, and doesn't bother to stroke empty paths at all. (gdevpdfd.c) Speeds up the "alternate" X devices substantially. (gdevxalt.c) Interpreter ----------- Fixes bugs: - Filling a string with a Pattern caused a crash with the PDF writer. (gs_pdfwr.ps) - Converting a file with no marks at all to PDF produced invalid output. (gdevpdf.c) - .endpage, which is called at the end of every page, sometimes left 2 extra values on the stack. (gs_setpd.ps) - A definefont with a Type 1 font lacking a .notdef character didn't cause an invalidfont error. (bfont.h, zfont1.c, zfont2.c) - On anti-aliased devices, characters from Type 1 fonts with an incorrect or missing FontBBox came out a factor of 2 or 4 too small if the character was small enough to cache. (zchar1.c) - If a file redefined certain operators, loading Type 1 fonts could fail. This problem was fixed in an earlier release, and somehow the fix got undone. (gs_type1.ps) - cshow didn't set the correct current font when running the procedure, and didn't restore it properly afterwards. (zchar.c, zchar2.c) - With certain compilers, the interpreter loop caused unaligned memory accesses on DEC Alpha systems running Windows NT. (iref.h) Adds freelist validation to the memory checker. (ilocate.c) Changes the debugging switch for bypassing the garbage collector from compile-time to run-time. (igc.c) Adds the real operators for view clipping (but they don't do anything yet, because view clipping isn't implemented at the library level). (zdps.c, zvmem.c) Completes the implementation of defineusername. (zdps.c) Adds an implementation of wtranslation, by simply reading a device parameter of the same name. (gs_dps.ps) Interpreter (PDF) ----------------- Fixes bugs: - Lab color spaces weren't implemented, and gave an error. (gs_pdf.ps) - Images only worked with built-in color spaces, not color space resources. (pdf_draw.ps) - Embedded font subsets were treated as undefined. (pdf_font.ps) Library ------- Fixes bugs: - strokepath sometimes clipped the path to the current clipping region, which it should never do. (gxstroke.c) - The initial X/Y position for Type 2 charstrings (CFFs) sometimes was set incorrectly. (gstype2.c) - Memory management for dash patterns was still incorrect (despite the fix in 4.36), possibly causing snarled freelists and invalid memory references. (gsline.c, gsstate.c) - The saved gstate of a Pattern instance was freed properly when the instance was freed by reference counting as a result of setting the color or color space, but not when the instance was freed by reference counting anywhere else. (gspcolor.c) - A test for whether to use a slower form of oversampling was incorrect. (Probably only a performance bug.) (gschar.c) - cshow didn't set the correct current font when running the procedure, and didn't restore it properly afterwards. (gsfont.h, gschar.c, gsfont.c) Improves allocator validity checking when DEBUG is set. (gsalloc.c) Adds a couple of missing FontType values. (gxftype.h) Changes the default conversions between CMYK and RGB colors back to the Adobe rules documented in the Red Book, to reduce output differences from Adobe implementations. (gxdcconv.c) Adds a graphics state element for view clipping, under an #ifdef DPNEXT, and implementations of the view clipping operators (but not the logic for doing the actual clipping). (gsstate.h, gzstate.h, gsstate.c) Removes the redundant clip_rule variable from the graphics state (which wasn't used for anything). (gzstate.h, gspath.c) Version 5.03 (8/8/97) ===================== The only reason for this release is to fix two serious bugs introduced between 5.01 and 5.02. We fixed a few other very localized and low-risk bugs at the same time. Documentation ------------- Removes the "(if relevant)" from the bug reporting form, since about 25% of the forms are submitted without a URL or any other data. (bug-form.txt) Adds a discussion of single-use procedures to the style guide. (c-style.txt) Updates the information about obtaining Ghostscript on physical media. (new-user.txt) Updates the information about ps_view. (new-user.txt) Procedures ---------- Adds the uniprint driver to all platforms. (*.mak) Changes the contents of the pc.tar.gz archives: - Adds *.upp. - Removes *.res. - Removes cp.bat, font2c.bat, mv.bat, rm.bat, wmakebat.bat, cp.cmd, mv.cmd and rm.cmd, and gv-vms.hlp. Removes an obsolete script file. (tar_mv) Drivers ------- Fixes bugs: - The uniprint driver didn't handle an increase in media height correctly. (gdevupd.c) Platforms --------- Fixes bugs: - Printing to printers other than LPT1 under MS Windows no longer worked. (bug introduced in 5.02) (gp_mswin.c) - Drag-and-drop didn't work under Windows NT (or other 32-bit Windows environments). (dwtext.cpp) - Sequent systems needed an additional system header file. (time_.h) Fonts ----- Fixes bugs: - The substitutions Myriad => Times and Minion => Helvetica were incorrect; they should be the other way around. (gs_fonts.ps) - MyriadPkg wasn't recognized as a condensed font. (gs_fonts.ps) - Univers wasn't recognized as mapping to Helvetica. (gs_fonts.ps) Interpreter ----------- Fixes bugs: - A line of debugging code, printing the sections of 3 regions of TrueType fonts being loaded, was accidentally left in. (gs_ttf.ps) - TrueType fonts whose pre-glyf data had odd length were broken (typically gave a rangecheck error), because of the fix to treat the odd byte of individual sfnts strings as padding per Adobe documentation. (bug introduced in 5.02) (gs_ttf.ps) Interpreter (PDF) ----------------- Fixes bugs: - If a real-number token in a CFF had an even number of nibbles, a unmatchedmark error would occur. (gs_cff.ps) - If the strings Index in a CFF included an empty string, a rangecheck error would occur. (gs_cff.ps) - CFFs with non-standard Encodings that included standard strings would get a typecheck error. (gs_cff.ps) Library ------- Fixes bugs: - Using %d in an OutputFile name didn't substitute the page number. (bug introduced in 5.02) (gsdevice.c) - In Type 2 CharStrings, if a hintmask occurred at the beginning, it wasn't recognized as also incorporating the function of vstemhm. (gstype2.c) - The data bytes for hintmask and cntrmask weren't printed for debugging. (gstype2.c) Version 5.02 (7/28/97) ====================== Because of an ISP failure that delayed the 5.0 announcement for 12 days, the 5.01 release only responded to a few days of bug reports; 5.02 fixes some problems that should have been fixed in 5.01, as well as a large number of obscure problems uncovered by Genoa testing. Documentation ------------- Fixes bugs: - The documentation for building on the Intergraph Clipper was out of date. (make.txt) - ESC was claimed to be a self-delimiting character. (gs_init.ps) - Removes the documentation claiming that ^D and ^Z are self-delimiting. (language.txt) - Document that -dSUBSTFONT doesn't create a font with the requested font name. (use.txt) - Ghostscript was defined as compatible with PDF 1.1 rather than PDF 1.2. (language.txt) - The description of gcc problems on Alpha didn't make it clear that the use of gcc was optional, not required. (make.txt) - The description of how to use GNU make on VMS systems was inaccurate. (make.txt) Improves the documentation for building on H-P RISC systems. (make.txt) Corrects the discussion of Cygnus' licensing terms for the cygwin32 environment. (make.txt) Removes the apology for the poor quality of Ghostscript's TrueType rasterizer, since the quality is now quite good. (fonts.txt) Documents the fact that one must use # rather than = with Watcom C. (use.txt) Documents the updates and additions to the uniprint driver. (devices.txt) Adds some material to Aladdin's C style guide. (c-style.txt) Documents the fact that using gmake requires VMS 6.2 or later on Alphas and 7.1 (perhaps 7.0) or later on VAXen. (make.txt) Adds an example EPS file. (psfiles.txt) Adds some information about compiling and linking under OS/2. (make.txt) Expands the description of XLIBDIR and XLIBDIRS. (*head.mak) Adds a new pointer to information on using a Kanji font with Ghostscript. (new-user.txt) Documents the use of /Resource// as the default place where resources are sought. (use.txt) Updates the documentation on building with MSVC++ to reflect the makefile changes. (make.txt) Procedures ---------- Fixes bugs: - In openvms.mak, several ifdef tests were wrong. (openvms.mak) - One CP command was slightly inconsistent with the others. (zlib.mak) - If libz and libpng were both shared, libz was linked first, resulting in some undefined references. (libpng.mak) - The VMS makefile didn't interact properly with VMS's version numbering facility. (copy_one.com) Updates the VMS DCL script one last time, to handle libpng version 96. (vms.mak) Restructures the MSVC++ makefiles to allow building the graphics library without the PostScript interpreter. (bcwin32.mak, msvc4.mak[deleted], msvc5.mak[deleted], msvc32.mak, msvccom.mak, watcw32.mak, wincom.mak[deleted], winint.mak, winlib.mak) Adds a makefile to create a library-only demo program under MSVC++, like the ones for Unix/gcc and MS-DOS/Watcom. (msvclib.mak) Adds an example EPS file. (ridt91.eps, unix-end.mak) Removes support for libpng release 0.88, which is now quite obsolete. (libpng.mak) Utilities --------- Fixes bugs: - ps2pdf.bat, unlike ps2pdf, didn't accept options. (ps2pdf.bat) - echogs used 'const' in one place, which wasn't accepted by some very old compilers. (echogs.c) - pdf2ps output Orientation, which it shouldn't. (pdf_main.ps) Makes the usage message from ps2pdf.bat include the options, like ps2pdf. (ps2pdf.bat) Changes the printpath utility so that its output is legal PostScript code. (ppath.ps) Makes pdf2dsc add DSC comments for the bounding box (if a CropBox is available in the PDF file) and the orientation. (pdf2dsc.ps) Drivers ------- Fixes bugs: - The get_bits operation wasn't implemented for the vgalib driver. (gdevvglb.c) - The dnj650c driver output an extra % near the end of the file. (gdevcdj.c) - The definition of pprintd2 didn't have a line break before the procedure name, confusing ansi2knr. (gdevpstr.c) - EPS files produced invalid PDF output. (gdevpdf.c) - "Vector" output devices didn't recognize %d in output file names, or - for output to stdout. (gdevprn.h, gxdevice.h, gdevprn.c, gdevvec.c, gsdevice.c) - With the pdfwrite driver, restore or grestore would cause a rangecheck error in .installpagedevice if a setpagedevice had been executed. (gdevpdfp.c) - The pdfwrite driver produced garbage output for text rotated by angles that were only infinitesimally different from multiples of 90 degrees. (gdevpdft.c) - The pnm[raw] driver didn't handle anti-aliasing properly. (gdevpbm.c) - The PDF writer didn't scale the parameters for [a][width]show correctly. (gs_pdfwr.ps, gdevpdft.c) Fixes some minor compilation warnings not affecting code functionality. (gdevbbox.c, gdevpdfm.c, gshtscr.c, gsmemory.c, gxccman.c, gxfill.c, gximage0.c) Fixes some bugs in the uniprint driver and adds some more printer models. (gdevupd.c, bjc610a*.upp, bjc610b*.upp, necp2x6.upp, stc1520h.upp) Makes a small change for clean compilation on BeOS. (gdevcdj.c) Updates the PNG driver to use updated API calls for allocating/initializing and freeing the PNG structures. (gdevpng.c) Platforms --------- Refactors the MS Windows code to allow building the library without the interpreter. (gs_msio.c, gs_mslib.c, gp_mswin.c) Fonts ----- Fixes bugs: - definefont was executed twice on TrueType fonts. (No bad consequences, just unnecessary work.) (gs_ttf.ps) Interpreter ----------- Fixes bugs: - The fix for the 'stopped' around run_string_* in 5.01 was made incorrectly. (gs_init.ps) - Many operators that expect a matrix operand didn't accept packed arrays. (iutil.c) - The default CRD didn't have an explicit BlackPoint, which some Genoa tests require. (gs_lev2.ps) - A stack protection fix caused setscreen and setcolorscreen with dictionary operands to give a typecheck. (gs_dps2.ps) - Executing a string didn't handle tail recursion properly if the last token was followed by a single whitespace character. (interp.c) - Clearing the error indication didn't set errorname to null. (gs_init.ps) - Some unexpected items appeared on the execution stack, confusing some of the Genoa tests. (gs_init.ps, istack.h, istack.c, zcontrol.c) - The dummy definitions for setucacheparams/ucachestatus didn't look enough like the real ones. (gs_dps2.ps) - Insideness tests didn't work, because the hit detection device width and height weren't set up. (zupath.c) - defineuserobject didn't use the same algorithm for growing the array as Adobe interpreters. (gs_dps2.ps) - eq and ne didn't work correctly on save objects. (iutil.c) - findfont used =string internally, interfering with PostScript programs that also used it. (gs_fonts.ps) - cshow didn't set up scaled versions of base fonts as the current font. (zchar2.c) - defineresource didn't make the resource value read-only. (gs_res.ps) - If inustroke got an error, it could return without an error indication and without changing the stack. (zupath.c) - The arrays returned by different invocations of currentcolorspace with the same device color space weren't guaranteed to be eq. (gs_lev2.ps) - Out-of-range integers followed by a '.' were converted to names rather than reals. (iscan.c, iscannum.c) - resourceforall caused an invalidaccess error if currentglobal was true but the procedure, template, or scratch string was in local VM. (gs_res.ps) - In many places, integer values were converted to floats rather than doubles, losing precision. (ichar.h, icharout.h, ifont.h, iutil.h, idparam.c, iparam.c, iutil.c, zchar.c, zchar1.c, zchar42.c, zcharout.c, zcie.c, zcolor.c, zcolor1.c, zcolor2.c, zcontrol.c, zcsindex.c, zcssepr.c, zdpnext.c, zdps1.c, zfont.c, zfont2.c, zgstate.c, zhsb.c, zht.c, zmath.c, zmatrix.c, zmedia2.c, zpath.c, zpath1.c, zupath.c) - The TransformPQR procedure in the default CRD didn't pop its auxiliary operands from the stack. (gs_lev2.ps) - Because of an incorrect stack depth check, setcolorrendering sometimes produced a stackunderflow. (zcrd.c) - sethalftone caused an invalidaccess error if the HalfTone type was not 5, the dictionary was in local VM, and the current VM was global. (gs_dps2.ps) - writeobject and printobject caused an invalidaccess error if the object being written was in local VM and the current VM was global. (gs_btokn.ps) - ustrokepath appended the strokepath segments to the current path, rather than replacing the path. (zupath.c) - restore incorrectly purged from the character cache any characters in a font being freed, even if the font had a UID. (zfont.c) - The definition of zimage_opaque_setup confused ansi2knr. (zimage.c) - Type 42 fonts that included the padding byte in each sfnts string didn't work if sfnts had more than one string. (zfont42.c) - Doing a garbage collection at the same time as handling a stackoverflow failed to update the object that needed re-execution, causing the interpreter to execute random data. (interp.c) - %stdout and %stderr weren't flushed if they were closed explicitly. (ziodev.c) For greater Adobe compatibility: - Changes setdash to limit dash patterns to 11 elements. (This is enforced at the PostScript level: the graphics library doesn't have a limit.) (gs_init.ps) - Changes ^D and ^Z so they are not self-delimiting characters, and changes ^K so it is not a whitespace character. (gs_init.ps, iscan.c, scantab.c) - Makes = cause an error on non-read-accessible objects rather than printing them as --nostringval--. (gs_init.ps) - When -dSUBSTFONT= is used, makes findfont return the actual named font, rather than a copy with the FontName changed to the requested one. (gs_fonts.ps) - CFF fonts with a non-default FontMatrix caused an error. (gs_cff.ps) Fixes some minor compilation warnings not affecting code functionality. (iparam.c, zfcmap.c) Strengthens the test of o-stack validity in the main interpreter loop in debug mode. (interp.c) Changes the filling rule for Type 1 fonts from winding-number to even-odd. This affects no properly designed fonts, and seems to match Adobe interpreters better. (zchar1.c) Implements non-standard Encodings in CFF fonts. (gs_cff.ps) Changes the default halftone screen for 600 dpi printers from 85 to 106 lpi, which reduces the number of halftone levels from 50 to 32 but produces visually better output. (gs_init.ps) Interpreter (PDF) ----------------- Fixes bugs: - Pattern color spaces weren't supported. (gs_pdf.ps, pdf_draw.ps) Causes references to undefined named Destinations to be ignored rather than giving an error. (pdf_main.ps) Library ------- Fixes bugs: - A 'const' was omitted in a declaration, upsetting several compilers. (gxclread.c) - arct and arcto gave an error for negative radii. (gspath1.c) - The collinearity check for arct[o] could cause some arcs to be rendered as single points. (gspath1.c) - Uncolored patterns sometimes came out blank, because the color wasn't set before calling the PaintProc. (gspcolor.c) - The phase for masking colored patterns was wrong, producing incorrect output. (gspcolor.c) - reversepath always appended the current position to the new path, rather than only doing so if the path just consisted of a single moveto. (gxpath2.c) - cshow didn't restore the current font properly. (gschar.h, gschar.c) - The check for whether characters can be cached didn't consider PaintType values other than 0 and 2. (gschar.c) - The bounding box device didn't handle PageCount properly. (gdevbbox.c) - Uncached fonts with a next_char procedure didn't set the glyph properly. (gschar.c) - Parallelograms with ax < bx, ay < by, and the 'a' edge to the right of the 'b' edge weren't filled, causing pixels to be omitted from some highly skewed images. (gdevddrw.c) - 12-bit-per-pixel images in portrait orientation filled each scan line with the value of the last pixel -- i.e., didn't work. (gximage4.c) - The path representation of a clipping path could include some inappropriate, leftover path segments. (gxcpath.c) - The angle for the miter check was computed in device space rather than in user space. (gxstroke.c) - TrueType fonts were lumpy, and the accents of accented characters were placed incorrectly. (gstype42.c) - Some macros used for generating device prototypes didn't parenthesize all uses of their parameters, causing possible errors if the parameters were expressions rather than numeric constants. (gdevprn.h) - When banding, strip halftones (typically produced by AccurateScreens) sometimes didn't have the correct phase. (gxbitmap.h, gxclread.c) - A minor change was required for correct compilation with Microsoft VC++. (memory_.h) - Under certain conditions, character shapes could get wildly distorted by hints. (bug introduced in 5.01) (gxhint3.c) For greater Adobe compatibility: - Changes reversepath so that the implicit line created by closepath is not considered a "segment". (gxpath2.c) Fixes some minor compilation warnings not affecting code functionality. (gstype1.c) Changes the font and scaled-font caches so that if the font has a UID (UniqueID or XUID), the UID and FontType are both considered part of the key, and we don't cache fonts with non-zero PaintType. (The Red Book says that changing anything except the Encoding should also change or remove the UID, but some files don't do this. The current fix is probably not sufficient, but it is a step in the right direction.) (gxfcache.h, gxccache.c, gxccman.c) Splits off the definitions of font_type and fbit_type into a separate file, since gxfcache.h now needs font_type. (gxfcache.h, gxfont.h, gxftype.h) Makes the Flex feature in Type 1 fonts conform to the published specification, rather than always producing curves. The comment in the code (and in the NEWS entry for release 2.6) says that this breaks some very old Adobe fonts: if this turns out to be a problem, we'll figure out a test that will do the right thing for these fonts. (gstype1.c) Provides 'double' versions of some API functions to accommodate the increased use of doubles in the interpreter. (gschar.h, gschar.c) Adds a compile-time option to force the use of strip halftones, for debugging. (gshtscr.c) Changes the hint snapping algorithm in the Type 1 rasterizer so that it will only change a stem width by a maximum of 1/2 pixel rather than 1 pixel. This appears to help with dropouts at certain sizes. (gxhint2.c) Makes a few changes for clean compilation on BeOS. (stdpre.h, stat_.h, gxcpath.c) Version 5.01 (6/22/97) ====================== This fixes a few bugs reported in the 5.0 release. This will be a commercially supported release. Documentation ------------- Fixes bugs: - README referred to an obsolete file devarch.txt. (README) - The comment on flip4x12 had a typo. (gsflip.c) - The algorithm comments for adjusted_y_spans_pixel weren't precise enough. (gxfill.c) - The usage message printed by the ps2pdf script didn't indicate that one can now insert options before the input file name. (ps2pdf) - The file searching documentation didn't indicate that paths beginning with ./ or ../ are considered "explicit" and not subject to searching. (use.txt) - The description of SEARCH_HERE_FIRST in the per-platform makefiles indicated that it only applied to initialization files, not to files specified on the command line as well. (*.mak) - There were still some references to 16-bit implementations. (install.txt) Clarifies that -dNODISPLAY also suppresses output to other devices. (use.txt) Adds the e-mail address for reporting problems to the bug report form, and also a space to report makefile changes. (bug-form.txt) Adds a note under -g indicating that it fixes the media size. (use.txt) Adds an explanation of why Ghostscript can't use the system libraries for the JPEG package. (make.txt) Notes that ps2ai doesn't work properly with Adobe's Helvetica-Oblique font, and other fonts whose original FontMatrix involves skewing or rotation. (psfiles.txt) Updates the uniprint documentation slightly. (devices.txt) Notes that the new lj5 drivers do not work with the LJ5L. (devs.mak) Modifies the Aladdin Free Public License slightly to make it clearer that the exception for freely redistributable CD-ROMs only applies if the CD-ROM is being distributed by itself, not with anything else commercial. (This has always been the case, but the previous wording wasn't clear enough.) (PUBLIC) Notes that gcc with -O still has code generation problems on H-P RISC machines. (make.txt) Adds a pointer to Martin Lottermoser's hpdj driver. (new-user.txt) Enhances and reorganizes the documentation for building Ghostscript, in response to user feedback. (make.txt, install.txt) Adds a description of the EPSF recognition feature. (language.txt) Procedures ---------- Fixes bugs: - string__h was misspelled string_h in one place. (lib.mak) - gs_dps.ps wasn't installed by "make install". (unix-end.mak) - ccgs (used with non-ANSI C compilers) didn't do the right thing with -DPNG_USE_CONST. (ccgs) Adds support for version 96 of libpng, and updates all the makefiles to reference it. (libpng.mak, *.mak) Updates the MSVC makefiles to get rid of some warning messages and provide a way to specify a library path for the final link. (msvc*.mak) Utilities --------- Fixes bugs: - The usage message for the gslp utility had a minor typo. (gslp.ps) - The "line printer" utility didn't expand tabs properly when producing PostScript output. (gslp.ps) - The gslp utility didn't automatically include the date. (gslp) - The line printer scripts didn't pass the script name to the utility program, so the usage message didn't use the correct name. (gsbj*, gsdj*, gslj*, gslp*, lp*) Modifies the gslp utility so that invoking it with no arguments prints the usage message. (gslp.ps) Adds the ability to specify the number of bits per component to the CMYK-viewing utility. (viewcmyk.ps) Changes the ps2pdf script so that on Windows NT, as on Unix, it allows omitting the output file name, automatically replacing the extension of the input file with .pdf. (ps2pdf.bat) Drivers ------- Fixes bugs: - Some compilers didn't accept a #define with the macro name on the next line. (gdevpx.c) - The procedure dash_pattern_eq was defined in two places. (gdevpdf.c) - The uniprint driver sometimes dropped some output or got confused, because of a misunderstanding about how to update device procedure vectors properly. (gdevupd.c) - The PostScript and EPS writers produced binary output for images, which generally can't be sent to PostScript printers. (gdevpsdf.h, gdevpdf.c, gdevps.c) - The EPS writer put a %%EOF at the end of the file, which might cause problems for some spoolers if the file is embedded in another. (gdevps.c) Changes the implementation of printer drivers so that they flush the output stream after each page. We aren't absolutely sure that this is a good idea, but it prevents certain anomalous behavior where the last page isn't ejected properly. (gdevprn.c) Implements a long-delayed update to the mgr drivers, to restore the color mapping to an older one. (gdevmgr.h, gdevmgr.c) Updates the uniprint driver with a number of changes from its author. (gdevupd.c) Platforms --------- Adds the JPEG, Postscript, and PCL XL drivers, which are included on all other platforms, to the MS Windows platforms. (bcwin32.mak, msvc4.mak, msvc5.mak, watcw32.mak) Interpreter ----------- Fixes bugs: - composefont defined the resource with the font name and font directory interchanged. (gs_cmap.ps) - With dFIXEDMEDIA, documents requesting other sizes caused an error instead of clipping the page. (gs_init.ps) - PageSize Policy = 7 wasn't implemented. (However, the current implementation is wrong.) (gs_setpd.ps, zmedia2.c) - FontType resource 42 wasn't defined even if Type 42 fonts were supported; similarly for FontType 9, 10, and 11 for CIDFonts. (gs_cidfn.ps, gs_res.ps) - The error handling machinery would break if the name /errordict was redefined. (gs_init.ps) - Level 1 systems got an /undefined in .doneshowpage. (zdevice.c, zdevice2.c) - Because of an initialization order problem, copy didn't work on gstates. (zgeneric.c) Adds a naive implementation of findcolorrendering. (gs_lev2.ps, gs_res.ps) Removes the 'stopped' around run_string[_begin/continue/end] so that, as in 4.03, errors print a hex dump and exit with a non-zero code instead of printing a readable message and continuing. (We aren't sure that this change didn't undo the fix in 5.0 regarding calling startjob from run_string.) (gs_init.ps) Interpreter (PDF) ----------------- Fixes bugs: - stdin redirection failed for PDF files even if the new stdin was seekable. This was fixed in 4.02, but the fix stopped working with the introduction of .runexec. (pdf_main.ps) Makes the cross-reference reader accept a startxref value that points at the EOL before the xref line. The Adobe documentation doesn't allow this, but some real files are this way. (pdf_main.ps) Library ------- Fixes bugs: - The bounding box of a completely empty path was reported as garbage. (gxpath2.c) - Stroking a path with more than one segment didn't produce correct output when anti-aliasing was used. (gspaint.c) - The alpha-buffer device returned an incorrect clipping box, causing output to be discarded. (gdevabuf.c) - gx_forward_get_clipping_box passed the wrong device to the target procedure, producing incorrect results. (gdevnfwd.c) - The sin/cos procedure did some unnecessary computations (performance bug only). (gsmisc.c) - The procedure for adjusting the ends of curves to match the tangents did some unnecessary computations (performance bug only). (gxpcopy.c) - RAM-based banding always gave an invalidfileaccess error, due to a typo in memfile_fopen. (gxclmem.c) - The algorithms for deciding whether a line is thin still weren't correct. (gxstroke.c) - The fill adjustment values for the any-part-of-pixel case (adjust = 0.5) were (0.5-epsilon, 0.5+epsilon), which colored inappropriate additional pixels if the higher coordinate was integral. With considerable trepidation, we have changed this to (0.5-epsilon,0.5), which does the right thing in every case we can think of. (gxfill.c) - When banding, paths were clipped to only 0.5 pixel outside their bounding box, which may be slightly too conservative; 1 pixel is safer. (gxclpath.c) - The algorithm for testing whether an adjusted Y value spanned a pixel center was incorrect, causing some pixels to get colored incorrectly. (gxfill.c) - 24-bit devices could cause a memory fault, by accessing a pointer just beyond the end of the line pointer array. (gdevm24.c) - Astonishingly enough, the determination of which hints were applicable to a given segment of a Type 1 character was wrong in several different places. Fixing this in a way that correctly handled all allowed permutations of the coordinate system was not simple. (gxfont1.h, gxhint1.c, gxhint3.c) - The debugging printout macros didn't include the syntactic hack to prevent an 'else' from begin assigned to the wrong 'if'. (gdebug.h) - The bbox device was accidentally limited to 130 x 130 pixels (not 130" x 130"). (bug introduced in 5.0) (gdevbbox.c) - The bbox device didn't recognize PageBoundingBox in put_params, causing a possible /undefined error on [g]restore. (gdevbbox.c) - setlinewidth didn't take the absolute value of its operand. (zgstate.c) - Some code formatting was slightly off. (gximage5.c) - Some extra pixels were written for Interpolated images, but they were immediately overwritten, so the output was correct. (gximage5.c) Changes the data flipping API from a macro to a procedure, adds a return value, and makes the individual flipping procedures private. (gsflip.h, gsflip.c) Adds (under an #ifdef FUTURE) code to allow passing multi-plane images through the band list. (gxclpath.h, gxclimag.c, gxclread.c) Adds (under an #ifdef FUTURE) code to allow passing interpolated images through the band list. NOTE: interpolated images will appear slightly different than without banding, because the part of the image intersecting each band will be scaled slightly differently in the (device) Y direction. (gxclpath.h, gxclimag.c, gxclread.c, gximage.c) Changes Type 1 hinting so that when it moves points on a curve, it does so by properly scaling the curve in the given direction. (gxhint3.c) Version 5.0 (6/6/97) ==================== This is the first public release since 4.03. Documentation ------------- Fixes bugs: - Fontmap.Sol was incorrectly referred to as Fontmap.Solaris. (use.txt) - There was still a reference to pstoppm in the documentation. (psfiles.txt) - The JPEG DOS source site information was out of date. (jpeg.mak) - The list of devices included in the distributed Unix makefiles was out of date. (make.txt) - The MCU size limitation on the DCT filters was documented incorrectly. (current.txt) - The URL for the uniprint driver home page was incorrect. (devices.txt) - The makefiles referred to sfilefd.c, which is now named sfxfd.c. (gs.mak, *.mak) Adds a VMS help file. (gs-vms.hlp) Removes documentation for Digital Unix (OSF/1) 1.2 and 1.3, which are now long obsolete, and updates the documentation for current versions. (make.txt) Notes that there may be a problem with libpng version 0.95. (libpng.mak) Adds some specific documentation for the JPEG drivers. (devices.txt) Adds a suggestion that people compiling Ghostscript check the values of JVERSION and PVERSION. (make.txt) Removes the requirement for setting the LIB environment variable when compiling with MSVC. (make.txt) Procedures ---------- Fixes bugs: - There were a number of small errors in the new OpenVMS makefile. (openvms.mak) - The MSVC makefiles omitted a necessary switch to work around some "unspecified Pentium bugs". (msvccom.mak) - The Borland makefile wasn't even close to working; fixing it required moving the compilation rule for genarch.exe into the compiler-specific makefiles. (bcwin32.mak, msvccom.mak, watcw32.mak, wincom.mak) - There were some (harmless) undefined macro references in the MSVC makefile. (msvccom.mak) Makes it unnecessary to set the LIB environment variable for MSVC. (msvc4.mak, msvc5.mak, wincom.mak) Adds a note on compiling with the cygwin32 gcc compiler for Windows NT. (make.txt) Updates vms.mak yet again, hopefully for the last time. (vms.mak) Moves the CGM, JPEG, and MIFF file formats from DEVICE_DEVS8 to DEVICE_DEVS14 to shorten command lines; adds pcxcmyk to all platforms that include PCX format at all; adds jpeggray to all platforms that include jpeg. (devs.mak, *.mak) Adds -DPNG_USE_CONST for compiling libpng, to get rid of compiler warning messages. (gs.mak) Removes obsolete makefiles from the fileset. (tccommon.mak, tctail.mak) Interpreter ----------- Fixes bugs: - restore was broken if -dNOBIND was invoked. This fix should have been in the 4.81 fileset, but was left out due to operator error. (gs_dps1.ps) - Some compilers complained about macro argument replacement within a string literal. (isave.c) -dSAFER didn't allow opening the %stdxxx files, which caused the combination of -dSAFER and -dNOBIND to cause an infinite error. (gs_init.ps) - If C code used run_string to execute a startjob, an error occurred. (gs_init.ps) Library ------- Fixes bugs: - Some compilers complained about macro argument replacement within a string literal. (gxclbits.c, gdevpdfi.c) - At certain resolutions, a 1-pixel line of the wrong color could appear at one edge of landscape-oriented monobit images. (This is the 4th or 5th time we have "fixed" this one infuriatingly fragile piece of code.) (gxfixed.h, gximage1.c) - The optimized code for landscape monobit images overlooked the possibility of partial images, causing parts of images to be translated and possibly clipped. (Yes, it's that same fragile piece of code.) (gximage1.c) - The bounding box device allowed resetting its resolution, which could cause limitchecks from coordinate overflow. Our fix is to initialize the device to a very high resolution (4000 dpi), which reduces the maximum page size it can handle to about 130" on a side. (gdevbbox.c) - The bounding box device wasn't identified as a page device. (gdevbbox.c) - The bounding box device used alone disregarded changes in page size. (gdevbbox.c) - One old compiler didn't allow a structure member name to be the same as a typedef name. (gximage.h, gximage.c, gximage4.c) - The height and band intersection computations for banded images still weren't right, leading to inconsistencies in the band list and errors in the output (typically, thin horizontal white stripes at band boundaries). (gxclimag.c) Adds an extensive memory dump facility to the standard allocator. Eventually this should be moved into a separate file, but it would be too disruptive to do this just before a release. (gsalloc.c) Version 4.81 (6/1/97) ===================== This is a last-minute set of bug fixes before the 5.0 release. Documentation ------------- Adds some overlooked helpers to the list. (helpers.txt) Procedures ---------- Makes a distinction between 2-part and 3-digit version numbers. (version.mak, vms.mak) Utilities --------- Develops the Type 1 to CFF converter a little further; it is still NOT USABLE. (t1tot2.ps) Removes the pstoppm.ps script, since the p*m drivers supersede it. (pstoppm.ps, unix-end.mak) Drivers ------- Fixes bugs: - The PDF writer sometimes omitted an ET command before setting the clip path. (gdevpdf.c) - The PDF writer didn't initialize the "vector" state, leading to some redundant output (performance bug only). (gdevpdf.c) - The PDF writer wrote clip paths even when they included the entire page (performance bug only). (gdevpdf.c) Changes the PDF writer so that it recognizes not only the 14 built-in fonts but any font with the same UniqueID and metrics. This covers some common cases of re-registering a font with a variant Encoding. (gs_pdfwr.ps) Platforms --------- Fixes bugs: - SEARCH_HERE_FIRST was accidentally set to 0 on MS Windows platforms. (bcwin32.mak, msvc4.mak, msvc5.mak, watcw32.mak) Adds code to remove "" around arguments in the command line passed to WinMain (MS Windows platforms). (dwmain.cpp, dwmainc.cpp) Interpreter ----------- Fixes bugs: - setsystemparams was broken. (gs_lev2.ps) - restore was broken if -dNOBIND was invoked. (gs_dps1.ps) - deviceinfo returned much more information than it should. (gs_dps.ps) - The fix for the default EndPage procedures not popping their page count operand from the stack was wrong. (gs_init.ps, gs_setpd.ps) Library ------- Fixes bugs: - The saved character origin took the translation component of the FontMatrix into account, which caused charpath on fonts with non-zero translation in the FontMatrix to produce incorrect results. (gschar.c) Removes incorrect access attributes on a couple of files. (gdevpdfm.c, gxclist.h) Version 4.80(limited) (5/28/97) ===================== This is the candidate fileset for the 5.0 release. Documentation ------------- Fixes bugs: - The one-line description of the color image rendering module was incorrect. (gximage3.c) - Some of the VMS documentation was out of date. (make.txt, use.txt) - The description of the file name separator for -sFONTMAP= was wrong. (use.txt) - PSFile was misspelled PSfile. (use.txt) - There were some minor typos. (gstype1.h) - The build instructions had a lot of obsolete information for PC environments, and didn't cover Microsoft Visual C++. (make.txt) Explains that -sPAPERSIZE= only specifies the default papersize, and that forcing a particular paper size also requires -dFIXEDMEDIA. (use.txt) Adds information about building with GNU make on OpenVMS. (make.txt) Clarifies the meaning of EOFC for streams. (strimpl.h) Documents the new dictionary argument for the eexecDecode filter. (language.doc) Procedures ---------- Fixes bugs: - gs_epsf.ps didn't get installed on Unix systems. (unix-end.mak) - The code wouldn't build with libpng 0.95b. (libpng.mak) - One of the VMS scripts used CC_QUAL instead of CC_DEF. (vms-cc.mak) - version.mak wasn't included in a dependency list. (unix-end.mak) Brings the VMS DCL script up to date again (for the last time, we hope). (vms.mak) Modifies all platform-independent uses of upper-case command line arguments to deal properly with VMS, where the shell converts all command line arguments to lower case, without requiring quotation. (devs.mak, gs.mak, int.mak, lib.mak, zlib.mak) Moves the compilation rules for the third-party libraries into gs.mak, so they can be used to compile the callers as well. (gs.mak, jpeg.mak, libpng.mak, zlib.mak) Adds a set of files that allow building on OpenVMS using GNU make (slightly patched). The timing on this is unfortunate, but we've wanted this for a very long time. NOTE: be sure to look in the OpenVMS section of make.txt for information on patching GNU make. (openvms.mak, append_l.com, rm_all.com, rm_one.com, copy_one.com) Adds new makefiles for building on 32-bit Windows with Borland, Watcom, and Microsoft Visual C++ (versions 4.x and 5.0). The timing on this is unfortunate too, but having this capability is so important that we couldn't pass it up. (bcwin32.mak, msvc4.mak, msvc5.mak, msvccom.mak, watcw32.mak, wincom.mak) Removes now-obsolete makefiles. (dwcommon.mak, msc.mak, msvcwint.mak, mscbegin.bat, watcwin.mak) Utilities --------- Extends echogs to work in VMS environments, where the shell converts all command line arguments to lower case, without requiring quotation. (echogs.c) Adds a sketch of a utility for converting Type 1 fonts to CFF. DOESN'T WORK YET: DON'T TRY TO USE IT. (t1tot2.ps, type1ops.ps, writecff.ps) Drivers ------- Fixes bugs: - A type declaration wasn't compatible with libpng 0.95. (gdevpng.c) - kshow wasn't handled properly when producing PDF output. (gs_pdfwr.ps) - The PDF writer put out unnecessary ET/BT commands. (gdevpdfx.h, gdevpdf.c, gdevpdfi.c, gdevpdfm.c, gdevpdft.c) - The PCL XL writer put out real numbers for the miter limit, which are not allowed (!). (gdevpx.c) - The PCL XL writer didn't combine successive curves into a single curve command (performance bug only). (gdevpx.c) - The PCL XL writer could write uncompressed images with a tag saying they were compressed. (gdevpx.c) - The PCL XL writer always selected U.S. letter paper, rather than the requested size. (gdevpxen.h, gdevpx.c) - The PCL XL writer reselected the paper size on every page, even if it hadn't changed. (gdevpx.c) - The PCL XL writer always used shorts for line and curve coordinates, rather than using bytes when possible (performance bug only). (gdevpx.c) - Because of a compiler bug, a macro with argument conflicted with a variable name. (gdevpdfx.h, gdevpdf.c) - A picky compiler objected to an extern for an undefined structure. (gdevpsdf.h) - The PDF writer sometimes didn't reset the clipping path, causing bitmaps or rectangle to disappear. (gdevpdf.c, gdevpdfi.c) - The PDF writer produced invalid output if the first page was blank. (gdevpdf.c) - The AutoRotatePages parameter for PostScript and PDF output (which doesn't actually do anything yet) incorrectly expected a Boolean value rather than an enumeration. (gdevpsdf.h, gdevpsdf.c) - Some places returned -1 for an error without calling gs_note_error or gs_return_error. (gdevm1.c, gdevmpla.c, gdevrun.c, gxclpath.c) - The PCL XL writer produced extremely large files because it didn't download character bitmaps. (OK, this isn't really a bug fix.) (gdevpx.c) - The forwarding implementation of get_page_device didn't do the right thing. (gdevnfwd.c) - The x11alpha device didn't implement get_params properly, leading to anomalous behavior. (gdevxalt.c) - The PDF writer produced incorrect Count values for outlines: the count only counted descendant leaves, omitting intermediate nodes. (gdevpdfm.c) Removes an assumption that images have at most 4 components. (gdevpdfi.c) Adds an x11gray2 device, primarily for debugging. (devs.mak, gdevxalt.c) Updates the unified printer driver with a newer version. (uninfo.ps, gdevupd.c, *.upp) Platforms --------- Adds the P*M devices and the X11 devices (commented out) to the OS/2 makefile. (os2.mak) Updates the MS Windows platform to be compatible with Microsoft Visual C++ (as well as Watcom and Borland compilers). (gsdll32.def, gdevmswn.h, gp_mswin.h, gsdll.h, dwimg.cpp, dwmain.cpp, dwmainc.cpp, dwtext.cpp, gdevwdib.c, gdevwprn.c, gdevwpr2.c, gp_mswin.c, gsdll.c) Fonts ----- Fixes bugs: - Certain synthetic fonts incorrectly were loaded into local rather than global VM. (These fonts are not part of the standard distribution.) (gs_fonts.ps, gs_pfile.ps, *ss*.ps) Interpreter ----------- Fixes bugs: - The FAKEFONTS scan could leave junk on the stack. (gs_fonts.ps) - Dynamically loading known encodings on demand left junk on the stack, causing a typecheck error. (gs_res.ps) - Some 'static' declarations were missing (gcc lossage). (iname.c) - Some internal operators didn't have names, leading to unhelpful error printout. (zfileio.c) - The resource "operators" didn't always restore the stacks properly on an error. (gs_res.ps) - The CID font code left a garbage value on the stack during loading. (gs_cidfn.ps) - The defineresource implementation for built-in resources like FMapType didn't leave the resource "value" on the stack. (gs_res.ps) - If an operator defined by a procedure was bound into a packed procedure, the stack-protection feature wasn't effective. (interp.c) - findfont didn't restore the stack if it failed. (gs_res.ps) - The showpage count passed to the BeginPage and EndPage procedures was incremented only if a page was printed, rather than for every invocation of showpage. (gs_init.ps, zdevice2.c) - The default EndPage procedures didn't pop their page count operand from the stack. (gs_init.ps, gs_setpd.ps) - If the argument of findfont wasn't a name or a string, and no font with that key had been registered, an error occurred. (gs_fonts.ps, gs_res.ps) Updates most of the remaining pseudo-operators to take advantage of stack protection. (gs_btokn.ps, gs_cmap.ps, gs_dps1.ps, gs_dps2.ps, gs_fonts.ps, gs_lev2.ps, gs_pdfwr.ps) Splits the image operators into a separate file from the path painting operators. (This should have been done a long time ago.) (iimage.h, zimage.c, zpaint.c) Adds more of the implementation of the NeXT alpha and compositing operations, under an #ifdef DPNEXT. (iimage.h, zcolor1.c, zdpnext.c, zimage.c) Adds more of the implementation of DPS contexts. These are still not usable. (icontext.h, icontext.c, zcontext.c, zmath.c) Changes the help message to describe -dBATCH instead of -c quit. (imainarg.c) Recognizes the dictionary argument for the eexecDecode filter. (zmisc1.c) Streams ------- Fixes bugs: - The tracing message when starting to decode 1-D fax data reported the run_color incorrectly. (scfd.c) - In the CCITTFaxDecode filter, if a buffer boundary fell between a makeup code and a final zero-length termination code, an ioerror could occur. (scfd.c) - Per Adobe, in the CCITTFaxDecode filter, EndOfBlock = true should cause Rows to be ignored. (scfd.c) - If an output stream returned EOFC, an infinite loop might result. This problem (and the fix) are in the same fragile code as the EOD fix in 4.74, and we may again have introduced a new bug. (stream.c) Changes the eexecDecode filter so that instead of a number, it can take a dictionary with two keys, seed and lenIV. (Having eexecDecode skip initial bytes at all was a design bug that is too late to fix.) (sfilter.h, seexec.c) Library ------- Fixes bugs: - The default mapping from RGB+alpha to RGB didn't lighten (premultiply) the color according to the alpha value. (gxcmap.c) - The angle error metric for rational tangent screen parameters should be simply the difference in angle, not a ratio. (gshtscr.c) - gs_setcolorscreen and gs_sethalftone didn't initialize an allocator pointer, leading to memory access errors. (gsht1.c) - If a banded image was clipped, an invalid band list could be produced. (gxclimag.c) - A picky compiler wouldn't allow an enum to be &&'ed with a boolean. (gschar.c) - A short-sighted compiler didn't allow the use of actual procedure names (as opposed to procedure variables) in a conditional expression. (gxfill.c) - A compiler objected to a name longer than 31 characters. (gzht.h, gsht.c, gxclread.c) - The height computations for banded images were not consistent, possibly leading to invalid band lists. (gxclimag.c) - copypage didn't reset the band writer and band reader bookkeeping consistently, leading to incorrect output and possible errors. (gxcldev.h, gxclist.c, gxclread.c) - When banding, changing the halftone could lead to accessing memory after freeing it. (gxclread.c) - When using disk files for band storage, showpage didn't actually delete or truncate the band list file, possibly causing subsequent copypage operations to become confused. (gxclfile.c) - When banding, having more than one image operator in progress at a time confused the rasterizing pass and could produce arbitrary errors. From PostScript, this can only happen in the case of an image whose data source was a procedure-based stream that itself invoked an image operator: this is a senseless and perverse thing to do, but it shouldn't break the code (and a Genoa CET file actually does it). (gxclist.h, gxclimag.c, gxclist.c) - Some picky compilers objected to negating unsigned values. (gsuid.h, gsht.c, gsmemory.c, gxpcopy.c) - When banding, if a 90- or 270-degree rotated monobit image was clipped, invalid memory accesses could occur. (gximage.h, gximage1.c) - The showpage count passed to the BeginPage and EndPage procedures was incremented only if a page was printed, rather than for every invocation of showpage. Fixing this requires removing the incrementing of the count from the library level altogether. (gsdevice.c) - When rendering a subrectangle of an image, the X DDA was initialized incorrectly, causing possible errors. We think this only affected certain banded images. (gxdda.h) Adds a provision for images with an alpha component, under an #ifdef DPNEXT. ****** THE BANDING CODE HAS NOT BEEN UPDATED YET. ****** (gsiparam.h, gxcmap.h, gxdither.h, gximage.h, gsimage.c, gxclimag.c, gxclread.c, gxcmap.c, gximage.c, gximage3.c, gximage4.c ****** NOT DONE YET ******, gximage5.c) Adds a return_if_error macro to capture the common idiom of making a call and then returning its value if that value is negative (error). (gserror.h) Version 4.74(limited) (5/5/97) ===================== This fileset is supposed to fix all remaining errors reported by the Genoa CET, and is intended to be the last incremental test fileset before the 5.0 release. Documentation ------------- Fixes bugs: - Mark procedures are *not* executed in the normal return case. (estack.h) - The line_params element of a gs_imager_state is *not* allocated separately. (gsstate.c) - The value passed to the PDF writer for text is a dictionary, not an array. (gdevpdft.c) Improves the documentation of gstate memory management. (gsstate.c) Documents end_status = EOFC for writing streams. (stream.h, strimpl.h) Clarifies memory management for halftones and device halftones. (gsht1.h, gxdht.h, gxht.h, gzht.h) Removes the "experimental" tag from the PostScript and EPS writers. (devs.mak) Utilities --------- Fixes bugs: - The viewpcx utility scaled images improperly. (viewpcx.ps) - If a PDF file used F instead of f for filling a path, pdf2ps didn't output the fill operation. (pdf_base.ps) Changes the ps2pdf script so that, like pdf2ps, it allows debugging switches. (ps2pdf) Drivers ------- Fixes bugs: - The vgalib driver didn't clip monobit images properly. (gdevvglb.c) - The X driver asked for exposure events to be reported, but never read them, causing the event queue to grow indefinitely. (gdevxini.c) - The "vector" drivers and the PDF writer didn't properly keep track of whether the current clipping region was the default one. (gs_pdfwr.ps, gdevvec.h, gdevvec.c, gdevpdf.c, gdevpdft.c) - The PDF writer had word and character spacing interchanged. (gdevpdft.c) - The PDF writer scaled word and character spacing incorrectly. (gdevpdft.c) Interpreter ----------- Fixes bugs: - The user object operators didn't leave the stack in a clean state if they failed. (gs_dps2.ps) - UserObjects wasn't actually defined. (gs_dps2.ps) - deviceinfo and set/currenthalftonephase were defined even if the dps feature wasn't selected. (int.mak, gs_dps.ps, gs_dps1.ps, gs_lev2.ps, zdps.c, zdps1.c) - The dps feature didn't automatically include the level2 feature, which it needs. (int.mak) - The DPS user names mechanism didn't work, since the user names array was subject to save and restore. (It still doesn't really work -- there is no provision for expanding the user names array, which is created with length 0.) (gs_btokn.ps, ivmspace.h, zbseq.c, zdps.c) - The DPS context operators didn't do all the necessary error checking. (zcontext.c) - The debugging printout for names printed the name index in hex without identifying it as such. (idebug.c) - Adding the first non-name key (or name key with a name index beyond 4K) to a dictionary that had any deleted entries could cause some entries to apparently disappear. (idict.c) - If a sub-table of the name table was freed during garbage collection, memory could be left in an inconsistent state. (iname.c, igc.c) - findfont didn't restore the stacks reliably if an error occurred. (gs_fonts.ps) - definefont with an invalid Type 0 font sometimes added a FID entry (with a dangling pointer) if it failed. (Recovering properly from a VMerror during font creation would require a much more complicated fix than this, but since we expect a garbage collection to occur in that case, we aren't concerned about it.) (zfont0.c) - Reading parameter values from a dictionary could access beyond the end of the array that keeps track of which entries had been referenced. (idict.h, idict.c, iparam.c) - Halftone data was allocated in the current VM rather than in the same VM as the halftone dictionary or procedure. (Fixing this includes updating code as necessary for the change in halftone and device halftone allocation.) (iht.h, ivmspace.h, zht.c, zht1.c, zht2.c) - Closed non-executable files on the e-stack could cause a restore to be invalid. (zvmem.c) Adds skeleton code for the NeXT Display PostScript alpha and compositing operators. This is not ready for use yet! (errors.h, gs_dpnxt.ps, zdpsnext.c) Implements more of state saving and restoring for Display PostScript contexts. This is not ready for use yet either. (int.mak, icontext.h, istack.h, icontext.c, zcontext.c) Adds stub code for the Display PostScript view clip operators. (gs_dps.ps, zdps.c) Removes the obsolete PPM-writing operator. (int.mak, vms.mak, *.mak, zwppm.c) Makes the random number generator state public so it can be stored in the context state. (zmath.c) Changes the flag for forcing global garbage collection to a run-time variable, for debugging. (igc.c) Changes the handling of job control so that it doesn't use procedures that produce an execstackoverflow when being printed. (gs_init.ps) Updates code as necessary for the change in reference counting. (zcie.c, zcrd.c) Updates code as necessary for the change in off-stack gstate copying. (zdps1.c) Removes a small bit of obsolete code. (interp.c) Streams ------- Fixes bugs: - An output stream that was not the last one in a pipeline could incorrectly be asked to write its EOD marker more than once. (The fix is very fragile and may have introduced new bugs.) (stream.c) Library ------- Fixes bugs: - The gx_device_halftone_release procedure was declared in two different header files. (gzht.h) - Off-stack copying of gstates could lead to a situation where different parts of a single gstate were owned by different allocators; this could cause them to be freed improperly, corrupting memory. We fixed this partly by making the mixed ownership situation work, and partly by copying more of the gstate when off-stack gstates are involved. Unfortunately, the fixes are subtle and may have introduced new bugs. (gsstate.h, gsht.c, gsht1.c, gspcolor.c, gsstate.c) - If an error occurred while creating a Pattern instance, the partially initialized instance structure wasn't freed. (gspcolor.c) - Halftones and device halftones didn't allocate their clones or their subsidiary structures with the correct allocator. (gsht.c, gsht1.c) - The error statement when allocating a reference-counted object had to be a control transfer. (gsrefct.h) - Copying gstates incorrectly copied the memory and saved pointers, and the pointer to the dash pattern. (gsstate.c) - Flatness values less than 0.5 produced far more line segments than necessary (roughly the square of the required number). Fixing this may have bad effects on character quality -- this remains to be seen. (gxpflat.c) - An error during installation of a halftone could leave things in an inconsistent state. (gsht.c) - The API didn't provide enough flexibility with respect to memory management for halftones, or guarantee consistent allocation of a halftone and its subelements. (gsht1.h, gsht.c, gsht1.c, gshtscr.c) - Releasing a path didn't clear enough pointers to ensure clean garbage collection. (gxpath.c) - Finalizing or discarding a (cached) scaled font didn't properly unlink it from the scaled_fonts list. (gsfont.c) - Invoking an image operator within the BuildChar procedure for a charpath caused an infinite loop. (gsimage.c) - The bookkeeping for the scaled font cache was incorrect: the count didn't always get decremented when a scaled font was freed. (gsfont.c) - "High level" masked images were written incorrectly in the band list as black-and-white images. (gxclimag.c) - For "high level" images with fewer than 4 samples per pixel, non-standard Decode values were written incorrectly in the band list. (gxclimag.c) - The color wasn't set correctly for "high level" masked images. (gxclimag.c) - The fastest case of monobit image rendering could get a memory access error if the image lay partly outside the page. (gximage1.c) - Clipping with an empty path was a no-op, rather than clipping out everything. (gxcpath.c) Makes reference-counted objects remember which allocator owns them: this entails a NON-BACKWARD-COMPATIBLE change to some of the macros for reference counting. This was necessary to fix the off-stack gstate copying problem. (gsrefct.h, gscie.c, gscolor.c, gscolor1.c, gscolor2.c, gscsepr.c, gsstate.c, gxclread.c) Refactors the unpacking of image data, to make unpacking available as a general facility. (gximage.h, gxsample.h, gximage.c, gximage0.c, gximage1.c, gximage4.c, gxsample.c) Enhances -Z? so that before freeing an object, it checks that the object was owned by the correct allocator. (gsalloc.c) Version 4.73(limited) (4/19/97) ===================== This is an incremental bug fix release made primarily to provide a synchronization point for an upcoming trip. Documentation ------------- Fixes bugs: - A reference to the uniprint documentation was incorrect. (current.txt) - -Olimit 1000 is not enough now for DEC Ultrix, 1200 is required; this is also required for SGI IRIX. (make.txt) Adds argument/result comments to all the operators defined in gs_lev2.ps. (Eventually we will do this for all operators defined as PostScript procedures.) (gs_lev2.ps) Procedures ---------- Fixes bugs: - The makefiles didn't provide a default value for GCONFIG_EXTRAS. (gs.mak) Utilities --------- Fixes bugs: - pdf2ps didn't work with TrueType or compressed Type 1 fonts. (gs_pdf.ps, pdf_2ps.ps, pdf_font.ps) Drivers ------- Fixes bugs: - A cast from byte to char was omitted. (gdevpdfm.c) Platforms --------- Updates the VMS script (again). (vms.mak) Interpreter ----------- Fixes bugs: - A module that used strlen didn't include string_.h. (zdevice.c) - Because of some bad PostScript code in FrameMaker output, identity rather than unity black generation and undercolor removal functions are required on black-and-white devices. (gs_init.ps) - A harmless internal error during initialization left bogus information in $error. (gs_cidfn.ps) - startjob didn't clear the execution stack. Fixing this required NON-BACKWARD-COMPATIBLE changes to the internal operators .instopped, .stop, and .stopped, which are not supposed to be used by any external code. (startjob will still give errors if executed in a file that isn't being piped from stdin; this will take longer to fix.) (gs_init.ps, gs_lev2.ps, iref.h, imain.c, interp.c, zcontrol.c, zfile.c) Adds a new .execn operator, part of the startjob changes, that allows pushing multiple items on the exec stack. Eventually this will allow us to get rid of many dynamically created closures. (zcontrol.c) Interpreter (PDF) ----------------- Fixes bugs: - Landscape-mode PDF files weren't rotated properly. (gs_pdf.ps, pdf_main.ps) Makes the default PDF configuration notify users more informatively when encountering an encrypted file. (pdf_sec.ps) Streams ------- Makes the RunLengthEncode filter always generate optimally compressed output. We did this because we thought one of the Genoa CET files loops forever if this is not the case; but we were wrong. (srle.c) Library ------- Fixes bugs: - If one coordinate of a position or distance overflowed the internal representable range, the other coordinate became garbage. (bug introduced in 4.70) (gspath.c) - The bounding box computation for strokes was slightly too large (sometimes much too large). (gxpaint.h, gdevbbox.c, gxclpath.c, gxstroke.c) Adds (under an #if 0) an experimental alternate halftone cell choice algorithm. (gshtscr.c) Adds a better comment to a particularly obscure line of C code. (gxclimag.c) Version 4.72(limited) (4/14/97) ===================== This is another bug fix release, motivated mostly by Genoa testing. It also updates the new uniprint driver with a major revision, and upgrades CFF support a little bit. Documentation ------------- Fixes bugs: - -dNOGC only disables default automatic garbage collection, not all garbage collection. (use.txt) - Apparently a different set of flags is needed for newer H-P compilers. (make.txt) Replaces the tiny FAQ with a pointer to the on-line FAQ. (use.txt) Updates the documentation for the uniprint driver. (devices.txt) Clarifies the fact that Ghostscript reads Fontmap files from *all* directories in the search list. (use.txt) Notes that building on Linux may require SM and ICE in the list of X libraries. (make.txt) Procedures ---------- Fixes bugs: - An -include type42 was omitted from the level2 module description. (int.mak) - A mention of $(ECHOGS) in the rule for sfile should have been $(ECHOGS_XE). (lib.mak) - The pcx2up sample device should have been put in devs.mak rather than lib.mak. (devs.mak, lib.mak) - scanchar.h and scantab.c belong in the library, not the interpreter. (devs.mak, int.mak, lib.mak) - Some _h definitions were used before being defined, or weren't defined at all. (devs.mak, lib.mak) - The JPEG driver was missing a dependency. (devs.mak) - The PDF writer was missing a dependency. (devs.mak) - Building Level 1 systems was no longer possible. (int.mak) Updates the VMS build scripts. (vms.mak, vms-decc.mak) Adds *.upp to the list of files installed under Unix. (unix-end.mak) Adds rules to the Unix makefiles to build two library files: gs.a, consisting of the entire PostScript/PDF interpreter lacking only gs.c, and gslib.a, consisting of the graphics library without the gslib.c test driver. (ansihead.mak, cc-head.mak, gcc-head.mak, unixtail.mak) Drivers ------- Fixes bugs: - The PS/EPS writers could generate a reference to an undefined name. (gdevps.c) - The PDF writer produced incorrect output for multi-level outlines. (gdevpdfm.c) - The PDF writer didn't convert /Action to /A, and /Action/Subtype to /S, in Annot dictionaries. (gdevpdfm.c) - The PDF writer didn't work in Level 1 systems. (gs_pdfwr.ps) - The PDF writer didn't transform /Rect and /R values to current user coordinates. (gs_pdfwr.ps, gdevpdfx.h, gdevpdfm.c) - The PNG writer could refer to the 3 predefined stdio files even in environments where this was undesirable. (gdevpng.c) - The PDF writer had a compiled-in limit of 100 pages of output. (gdevpdfx.h, gdevpdf.c) Updates the uniprint driver with a major revision that uses device parameters that can be set from the command line, rather than PostScript code, for configuration choices. (gdevupd.c, *.upp) Platforms --------- Fixes bugs: - gp_enumerate_files_next had no way to return an error. (gp.h, gp_dosfe.c, gp_ntfs.c, gp_os2.c, gp_unifs.c, gp_vms.c) ****** NOT IMPLEMENTED YET ****** - On the Watcom platform, CPU_TYPE >= 486 didn't automatically set FPU_TYPE to 387. (wccommon.mak) Interpreter ----------- Fixes bugs: - Caching the current device in userdict could create dangling references. (gs_init.ps, gs_pdfwr.ps, zdevice.c) - If an error occurred in a BuildChar or BuildGlyph procedure, the graphics state stack wasn't restored. (ichar.h, zchar.c, zchar2.c) - There was an obsolete check for a structure when cleaning up after a show operator. (zchar.c) - Attempting to show a character with no associated glyph in a Type 3 font with a BuildGlyph procedure caused an error. (zchar.c) - noaccess on a read-only dictionary didn't give an error. (ztype.c) - The dictionary passed to a Pattern's PaintProc was the original template, not the copy made by makepattern. (gs_lev2.ps) - Invalid font parameters could result in partially constructed fonts, which caused problems for restore. (zfont0.c, zfont2.c) - Files run under job control caused an error when terminating. (gs_init.ps) - setpagedevice didn't protect itself against malfunctioning BeginPage or EndPage procedures. (The protection is still not perfect.) (gs_setpd.ps) - .type42execchar called font_param redundantly. (zchar42.c) - The font operators didn't protect themselves well enough against bogus font dictionaries. (zfont.c, zfont0.c) - If an error occurred within a stringwidth, the graphics state stack wasn't restored properly. (zchar.c) - If an error occurred within the PaintProc of a form, the graphics state stack was left with an extra entry. (gs_lev2.ps) - Registering a font under a second name could corrupt data structures. (zfont2.c) - Different scalings of the same font should have "equal" fontIDs, to match the Adobe implementations. (iutil.c) - Errors detected by PostScript code during initialization either allowed execution to continue or produced a hex stack dump, instead of just producing a message and exiting. (interp.c) - The memory validator didn't validate chunks at previous save levels. (ilocate.c) - The Level 1 size of systemdict was too small. (iinit.c) - Attempting to define a Category resource in local VM gave a typecheck error rather than an invalidaccess. (gs_res.ps) - Building Level 1 systems was no longer possible. (zusparam.c) Rearranges the interpreter code slightly so that all operator invocations go through a single procedure when debugging. (interp.c) Adds a -K switch to limit the total amount of memory that Ghostscript can acquire. (imainarg.c) Makes the memory validator check packed refs more carefully. (ilocate.c) Makes the memory validator check explicitly for pointers to freed objects. (igc.c, ilocate.c) Makes the memory validator check dictionaries more carefully. (ilocate.c) Makes the memory validator check refs embedded in structures. (ilocate.c) Adds a debugging option that bypasses the garbage collector entirely. (igc.c) Adds debugging options to validate memory before/after save/restore. (zvmem.c) Removes the patch for the uniprint driver, since it is no longer needed. (gs_init.ps) Implements real-number operands in CFF fonts. (gs_cff.ps) Implements non-default charsets in CFF fonts. (gs_cff.ps) Interpreter (PDF) ----------------- Fixes bugs: - The PDF 1.2 "marked content" operators weren't defined. (pdf_main.ps) - Streams with binary data whose first character was an EOL (\n) didn't parse properly. Unfortunately, the way we fixed this may break some other files. (pdf_base.ps) - PDF 1.2 #nn escape syntax in names wasn't recognized. ****** This is implemented with an inefficient hack that should be moved down into C. However, I don't want to risk introducing new bugs during the beta test period. ****** (pdf_base.ps) - The interpreter had a limit of 64K objects. Removing this limit required changing a basic data structure -- admittedly a risky thing to do during beta test. (pdf_base.ps, pdf_main.ps) - TJ didn't multiply the offsets by the font size, causing incorrect character positioning. (gs_pdf.ps) Streams ------- Fixes bugs: - The ASCIIHexDecode filter read an extra character in case of error. (sstring.c) Adds more tracing output to the CCITTFaxDecode stream. (scfd.c) Library ------- Fixes bugs: - The allocator client name for rendering bitmap patterns was incorrect. (Only affects tracing output.) (gspcolor.c) - The check for exceeding the overall allocation limit was incorrect, because of unsigned arithmetic. (Only affects limitation of total allocation, which is only used for debugging and benchmarking.) (gsmemory.c) - The 0'th component of colored screens wasn't passed through the band list, possibly causing access errors when rasterizing. (gxclimag.c, gxclread.c) - setbbox could get an overflow without detecting it. (gsdps1.c) - Images with only one component but MultipleDataSources = true could cause a memory access error. (gximage.c) - The buffer for unpacking 12-bit-per-sample image data was too small, causing memory corruption. (gximage.c) - 12-bit-per-sample images with multiple data sources sometimes didn't pass correct pointers to image_data. (gsimage.c) - If an image data stream reached EOF before supplying enough data for the entire image, memory corruption could occur. (zpaint.c) - When a device halftone was freed, some pointers in the halftone cache weren't cleared, leading to possible dangling references. (gsstate.c) - Invalid font parameters could result in partially constructed fonts, which caused problems for restore. (gxfont0.h, gsfont.c) - If an error occurred within a stringwidth, the graphics state stack wasn't restored properly. (gschar.c) - The (static) limit on the size of a command line argument was too small. (gsargs.h) - Building Level 1 systems was no longer possible. (gxdht.h, gsht.c, gsht1.c) - Truncation instead of rounding caused colors on gray-scale devices to come out very slightly too dark. (gxcmap.c) - The Decode mapping table constructed for images was slightly inaccurate for ranges other than [0 1] or [1 0]. (gximage.c) Version 4.71(limited) (3/31/97) ===================== This is a bug fix release during the beta test period. Documentation ------------- Fixes bugs: - A larger value of -Olimit is now needed to optimize gxclread.c. (make.txt) - Some comments were incorrect. (gdevbbox.h, sfilter1.c) Updates the GPL with a newer version from FSF. (COPYLEFT) Notes that the gcc 2.7.x code generation bug is fixed in 2.7.2.1. (make.txt) Procedures ---------- Fixes bugs: - Some streams required by high-level drivers were incorrectly grouped with the interpreter rather than the library. (int.mak, lib.mak) - The choice of implementation for file streams was buried in an obscure place, rather than being included in the configuration definitions at the head of each makefile. (We believe there are no more such buried parameters.) This involved a NON-BACKWARD-COMPATIBLE change in the way this choice was specified. (lib.mak, *.mak) - Some dependencies were missing. (lib.mak) Drivers ------- Fixes bugs: - A variable was used before being initialized, causing get_bits (and raster ops) to fail when using alternate X devices. (bug introduced in 4.70.) (gdevxalt.c) - Some 'private' declarations were omitted. (It is infuriating that gcc doesn't check for this!) (gdevps.c, gdevpx.c) - A few character strings were used as byte arrays without a cast. (gdevpx.c) - The EPS writer didn't write a correct bounding box, and didn't write it at the beginning of the file. (gdevvec.h, gsstruct.h, gdevps.c, gdevvec.c) - x_copy_color specified an incorrect (too large) image width. Apparently this only mattered because it could cause invalid memory accesses. (gdevx.c) - x_copy_mono also specified too large an image width. It's not clear this made any difference. (gdevx.c) - The default implementation of strip_copy_rop didn't clamp Y values to legal values for get_bits. (gdevmrop.c) Interpreter ----------- Fixes bugs: - Some initialization files prematurely switched the interpreter into Level 2 mode, causing some Level 2 operators not to be defined. (bug introduced in 4.60 or later.) (gs_cff.ps, gs_cidfn.ps, gs_cmap.ps, gs_init.ps, gs_res.ps) Streams ------- Fixes bugs: - The choice of procedure names for the file-descriptor-based implementation of file streams was buried in a .c file, rather than being chosen in the makefile. (sfile.c[deleted], sfileno.c[deleted], sfxstdio.c, sfxfd.c, sfxboth.c) Library ------- Fixes bugs: - rcurveto was broken -- it drew curves to random points. (bug introduced in 4.61.) (gspath.c) - A trailing comma in an enum definition upset some compilers. (bug introduced in 4.70.) (gstype1.h) - Type 1 fonts with hint replacement could produce anomalous or clipped output, or even missing lines. (Also cleans up some out-of-date formatting.) (gxtype1.h, gstype1.c, gxhint2.c) - Removes some conditionals for choosing between old and new algorithms. (gxhint3.c) - makebitmappattern required that the bitmap consist of only a single tile repetition. (gspcolor.c) - Some computations on RasterOps didn't take transparency into account properly. (gdevmrop.c) - The structure definition for imager and graphics states had an incorrect offset for line_params, causing the garbage collector not to mark or relocate dash patterns, possibly causing memory faults, FPEs, or invalid output. (bug introduced since 4.03.) (gsstate.c) - 'show' operators gave a limitcheck for unreasonable coordinates, even if limit clamping was enabled. (gschar.c) Implements banded filling and stroking with colored halftones, in addition to pure colors and binary halftones. Since we are in a beta test period, actual use of this feature (but *not* all the code implementing it) is disabled under an #ifdef FUTURE. (gsdcolor.h, gxcldev.h, gxclpath.h, gxdht.h, gxhttype.h, gsht.c, gxclimag.c, gxclpath.c, gxclread.c) Version 4.70(limited) (3/26/97) ===================== This fileset fixes the one outstanding compilation problem on PC platforms and the old problem of limitchecks for out-of-bounds coordinates, and adds a variety of new features, including the ability to save away the band lists for pages and rasterize them later and/or elsewhere in any order and combination. This is the first "serious beta" candidate for the next general release. Fileset numbers 4.62 through 4.69 were skipped deliberately. Documentation ------------- Fixes bugs: - The list of special -d and -s switches was out of date. (use.txt) - The name of the zlibDecode filter was incorrectly written zlibEncode. (language.txt) Documents where to find out how to install gcc 2.7.x on SGI IRIX 6.x. (make.txt) Documents a makefile patch required on NeXTStep. (make.txt) Documents how to patch gcc to fix the AXP code generation bug. (make.txt) Adds documentation for the new unified printer driver. (devices.txt) Procedures ---------- Fixes bugs: - 'make distclean' didn't remove a couple of files. (gs.mak) - A library module didn't include a necessary dependency. (lib.mak) - A new .ps file wasn't installed properly. (unix-end.mak) - File write dates weren't updated properly on PC platforms, causing unnecessary rebuilding. (cp.bat, gs.mak, msc.mak, msvcwint.mak, os2.mak, tccommon.mak, wccommon.mak, zlib.mak) - An unnecessary explicit compilation line for gdevcdj.c caused problems in the Mac environment. (devs.mak) - The VMS scripts were out of sync again. (vms.mak) - The VMS build scripts didn't include the new JPEG driver. (vms-*.mak) - A number of makefile macros were referenced before being defined. (devs.mak, lib.mak, int.mak, *.mak) - libpng.mak didn't work with PVERSION=90. (libpng.mak, zlib.mak) Separates install-scripts from install-exec and install-data. (unix-end.mak) Moves the definition of SEARCH_HERE_FIRST from iminst.h to the makefiles. (*.mak, iminst.h, iconf.c, imain.c) Adds a -dBATCH switch that causes Ghostscript to exit after processing the files named on the command line. (gs_init.ps) Adds the PostScript, EPS, and PCL XL writers, and the color and gray-scale JPEG drivers, to all Unix configurations. (ansihead.mak, cc-head.mak, gcc-head.mak) Drivers ------- NOTE: because of a change in an internal interface (clist_output_page), the cp50 driver no longer works. This is a user-contributed driver for which we take no responsibility. Fixes bugs: - gdevcdj.c wasn't compatible with ansi2knr. (gdevcdj.c) - 'private' was omitted from some declarations. (gdevjpeg.c) - The PostScript writer didn't keep track of the current color properly. (gdevps.c) - RESOLUTION was misspelled in a header. (gdevbjc.h) - Some compilers objected to the use of a floating point initial resolution value. (gdevbjc.h) - Some compilers didn't allow static initialization of a union. (gsdcolor.h) - If a TIFF driver got an error when initializing the CCITTFax encoder, it returned a bogus error code. (gdevtfax.c) - The PDF writer produced incorrect output for Indexed color space images. (gdevpdfi.c) - For many fatal error conditions, the X driver called exit() instead of returning an error. (gdevx*.c) Adds new drivers: - epswrite, an EPS-writing driver (instead of making EPS output a parametric option of the PostScript-writing device). (devs.mak, gdevps.c) - pcxcmyk, a 4-bit CMYK PCX driver. This is probably only useful for debugging CMYK color rendering. (gdevpcx.c) - jpeggray, a JPEG driver that produces gray-scale rather than color output. Thanks to Tom Lane for contributing this. (gdevjpeg.c) - uniprint, a unified printer driver for a wide variety of inkjet printers. Thanks to Gunther Hess for contributing this. (gdevupd.c) Adds the resolution (pHYs) to the output of the PNG drivers. (gdevpng.c) Adds recognition of the ASCII85EncodePages parameter to the PostScript and EPS writers. (gdevps.c) Makes the new JPEG driver write a JFIF header, which contains the image resolution. (gdevjpeg.c) Changes the "vector" device support interface so relative movement can be detected easily. THIS IS STILL SUBJECT TO CHANGE WITHOUT NOTICE. (gdevvec.h, gdevpsdf.c, gdevps.c, gdevpx.c, gdevvec.c) Changes the PostScript, EPS, and PDF writers to recognize curves and lines that can be represented more efficiently. (gdevpsdf.h, gdevpsdf.c, gdevps.c) Adds a new parameter to the PDF writer, FirstObjectNumber. This defines the first object number that will be used in the output. The default, and minimum, value is 1; the maximum value is approximately 2^31. This is for the benefit of dvipdf; we don't expect it to be used otherwise. In fact, using it appears to produce files that Adobe Acrobat Reader won't accept, even though the files are perfectly compliant with the published PDF specification. (gdevpdfx.h, gdevpdf.c, gdevpdfp.c) Platforms --------- Removes the makefile for the 16-bit Borland C++ platform. This was the last supported 16-bit platform; we expect to gradually drop all 16-bit concessions from the code itself. (bcwin.mak) Interpreter ----------- Fixes bugs: - The initial size of systemdict was too small, causing the interpreter to slow down substantially. (iinit.c) - A library module depended on an interpreter module. (zcsindex.c) - A logically necessary (but accidentally always available) #include was missing. (ifont.h) Moves set/currentoverprint to a more appropriate module. (zcolor2.c, zcssepr.c) Changes the default transfer functions so that they do something reasonable when given operands outside the legal [0..1] range. We only do this to work around a bug in FrameMaker output, which uses the transfer function as the screen function (!). (gs_init.ps) Changes the CMap construction algorithm to use the new, more compact representation. (zfcmap.c) Adds support for Adobe's Compact Font Format. Many individual features are not implemented yet: see the comment in the source code for details. (gs_cff.ps) Adds support for Type 2 charstrings in Type 1 fonts. (ifont.h, zfont1.c) Changes the Type 1 character rendering operator for the library change in Type 1 fonts. (zchar1.c, zfont1.c) Initializes the graphics state limit clamp flag to true. (zgstate.c) Temporarily adds a configuration file for the new unified printer driver, and arranges for it to be read at startup. This arrangement will be replaced very soon by a different one based on command line parameters. (gs_init.ps, uniprint.ps) Interpreter (PDF) ----------------- Adds support for Compact Font Format fonts. (pdf_font.ps) Streams ------- Adds a glue procedure needed for the new jpeggray driver. (sjpeg.h, sjpege.c) Removes the width limit of 32K in the CCITTFaxEncode filter. The new limit is absurdly large (about 50M). (scf.h, scfx.h, scfe.c) Library ------- Fixes bugs: - A library module depended on an interpreter module. (gxcolor2.h, gscolor2.c) - When rendering a band, clipping was sometimes used when it wasn't necessary. (Performance only.) (gxclread.c) - Stroking didn't check the path against the device clipping box in the absence of an explicit (non-default) clipping path. (Performance only.) (gxstroke.c) - A reference to an opaque type upset a couple of compilers. (gxclread.c) - Negative 32-bit numbers in Type 1 fonts didn't work properly on 64-bit systems. (gstype1.c) - A logically necessary (but accidentally always available) #include was missing. (gxbitmap.h) - A header wasn't protected against double inclusion. (gxclist.h) - Clipping devices didn't store their actual width and height. (gxcpath.c) - The slow-case check for thin lines was incorrect. (gxstroke.c) - Images didn't compute their clipping boxes correctly if there wasn't an explicit clipping path. (This must be a very recent bug, since it creates an overflow condition that prevents monochrome images from being rendered at all.) (gximage.c) Moves set/currentoverprint to a more appropriate module. For clients of gs_set/currentoverprint, this is a NON-BACKWARD-COMPATIBLE CHANGE, since the header file is now separate. (gscolor2.h, gscsepr.h, gscolor2.c, gscsepr.c) Replace the MetroWerks work-around with a different, more general one. (gdevmem.h, gdevmem.c, gxdevice.h) Speeds up the Type 1 interpreter a little. (gstype1.c, gxhint3.c) Redesigns the internal representation of CMaps to be more space-efficient. (gxfcmap.h, gschar0.c, gsfcmap.c) Implements a facility for saving away pages and rendering them later. Currently this requires the pages to be represented as band lists on files, and only allows X translation when rendering. This involves adding the following new printer device parameters: BandHeight BandWidth BandBufferSpace Also changes the names of the printer device parameter elements from use_buffer_space to BufferSpace and from max_bitmap to MaxBitmap for consistency. (gdevprn.h, gxcldev.h, gxclio.h, gxclist.h, gxclmem.h, gxclpage.h, gxdevmem.h, gdevmem.c, gdevp2up.c, gdevprn.c, gxclmem.c, gxclpath.c, gxclread.c) Changes the band list implementation API to allow closing a file without deleting it, and to allow reopening an existing file. This is a NON-BACKWARD-COMPATIBLE change to a deep internal interface. (gxclio.h, gxclmem.h, gxclfile.c, gxclist.c, gxclmem.c) Speeds up rendering of colored halftones, by recognizing cases where one or more planes don't actually require screening, unrolling a loop, and doing basic clipping before halftoning. (gxcht.c) Adds a graphics state parameter, gs_set/currentlimitclamp, that changes the handling of out-of-range coordinates to clamp them in a way that produces approximately the intended output most of the time, rather than causing a limitcheck. Currently this is only designed to work with the basic path construction operations ([r]moveto, [r]lineto, [r]curveto, closepath); it does not work with many other operations such as show, flattenpath or the rectangle operations. Note also that while currentpoint will return the correct (unclamped) value, reading out the path with pathforall will return clamped values. This involves NON-BACKWARD-COMPATIBLE changes to the path structure (but not to any public interfaces). (gxpath.h, gxtype1.h, gzpath.h, gzstate.h, gspath.c, gspath1.c, gsstate.c, gstype1.c, gxpaint.c, gxpath.c, gxpath2.c, gxpcopy.c) Adds support for Type 2 charstrings. Some features are not implemented yet: see gstype2.c for details. (gscrypt1.h, gstype1.h, gxfont1.h, gxop1.h, gxtype1.h, gstype1.c, gstype2.c, gxhint2.c, gxhint3.c, gxtype1.c) Version 4.61(limited) (3/13/97) ===================== This fileset cleans up many compiler warnings. It adds support for CMap-encoded fonts, and a driver that writes JPEG images. Documentation ------------- Corrects an error in the description of the internal CodeMap structure. (gs_cmap.ps) Documents the fact that the optimizer in gcc 2.7.2.1 is broken on AXP machines. (make.txt) Corrects the name of the .setglobal/.currentglobal procedures. (zvmem2.c) Updates current.txt in preparation for the release. (current.txt) Procedures ---------- Fixes bugs: - The VMS script was out of date again. (vms.mak) - CIDFont support unnecessarily required composite font support. (int.mak) - CMap and CIDFont support had improper dependencies on initialization order. (lib.mak, int.mak) - Some dependencies were missing in the JPEG library code. (jpeg.mak) Adds the new JPEG driver to all standard configurations. (*.mak) Drivers ------- Fixes bugs: - A dependency was omitted from the makefile. (devs.mak, gdevps.c) Cleans up some warnings from picky compilers. Some of these actually indicated problems, such as unreachable code. (gdevpdfx.h, gdevbj10.c, gdevcdj.c, gdevpdfp.c, gdevstc.c) Adds a JPEG-writing driver. Currently this only produces RGB output and only has a QFactor parameter, but eventually it could take all the other parameters of the DCTEncode filter. (devs.mak, int.mak, lib.mak, gdevjpeg.c) Refactors the PDF and PostScript output drivers so that both of them understand all the relevant documented PDF distiller parameters. (The PostScript driver currently disregards nearly all of them.) (gdevpdfx.h, gdevpsdf.h, gdevvec.h, gdevpdf*.c, gdevps.c, gdevpsdf.c, gdevpx.c) Platforms --------- Fixes bugs: - The MetroWerks C compiler gave an inexplicable error on a particular initialization. (gdevmem.h, gdevmem.c) Interpreter ----------- Fixes bugs: - The insideness testing operators sometimes reported hits incorrectly. (zupath.c) - Mixed-type arithmetic used floats rather than doubles when converting integers, possibly leading to loss of precision. (zarith.c, zrelbit.c) - composefont was defined in a private dictionary, not in systemdict. (gs_cmap.ps) - composefont didn't work, for several different reasons. (gs_cmap.ps) - After a Type 1 font called an OtherSubr, an invalid memory access usually occurred, because of an incorrect attempt to free a data structure. (zchar1.c) - 2 .setlanguagelevel gave an error if globaldict hadn't been defined yet. (zmisc2.c) Cleans up some warnings from picky compilers. Some of these actually indicated problems, such as unreachable code, or failure to check for (implausible) out-of-range data. (idict.c, idparam.c, igc.c, iinit.c, imain.c, iscan.c, zbseq.c, zchar1.c, zdps1.c) Adjusts clients for a change in the internal character cache structure and the introduction of the font next-glyph procedure. (zfont.c, zfont0.c) Refactors the Level 1 / Level 2 interpreter split slightly so that composite fonts don't require all of Level 2. (int.mak, gs_dps1.ps, gs_dps2.ps) Adds FMapType 9 (CMap-encoded) composite font support. (int.mak, gs_cmap.ps, ifont.h, zfcmap.c, zfont.c, zfont0.c) Interpreter (PDF) ----------------- Adds recognition of /Identity values for BG, UCR, and TR functions in ExtGState resources. (General function values still aren't recognized.) (pdf_draw.ps) Centralizes the handling of inherited attributes. (pdf_draw.ps, pdf_main.ps) Starts to add support for Type 0 fonts. (pdf_font.ps, pdf_main.ps) Streams ------- Cleans up some warnings from picky compilers. Some of these actually indicated problems, such as unreachable code. (shc.h, scfd.c, sfilter2.c, siscale.c, stream.c) Library ------- Fixes bugs: - Some picky compilers disliked certain conditional expressions. (gxclread.c) - Some picky compilers couldn't handle an extraneous semicolon. (gdevvec.h) - A cast from byte ** to const byte ** was missing. (gdevvec.c) - Resizing the levels array of a halftone order when banding could cause invalid memory accesses. (bug introduced in 4.60) (gxclread.c) - One picky compiler didn't allow taking the address of an extern undefined structure. (lib.mak, gxclread.c) - When rendering Type 1 fonts, character overshoot was usually suppressed when it shouldn't have been, often producing "squashed" characters. (gxhint1.c) - On systems where sizeof(long) > sizeof(int), coordinate values of more than 22 bits were passed through the band list incorrectly, producing incorrect output. (gxclread.c) Cleans up some warnings from picky compilers. Some of these actually indicated problems, such as unreachable code or (hypothetical) loss of precision. (gsdevice.c, gshsb.c, gsht.c, gsstate.c, gstype1.c, gxclimag.c, gxclpath.c, gxclread.c, gxpdash.c) Makes using font hints conditional, for debugging. (gxhint1.c) Adds library-level support for FMapType 9 (CMap-encoded) composite fonts. There is still no support for rearranged fonts. (gsccode.h, gsfcmap.h, gsstruct.h, gxfcache.h, gxfcmap.h, gxfont.h, gxfont0.h, gschar.c, gschar0.c, gsfcmap.c, gsfont.c, gsfont0.c) Splits band list control and utilities from rectangle-oriented commands, because a file was getting too big. (gxclist.c, gxclrect.c) Moves the temporary file names for command lists from the printer device structure to the command list structure; moves opening and closing the temporary files from gdev_prn_alloc/free to clist_open/close. (gdevprn.h, gxclist.h, gdevprn.c, gxclist.c, gxclread.c) Changes the command list storage implementation interface to pass the file name to the clist_rewind and clist_fseek functions, for the benefit of OSs that require closing and reopening a file to switch between reading and writing. This is a NON-BACKWARD-COMPATIBLE change in a non-public interface. (gxclio.h, gxclmem.h, gxclfile.c, gxclist.c, gxclmem.c) Changes the get_outline procedure in Type 42 fonts to return the length of the outline data as well as the pointer. This is a NON-BACKWARD-COMPATIBLE change in a semi-public interface. (gxfont42.h, gstype42.c) Version 4.60(limited) (3/2/97) ===================== This fileset moves color rendering up from the graphics state to the imager state so that color rendering can happen after banding. It also shifts image rendering to the rendering pass of banding for many common cases (often referred to inaccurately as "high-level image" capability). The changes involved are substantial and in some respects subtle, so unfortunately it is quite possible that some new bugs have been introduced. This fileset also includes improvements to the new PCL XL driver (pxlmono/color), and introduces an experimental PostScript driver (pswrite). Documentation ------------- Fixes bugs: - The argument list of colorimage was incorrect. (zcolor1.c) - false .charboxpath incorrectly claimed to create the correct path even when the CTM was not well-behaved. (language.txt) - The discussion of the "main program" files was out of date. (make.txt) Updates the OS/2 EMX documentation. (make.txt) Modifies the Aladdin Ghostscript Free Public License slightly so it may be applied to other software packages. (PUBLIC) Updates inaccurate build documentation for several Unix platforms. (make.txt, ansihead.mak, cc-head.mak, gcc-head.mak, libpng.mak) Notes a problem with the MIPSpro 7.1 compiler. (make.txt) Procedures ---------- Fixes bugs: - Most makefiles didn't include version.mak. (msc.mak, msvcwint.mak, os2.mak, tctail.mak, wctail.mak) - There was an incorrect dependency for the Windows printer device. (devs.mak) Moves the PDF writer to devs.mak. (devs.mak, int.mak) Updates the main VMS script to be structured like version.mak. (vms.mak) Drivers ------- Factors out the stream-writing procedures from the PDF writer, so they can be shared with the new PostScript writer. (gdevpdfs.h => gdevpstr.h, gdevpdfx.h, gdevpsdf.h, gdevpdf.c, gdevpdfi.c, gdevpdfs.c => gdevpstr.c, gdevpdft.c, gdevpsdf.c) Adds a PostScript writer (pswrite), similar to the PDF and PCL XL drivers. Currently this handles fill/stroke graphics and Level 1 images; everything else (including text) is turned into bitmaps. (devs.mak, gdevps.c) Changes the names of the PCL XL drivers from hpxmono/color to pxlmono/color. (devs.mak, gdevpx.c) Updates the "vector" device support interface. THIS IS STILL SUBJECT TO CHANGE WITHOUT NOTICE. (gdevvec.h, gdevpx.c, gdevvec.c) Makes the vgalib driver a page device. This seems bizarre, but it's necessary for setpagedevice to work with it. (gdevvglb.c) Updates some drivers for the new color mapping interfaces. (gdevpx.c) Updates the user-contributed Canon LBP-8II and LIPS III driver. (gdevlbp8.c) Platforms --------- Fixes bugs: - The workaround for Ultrix's incorrect implementation of sh -e still didn't work. (unixtail.mak) - The definition of offset_of didn't work on the Mac. (stdpre.h) Updates the OS/2 EMX linker command per input from a user. (os2.mak) Fonts ----- Adds .pss (apparently used by Adobe for Multiple Master font instances) to the list of extensions skipped by the GS_FONTPATH directory scanner. (gs_fonts.ps) Interpreter ----------- Fixes bugs: - Programs that rebind null, true, and/or false could cause all kinds of problems. We've only fixed a couple of the places that might be affected (findfont, quit), by wrapping an explicit "systemdict begin/end" around the code; fixing this completely would probably require wrapping this implicitly around almost every pseudo-operator, which would be too expensive. (gs_fonts.ps, gs_lev2.ps) - In a Level 2 system, grestoreall stopped one level too early. (zdevice2.c) - setpagedevice didn't restore the stack properly if it got an error. (gs_setpd.ps) Changes the GC pointer enumeration interface to reduce the number of 'discarding const' warnings. See under Library below. (igc.c) Updates the interpreter for the change in the imager / graphics state split. (zpcolor.c) Makes the stack-restoring behavior of pseudo-operators non-optional. (interp.c) Interpreter (PDF) ----------------- Fixes bugs: - PDFDocEncoding and WinAnsiEncoding incorrectly had `minus' at position 45 rather than `hyphen'. (gs_pdf_e.ps, gs_wan_e.ps) Streams ------- Fixes bugs: - A header file wasn't protected against double inclusion. (stream.h) - any_abs was redefined. (spngp.c) - The CCITTFaxDecode filter didn't fully initialize the "previous line" for 2-D decoding, so if the very first line of data was 2-D, an out-of-bounds memory access could occur. (scfd.c) Library ------- Fixes bugs: - gs_image_next could read too much data, causing errors at the interpreter level. (gsimage.c) - The bitmaps stored in the Pattern cache were usually freed, leaving dangling pointers. (gsdcolor.h, gxpcache.h, gxpcolor.h, gsstate.c, gxpcmap.c) - There was still one assignment to a const structure, and there were some unnecessary const-discarding casts. (gxclread.c) - If a character in a Type 3 font was defined by executing 'show' type commands, charpath did the wrong thing (didn't pick up the paths created by the inner show). Similarly, if it uses 'stroke', true charpath did the wrong thing (appended the path rather than the strokepath path). (gxchar.h, gschar.c, gspaint.c) - A header file wasn't protected against double inclusion. (gserror.h) - The new fast implementation of rectfill didn't handle rectangles with negative width/height. (bug introduced in 4.32) (gsdps1.c) - Reading banded high-level images calculated the image height incorrectly, (usually) causing a rangecheck. (gxclread.c) - When reading band data, a memory fault could occur if the halftone cache hadn't been allocated yet. (gxht.c) - The imager state data for high-level images wasn't written soon enough. (gxclimag.c) - High-level images computed bounding boxes incorrectly, so they could write some garbage data in the band list, and could also fail to write some information. (gsmatrix.h, gxmatrix.h, gxclimag.c) - High-level images wrote the raster value incorrectly in the band list. (gxclimag.c) - Images with non-zero initial source X and non-portrait orientation were displaced on the page. (In practice, this only applied to some banded high-level images.) (gximage.c) - The bounding box device didn't forward output_page calls, causing pages to be dropped or overprinted. (gdevbbox.c) - The band renderer considered all non-zero return codes as errors, rather than only negative codes. (gxclread.c) - An unnecessary extern hadn't been removed. (gxclimag.c) - Some macros didn't parenthesize uses of their arguments, causing syntax errors. (gsrefct.h) - The screen phase and color_info weren't set correctly when rendering bands. (gsstate.h, gsht.c, gxclread.c) - A header file didn't declare all the opaque types it used. (gsdevice.h) - Indexed color spaces didn't work with banded images. (They still don't -- the check for writing the color space, and the code for reading the table or map, are incomplete.) (gxclist.h, gxclpath.h, gxclimag.c, gxclpath.c, gxclread.c) In preparation for implementing post-banding halftoning: - Moves color rendering information, including alpha value, from graphics state to imager state; also moves the allocator pointer. This is quite a subtle change, and may have a significant bug tail. (gxdcolor.h, gxht.h, gxistate.h, gzstate.h, gschar.c, gsdps1.c, gspaint.c, gsstate.c, gxclread.c) - Changes all the relevant color space and color mapping procedures so they take a const gs_imager_state * (and, in some cases, a [const] gx_device *) instead of a const gs_state *. This is a non-backward-compatible change, but it only affects internal interfaces. (gsdcolor.h, gxcmap.h, gxcspace.h, gxdcconv.h, gxdcolor.h, gxdither.h, gxpcolor.h, gzht.h, gschar.c, gscie.c, gscolor.c, gscolor1.c, gscolor2.c, gscsepr.c, gsdevice.c, gsimage.c, gspcolor.c, gxcht.c, gxcmap.c, gxdcconv.c, gxdcolor.c, gxht.c, gximage.c, gximage[2345].c, gxpcmap.c) - Changes the color and color space reference count adjustment procedures similarly, to take a gs_memory_t * instead of a gs_state_t *. (gxcspace.h, gscie.c, gscolor.c, gscolor2.c, gscsepr.c, gspcolor.c) - Changes the gs_halftone in the graphics state from being part of the gs_state_contents to being an independent reference-counted object. This too may have a significant bug tail. (gxht.h, gxistate.h, gsht.c, gsstate.c) - Changes the image processing code so it no longer assumes that the gs_imager_state is actually a gs_state. (gximage.h, gximage.c, gximage2.c, gximage3.c, gximage4.c, gximage5.c) - Adds a unique ID value to device halftones, so that it's possible to detect (non-)changes quickly. (gxdht.h, gsht.c) Finishes the code for writing and reading color rendering information in the band list. This involves changes to several band list opcodes. (gsht.h, gsht1.h, gxcldev.h, gxclist.h, gxclpath.h, gxdht.h, gzht.h, gsht.c, gsht1.c, gxclbits.c, gxclimag.c, gxclist.c, gxclread.c) Changes the garbage collector pointer enumeration procedure interface slightly to reduce the number of 'discarding const' warnings. THIS IS A NON-BACKWARD-COMPATIBLE CHANGE for anyone who didn't use the ENUM_PTRS_BEGIN[_PROC] macro to start a pointer enumeration procedure (which should be no one). (gsstruct.h, gsmemory.c) Corrects a few more needlessly const-discarding casts. (gxfcache.h, gxccache.c) Checks for file reading errors when rasterizing bands. (gxclread.c) Version 4.51(limited) (2/9/97) ===================== This version contains a more reasonable high-level PCL XL driver. The VMS build script is working again, we think. Procedures ---------- Fixes bugs: - The gsdll_h macro wasn't defined all the places it was needed. (devs.mak, os2.mak) Drivers ------- Continues to develop the "vector" driver infrastructure and the PCL XL driver. EVERYTHING IN THESE FILES IS SUBJECT TO CHANGE WITHOUT NOTICE. (gdevvec.h, gdevvec.c) Brings the PCL XL driver up to usable quality for graphics. Most fill/stroke graphics, and portrait-orientation bitmap images up to 8 bits per pixel, are converted directly to their PCL XL equivalents. Text is still treated as bitmaps. Both gray-scale and color output are now supported. (devs.mak, gdevpx.c) Platforms --------- Fixes bugs: - When using gsos2.exe with gsdll2.dll, reducing the size of the page bitmap caused a limitcheck error with the message Failed to decommit memory in pm_alloc_bitmap, rc = 87 (gdevpm.c) - The scripts that construct gconfig_.h failed on Ultrix, because Ultrix's implementation of sh -e is incorrect. (unixtail.mak, ugcclib.mak) - Some systems that have sys/times.h don't define CLK_TCK, making a compilation fail. (time_.h) Interpreter ----------- Fixes bugs: - An omitted semicolon wasn't detected by gcc. (idict.c) Removes a source of unnecessary duplication by getting the revision number and date from version.mak. (gs.mak, int.mak, version.mak, gscdef.c) Streams ------- Fixes bugs: - The minimum buffer sizes for the RunLengthDecode filter hadn't been changed to reflect the algorithm improvement made in release 4.38. (srld.c) Changes the RunLengthEncode filter so it can make progress with only a 2-byte output buffer. (srlx.h, srle.c) Library ------- Fixes bugs: - Because of a typo, the slow general algorithm was always used for monochrome images. (Performance bug only, but a serious one.) (gximage2.c) - Dots (zero-length lines with round caps and zero dot length) caused an infinite loop. (bug introduced in 4.40) (gxstroke.c) - Some image data unpacking procedures were always required, but weren't always included. (bug introduced in 4.50) (gximage.c, gximage0.c, gximage3.c) - Images with 8 bits per pixel and non-identity Decode produced garbage. (bug introduced later than 4.03) (gximage0.c) - Some necessary casts and omitted punctuation weren't detected by gcc. (gxpath.h, gsargs.c, gsstate.c, gxclread.c, gxpdash.c) - The band list became confused if a band had no commands at all. (gxclread.c) - If a path included a closepath followed by a moveto to the same point, it could be written incorrectly in the band list. (bug probably introduced in 3.60) (gxclpath.c) Changes some internal computations for arcs from float to double for greater accuracy. (gspath1.c) Version 4.50(limited) (1/31/97) ===================== This release contains an experimental high-level PCL XL driver, a little more support for CID/CMap fonts, and the usual bug fixes. NOTE: the VMS build script is known to be out of sync with the makefiles again; we still don't see any alternative to constant struggles with this problem. Documentation ------------- Corrects the -h message, which gave an incorrect file name for the bug report form. (imainarg.c) Removes documentation for 16-bit MS-DOS platforms with the Borland compiler. (fonts.txt, make.txt, new-user.txt, use.txt) Procedures ---------- Fixes bugs: - The Watcom library makefile didn't define the directory information for libpng and zlib. (watclib.mak) Moves the selection of band list implementation (file- vs. RAM-based) and the compression filter for RAM-based band lists up to the top-level makefiles. Again, this is a NON-BACKWARD-COMPATIBLE procedure change. (lib.mak, *.mak) Moves the selection of version number for all platforms (except VMS, as usual) to a separate file. This will reduce the number of files that need editing when the version number changes. (ansihead.mak, cc-head.mak, gcc-head.mak, ugcclib.mak, version.mak, tar_cat) Drivers ------- Fixes bugs: - An error in the (unsupported) SGI RGB driver could cause crashes or incorrect output. (gdevsgi.c) Starts to create a framework for structured output ("vector") drivers (PDF, PostScript, PCL XL, etc.) (gdevbbox.h, gdevvec.h, gsdcolor.h, gsstruct.h, gxdevice.h, gdevvec.c) Moves default page size parameters to a more accessible header. (gdevprn.h, gxdevice.h, gdevx.c) Adds a driver that produces properly structured PCL XL output. This is highly experimental and not ready for use yet. (gdevpx.c) Platforms --------- Removes support for 16-bit MS-DOS platforms with the Borland compiler. For the moment, 16-bit MS Windows is still supported. (bc.mak, bcflags.mak, bclib.mak, tc.mak) Interpreter ----------- Fixes bugs: - File-based CIDFonts (with delayed, incremental loading of character outlines) didn't work. (gs_cidfn.ps) Finishes implementing the definition of CMap resources, except for rearranged fonts. (gs_cidfn.ps, gs_cmap.ps) Adds a little more CMap support code. (zcid.c) Removes the .setcurrentfile operator, since it doesn't solve the problem it was intended to address. (zcontrol.c) Adapts the interpreter to use the new argument processing code. (imainarg.c) Streams ------- Fixes bugs: - The CCITTFaxDecode filter could access as much as 3 bytes beyond the end of a buffer, causing an invalid memory access. (This is essentially the same bug that was fixed for the CCITTFaxEncode filter in 4.38.) (scfd.c) Library ------- Fixes bugs: - Painting an image without having set up any halftone could cause a crash. (gxht.c) - In a very obscure case, an occasional scan line of landscape images could get corrupted. (gximage0.c) - Because of a rounding error, patterns could fail to be painted in certain cases. (gxpcolor.h, gspcolor.c, gxpcmap.c) - Very large line widths or miter limits could cause the computation of stroke expansion to overflow. (gxpaint.h, gdevbbox.c, gxclpath.c, gxstroke.c) - The phase could be incorrect for simple patterns. (gspcolor.c) - The default implementation of copy_mono used an incorrect RasterOp. (gdevdflt.c) - The default implementation of fill_masked didn't increment the row pointer, causing characters to appear as solid rectangular blocks. (gxdcolor.c) Eliminates an unnecessary gsave and grestore from rectfill and rectstroke if the path was null. (gsdps1.c) Adds a limit on the amount of space that the default (C heap) allocator will allocate, and a record of the maximum amount allocated, to help testing embedded products. (gsmemory.c) Changes the band list algorithm for deciding how many replicas of a halftone tile to store in the tile cache. The previous algorithm was too liberal, which could cause the cache to overflow and many unnecessary bitmaps to be written in the band list. (gxclbits.c) Writes clipping with a rectangle more compactly in the band list. (gxfixed.h, gxclpath.c) Adds new band list commands for representing 90- and 180-degree arcs compactly. (gxclpath.h, gxclpath.c, gxclread.c) Repackages handling of general monochrome images, color images, and 12-bit and interpolated images, so that they are included optionally rather than in all configurations. (int.mak, lib.mak, gximage.h, gximage.c, gximage[12345].c) Changes the structure definition for devices to include no-op pointer enumeration and relocation, so they can have subclasses. (gxdevice.h) Adds a library facility for processing command line arguments with @-expansion. (gsargs.h, gsargs.c) Version 4.41(private) (1/21/97) ===================== This release adds a PCL XL output driver, and a few performance improvements. Procedures ---------- Fixes bugs: - The zlib library used an incorrect header file when compiling. (zlib.mak) Changes the names of the preprocessor symbols indicating the presence of system header files to be consistent with the ones used by GNU configure. (dvx-tail.mak, ugcclib.mak, unixtail.mak, vms.mak; dirent_.h, time_.h; gp_unix.c) Changes the method for choosing the compression filter for RAM-based band lists. This is a NON-BACKWARD-COMPATIBLE change in the makefile. (lib.mak) Drivers ------- Adds black-and-white and 8-bit gray PCL XL (PCL 6) drivers for the LaserJet 5 and 6 family. This driver is extremely simple and just emits bitmaps; future drivers will use more PCL XL high-level constructs. (gdevlj56.c) Fonts ----- Updates the free font distribution to add the URW Grotesk and Antiqua fonts. Interpreter ----------- Fixes bugs: - gs -h and -v returned with a non-zero exit code on all platforms. (This is necessary under Windows, to keep the message visible on the screen, but nowhere else.) (imainarg.c) - Resizing a dictionary could exceed dict_max_size, causing memory corruption. (dstack.h, idict.h, idict.c, zdict.c) Adds .setlinecap and .setlinejoin that can use the extended range of line cap/join values, and redefines setlinecap and setlinejoin in terms of them. (gs_init.ps, zgstate.c) Streams ------- Fixes bugs: - The CCITTFaxDecode filter with EncodedByteAlign = true skipped to a byte boundary before checking for an EOL. This may be wrong if EndOfLine = true; we aren't at all sure what should happen if EndOfLine = false. (scfd.c) Adds a "no wrapper" option to the zlib streams, to optionally suppress the time-consuming integrity checksum computation. (szlibx.h, szlibc.c, szlibd.c, szlibe.c) Library ------- Fixes bugs: - Dashed lines with zero-length drawn segments (dots) that fell exactly on a corner produced inappropriate output. (pcl/test19.pxs) (gxpdash.c, gxstroke.c) - Dashed lines didn't set the segment notes properly. (gxpdash.c) - The bounding box device didn't free a bookkeeping structure at the end of processing an image. (gdevbbox.c) - Curve points could get computed incorrectly when using emulated floating point. (gxpcopy.c) - The 1-element cache for curve_x_at_y didn't work if Y was decreasing. (gxfixed.h, gxpcopy.c) Distinguishes between error and informational exits. (stdpre.h) Defines and checks maximum values for line cap and join parameters. (gslparam.h, gsline.c) Removes the 'not last' segment note, since it is not used for anything. (gxpath.h, gspath1.c, gxpath2.c, gxpcopy.c, gxpflat.c, gxstroke.c) Changes the memory freeing algorithm for RAM-based band lists back to the original one, since the "improved" one had more bugs than it was worth chasing. (gxclmem.c) Speeds up the A * B / C algorithm a little. (gsmisc.c) Speeds up curve_x_at_y by recognizing more cases that don't require the slow A * B / C algorithm. (gxpcopy.c) Changes the path filling code so it use