History of Ghostscript versions 9.xx

## Table of contents

> - Version 9.04 (2011-08-05)
> - Version 9.02 (2011-03-30)
> - Version 9.01 (2011-02-07)
> - Version 9.00 (2010-09-14)

This document is a record of changes in Ghostscript releases numbered 9.xx. For earlier versions, see the the history documents:

> History of Ghostscript versions 8.n
> History of Ghostscript versions 7.n
> History of Ghostscript versions 6.n
> History of Ghostscript versions 5.n
> History of Ghostscript versions 4.n
> History of Ghostscript versions 3.n
> History of Ghostscript versions 2.n
> History of Ghostscript versions 1.n

For other information, see the Ghostscript overview.

## Version 9.04 (2011-08-05)

This is the fourth full release in the stable 9.x series.

This release includes fixes and solutions for a number of serious problems from the earlier 9.x releases and so we strongly encourage those using earlier 9.x releases to upgrade to this new version, to reap the benefits of those fixes.

In addition, those still using Ghostscript 8.71 and earlier should begin migration to 9.x soon since many improvements, features and fixes from the 9.x versions are impractical to back-port to these legacy versions.

Highlights in this release include:

- Transition source base to git source control - not a big deal for most users, but an important change for those develop Ghostscript and GhostPDL.
- This release introduces flexibility for controlling color based upon the graphic object type. In particular, it is now possible to specify unique output ICC profiles and rendering intents for vector graphic, image and tex portions of a document. It is also possible to override source color specifications and use specified ICC profiles and rendering intents for RGB and CMYK vector graphics, images and text portions of a document. Finally, DeviceGray source colors can now easily be specified to map either to K only or composite CMYK when the output device supports CMYK colorants.
- New tiffscaled8 and tiffscaled24 devices. Add new tiffscaled8 and tiffscaled24 devices, copied and modified from tiffscaled. These output greyscale and 24bit rgb instead of tiffscaleds mono output. MinFeatureSize is ignored for these devices as it's meaningless for contone output. Downscaling is also now supported for png16m and pnggray, and a new pngmonod device has been implemented which uses grayscale rendering internally and then downscales/min_feature_sizes/error diffuses to monochrome.
- The PDF interpreter will now try continue interpreting a PDF after encountering an error in a stream. The previous bevahior can be reinstated by passing -dPDFSTOPONERROR to Ghostscript.
- Re-enable x11alpha as the default device on Unix systems, now that compatibility problems between anti-aliased output and transparency are resolved.
- Update libjpeg to version 8c.
- Experimental Text output/extraction device

  The txtwrite device has undergone some development, and now has genuine functionality. It accepts any input format which GhostPDL supports, and uses a combination of methods to try and determine the Unicode values for any text contained in the document.

  The code descends a hierarchy of methods in this process, starting with the most reliable and only falling back to less reliable methods when better methods fail. The current hierarchy is as follows:

  1. ToUnicode CMaps (PostScript or PDF) or GlyphNamesToUnicode tables (PostScript).
  2. Glyph names of the form 'unixxxx'.
  3. Glyph names defined in the Adobe Glyph List document.
  4. Input character code.

  Method 1 is highly reliable, method 4 is a best guess and not terribly reliable, though it will work for many files. It is probably most reliable for PostScript and PCL files.

  The device currently has one parameter 'TextFormat' which controls whether the output is Unicode text reflecting the layout of the original document (-dTextFormat=0) or a format intended for use by developers which includes the Unicode text and some formatting information, such as the size and position of the text, and the font in use (-dTextFormat=1).

  Note that his device does not do OCR (Optical Character Recognition) it is not capable of finding 'text' which is part of an image. However it will recover the 'invisible' text from PDF documents which have been scanned and OCR'ed by Acrobat for searching. Such text has a render mode of 3.

  This is the first release of this code and is very much an alpha release, we expect problems.

  In particular the TextFormat=0 output is likely to be incorrect, and will only work with top-to-bottom left-to-right text. It will probably also be confused by landscape documents printed on portrait media.

  TextFormat=1 should be more reliable, but there may be cases where text is dropped from the output. Text in PostScript documents using charpath is not yet supported for example.

  We do encourage feedback on the state of this device, and would be interested in hearing what kind of output would be useful for developers using TextFormat=1. For now, however, please do not raise bugs through Bugzilla, instead please send feedback to the gs-devel mailing list.

- Experimental Unicode/UTF8 Support on Windows

  This release introduces some experimental build-time optional support for UNICODE pathnames on Windows. Essentially this works by following the model that Linux (and MacOS) have followed for years.

  If this code is enabled, then the way ghostscript handles command lines, registry settings, file accesses and other api calls with top bit set characters in (i.e. codes >= 128) will change. The net benefit of this change is that ghostscript will now be able to cope with accessing files with unicode characters (i.e. codes >= 256) in their pathnames.

  This behaviour is all completely transparent to users, with the exception of those calling the gsapi functions with strings including 'extended ascii' (i.e. characters with codes >= 128 and <= 255). These characters include accented latin characters, such as u + umlaut, a + grave etc. The changes required for code that is affected by this are relatively minor, but as this is a change to the current API, we are announcing it in advance, and inviting comments.

  As of the 9.04 release, the code is disabled. For those who wish to experiment you will need to build Ghostscript from source, and either pass USEUNICODE=1 when you invoke nmake or edit psi/msvc.mak to remove the /DWINDOWS_NO_UNICODE option from CFLAGS.

  WARNING: Our intention, subject to feedback, is to enable this by default in near-future releases (hopefully, the next major release). If you make use of the affected APIs you should be prepared for the change to occur - be aware, however, that the current code is experimental and, depending on the feedback we get, maybe subject to change.

  NOTE: this whole change refers to file paths, command line parameters and so on - it does not imply that we have unilaterally extended Postscript to understand UNICODE.

  More details:

  To give an example, suppose we have a file 'EXAMPLE' we'd like to invoke ghostscript on, where 'EXAMPLE' is actually a string that contains some characters with codes >= 128.

  On Linux (or MacOS X), when ghostscript is called from a shell, e.g.

  gs EXAMPLE

  the command is UTF8 encoded; this means that characters with codes < 128 are left unchanged, and characters >= 128 are encoded into multiple bytes. This encoded string is then passed to the standard 'main' entrypoint in the gs executable.

  Ghostscript proceeds internally without any special handling of these multibyte characters at all. When it comes to access files it therefore passes out the UTF8 encoded strings to the standard OS file handling routines. These routines are designed to take pathnames in UTF8 format, and thus the files are accessed as normal.

  If the Ghostscript executable outputs these (or other) strings to its stdout, the shell again converts the output from UTF8 back to unicode in order to display it.

  The net effect is that the caller can seamlessly pass in unicode filenames, has his fileaccesses work out and gets unicode output without the core of ghostscript ever having to worry about it.

  The code change discussed here endeavours to make Windows follow the same pattern as closely as possible.

  When Windows executables are invoked, they can either be called through an 'ascii' entrypoint (main), or through a unicode ('wide') entrypoint (wmain). The difference is invisible to the caller, except that unicode executables can accept characters >= 256 in their invocations.

  The new code changes ghostscript from being an ascii executable to being a unicode one. The Windows specific outer layer takes the unicode command string and UTF8 encodes it before passing it to the ghostscript core.

  Similarly, the Windows specific filing system calls are updated to accept utf8 encoded strings from the core, and to convert them to unicode before operating on them.

  The Windows gui app (gswin32.exe, NOT gswin32c.exe) is also updated to convert stdin/stdout between unicode and utf8 as appropriate, allowing unicode strings to be copied/pasted to/from other apps.

  All of this should be completely transparent to the user, and no code changes should be required. The one area where changes may be required are where ghostscript is invoked through the gsapi functions.

  Currently, on Linux (and MacOS X) any strings sent over the gsapi are assumed to be utf8 encoded (and thus can represent any Unicode character). On Windows, they are assumed simply to be in extended ASCII (and can therefore represent any character < 256 in the current codepage). With the proposed change, Windows will move to be in step with Linux. No differences will be caused to anyone who only uses chars <= 128, but those people using character codes between 128 and 256 (or indeed wanting to use higher codes) will need to utf8 encode the strings before calling gsapi functions.

  Such encoding/decoding is a very simple process, and code for both directions can be found in psi/dwmain.c, psi/dwmainc.c and psi/dwtext.c.

  Again, we welcome feedback on this feature, in this case problems or suggestions about the implementation can be submitted via Bugzilla but for detailed discussion about the approach for which we opted, it would be more beneficial discuss it (preferably) on our IRC channel #ghostscript on freenode.net, or on the gs-devel mailing list.

For a list of open issues, or to report problems, please visit bugs.ghostscript.com.

### Incompatible changes

Deprecated file "gs/base/errors.h" removed, psi/ierrors.h should be used instead.

The eXternal Fonts (XFonts) functionality, marked as deprecated in 9.02 has now been fully removed.

No other recorded incompatible changes.

2011-08-04 14:40:12 +0100
Chris Liddell
e173d22697b5489624783a805311337d053e53fe

> Bug 691586: again, ensure that GS knows when cups changes the media size
> Move the fix for Bug 692393 to immediately after the call to
> gdev_prn_put_params() - before the call to gx_device_set_media_size()
> as that can also change the device's width and height settings.
> With this fix, I have also removed the temporary workaround put in place
> with commits 16c410fc29575abffb60926949433653186915fd and
> bd33c8f57b1a6e3d365ef0efd8dd7571a14310fa.
> No cluster differences.
> gs/cups/gdevcups.c

2011-08-04 10:05:13 +0100
Chris Liddell
6fc00870dd9d1e17709b532f425578b229a61544

> Revise Luratech section of build docs.......
> ... to reflect that we now look for the Luratech code under
> gs/luratech/ldf_jb2 and gs/luratech/lwf_jp2 instead of gs/lwf_jp2 and
> gs/ldf_jb2
> CLUSTER_UNTESTED
> gs/doc/Make.htm

2011-08-03 17:44:55 +0100
Chris Liddell
a26ed9754118ab5a6027346f2e4d0c41077dfc1c

> Bug 692393: ensure GS realises cups changed the page dimensions.
> After having done media selection from the cups media list, we need to
> ensure that GS realises that page dimensions in the device structure
> may have changed since the raster memory was last created - this ensures
> that GS will reallocate the memory, and correctly setup the
> line_ptrs array for the new page size.
> No cluster differences.
> gs/cups/gdevcups.c

2011-08-01 16:28:52 +0200
Till Kamppeter
e6f2128efc15316a586813ff314bc037b1d36856

> Fixes on the gstoraster CUPS filter
> 1. gstoraster crashes when run outside CUPS (bug #692384)
> 2. All error messages issued by gstoraster are without newline (bug #692385)
> Thanks to Tim Waugh from Red Hat for the patches.
> gs/cups/colord.c
> gs/cups/gstoraster.c

2011-07-30 17:48:14 +0100
Robin Watts
9fcefea7e6e770efed7a237c3fc0e8649fba342a

> Fix bug 692349: UNICODE build of gs not available with VS2003 or VS6.
> Apply a slightly tweaked version of alexchers patch to define wmemset
> when it's not provided by the headers.
> No cluster differences expected.
> gs/psi/dwtext.c
> gs/psi/msvc.mak

2011-08-01 12:18:25 +0100
Robin Watts
690a9464f7a7ff524519587b95ba8505b0f823d9

> Tweak to tkampeters previous commit to workaround bug 691586.
> Avoid warnings given on some platforms about "unreachable code" by
> using an informative #define.
> No cluster differences expected.
> gs/cups/gdevcups.c

2011-08-01 13:05:09 +0200
Till Kamppeter
b4c67383d9e71b468b5384b7a63095864d3a9ae7

> CUPS Raster output device: Ignore RIP_MAX_CACHE environment variable
> Ghostscript is (at least currently) not able to work with hard-limited
> space parameters. It crashes with a segmentation fault on many input
> files then. Leaving the setting of these parameters fully automatic
> Ghostscript works just fine. As in most distributions (Currently all
> except Debian, Ubuntu, and their derivatives) CUPS imposes a hard
> limit via the RIP_MAX_CACHE environment variable, the only way to
> assure reliable working of Ghostscript is to ignore the parameter,
> leaving the space parameters in automatic mode. For CUPS this should
> be no regression, as print queues with other Ghostscript drivers (like
> pxlcolor, ljet4, ...) worked without hard limits all the time and no
> one complained.
> To ignore this RIP_MAX_CACHE we simply add a "return" right at the
> beginning of this function. It will be removed when a real fix gets
> into place.
> See http://bugs.ghostscript.com/show_bug.cgi?id=691586
> gs/cups/gdevcups.c

2011-07-30 11:56:53 +0200
Till Kamppeter
83abb6ca67829a1273ed4fdfc894a6af44c5c5ad

> Added "-dNOINTERPOLATE" to the Ghostscript command lines of the CUPS filters
> This makes rendering significantly faster and the output of normal
> files comming as print jobs from applications does not show any
> visible difference.
> gs/cups/gstoraster.c
> gs/cups/pstopxl.in

2011-07-29 14:01:58 -0700
Michael Vrhel
83c7aba31ab324d015a39ec23ab9eb861c23d787

> Another fix for cups RGBW. This gets the color set up properly for RGB.
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/cups/gdevcups.c

2011-07-29 12:18:04 -0700
Michael Vrhel
db4b6b6d07c2b4a97bd0add6e3169874ec2d1af7

> Fix for cups RGBW color space so that transparency works properly.
> gs/cups/gdevcups.c

2011-07-29 08:14:04 -0700
Michael Vrhel
d1d700d4d052e3a9a061e5d6c61e3a4a30e5135d

> A test for fixing RGBW in gdevcups.c
> gs/cups/gdevcups.c

2011-07-29 10:12:26 +0100
Chris Liddell
43f6fff7185f868104f6ba4afc102af4f9fe8f3f

> Update the docs, version numbers, and dates for 9.04 rc1
> gs/base/gscdef.c
> gs/base/version.mak
> gs/doc/API.htm
> gs/doc/C-style.htm
> gs/doc/Commprod.htm
> gs/doc/DLL.htm
> gs/doc/Deprecated.htm
> gs/doc/Details8.htm
> gs/doc/Details9.htm
> gs/doc/Develop.htm
> gs/doc/Devices.htm
> gs/doc/Drivers.htm
> gs/doc/Fonts.htm
> gs/doc/Helpers.htm
> gs/doc/History1.htm
> gs/doc/History2.htm
> gs/doc/History3.htm
> gs/doc/History4.htm
> gs/doc/History5.htm
> gs/doc/History6.htm
> gs/doc/History7.htm
> gs/doc/History8.htm
> gs/doc/History9.htm
> gs/doc/Install.htm
> gs/doc/Issues.htm
> gs/doc/Language.htm
> gs/doc/Lib.htm
> gs/doc/Make.htm
> gs/doc/News.htm
> gs/doc/Projects.htm
> gs/doc/Ps-style.htm
> gs/doc/Ps2epsi.htm
> gs/doc/Ps2pdf.htm
> gs/doc/Ps2ps2.htm
> gs/doc/Psfiles.htm
> gs/doc/Readme.htm
> gs/doc/Release.htm
> gs/doc/Source.htm
> gs/doc/Unix-lpr.htm
> gs/doc/Use.htm
> gs/doc/Xfonts.htm
> gs/doc/gs-vms.hlp
> gs/man/dvipdf.1
> gs/man/font2c.1
> gs/man/gs.1
> gs/man/gslp.1
> gs/man/gsnd.1
> gs/man/pdf2dsc.1
> gs/man/pdf2ps.1
> gs/man/pdfopt.1
> gs/man/pf2afm.1
> gs/man/pfbtopfa.1
> gs/man/printafm.1
> gs/man/ps2ascii.1
> gs/man/ps2epsi.1
> gs/man/ps2pdf.1
> gs/man/ps2pdfwr.1
> gs/man/ps2ps.1
> gs/man/wftopfa.1
> pl/pl.mak

2011-07-29 09:40:34 +0100
Chris Liddell
d248b98753421668ca683d074709a9422267b9ba

> Change the expected directory for luratech.
> For the build system to automatically include the luratech JPX and JBIG2
> code, we previously checked for the existence of lwf_jp2 and ldf_jb2
> directories under the Ghostscript source dir. This changes it to check
> for /luratech/lwf_jp2 and /luratech/ldf_jb2 instead.
> CLUSTER_UNTESTED
> gs/base/configure.ac
> gs/psi/msvc.mak

2011-07-28 22:28:37 -0600
Henry Stiles
ea57ffb4eb8e3c2bd9ae80547cd7ad011631e212

> Restore X11 device to the default unix device.
> In setting up autoconf to detect X11 (9b7298f) the X11 devices were
> not put back at the beginning of the device list and so were no longer
> the default device.
> main/pcl6_gcc.mak

2011-07-28 17:16:35 +0100
Robin Watts
c1cfbc2655dce2a1c3cc73caf0af54a51db61bfe

> Changes to lcms v1 to spot failed allocations.
> lcms v1 sometimes forgets to deal with failed allocations. Patch at
> least some of these problems.
> Driven by bug 692352. Sufficient to make it run to completion now.
> gs/lcms/src/cmsgmt.c
> gs/lcms/src/cmslut.c
> gs/lcms/src/cmsps2.c
> gs/lcms/src/cmssamp.c
> gs/lcms/src/cmsvirt.c
> gs/lcms/src/cmswtpnt.c
> gs/lcms/src/cmsxform.c

2011-07-28 17:08:58 +0100
Robin Watts
0f6629c581fb56ca33fb7ec57d757ea96f236887

> Check for failure to allocate icclink in shading.
> When calling shade_init_fill_state, check for a return code to indicate
> failure. Trigger this case when an attempt to allocate an icclink
> fails.
> No cluster differences expected.
> gs/base/gxshade.c
> gs/base/gxshade.h
> gs/base/gxshade1.c
> gs/base/gxshade4.c

2011-07-28 15:07:14 +0100
Robin Watts
f31edd69e23236fbae4b986883df8e0f43f15af6

> Fix typo in rc_decrement description string.
> Simple typo fix. CLUSTER_UNTESTED.
> gs/base/gxclrast.c

### Changelog

2011-07-28 10:21:31 +0100
Chris Liddell
2364173a3ea2ac1e58b53a68e775d98157035b03

> Disable the Windows UNICODE/UTF8 code for now.
> CLUSTER_UNTESTED
> gs/psi/msvc.mak

2011-07-27 22:12:41 -0700
Michael Vrhel
cf056ad9ccf42b8c31e6c84ed0ee6d30e0fb7455

> Update of Use.htm to include new color control options.
> gs/doc/Use.htm

2011-07-27 16:25:19 +0100
Robin Watts
12faa934ff19d95f08fc9db33d7a6b288ba67ee2

> Fix Bug 692368; SEGV with clist transparency pattern in clist rendering.
> The invocation/file given in the bug uses banded rendering (clist).
> While drawing a band, it uses a pattern with transparency, that is
> itself rendered by a clist (using the new pattern clist code).
> A fill rectangle is being done that tries to call the pattern clist
> tiling code without the fill_trans_buffer having been setup, and
> this causes a SEGV.
> The reason for this appears to be that the device used by the
> banded isn't a pdf14 device - instead it's a clipper device wrapping
> the pdf14 device. The clipper device does not call gx_forward_fill_path,
> but instead calls gx_default_fill_path, meaning that the special
> pdf14 handling done to setup the fill_trans_buffer isn't done.
> Making the commit call onwards to gx_forward_fill_path doesn't solve the
> problem either, as that results in no actual clipping being done.
> The fix, therefore appears to be to implement a clipping version of
> fill_path.
> No cluster differences expected.
> gs/base/gdevp14.c
> gs/base/gxclip.c
> gs/base/gxclip.h

2011-07-27 22:14:10 +0200
Till Kamppeter
3639f0da216f0472658b37ee96726b80abdc7d56

> Fixed the problem that PCL-XL output files got huge after introduction of color management
> The pxlmono and pxlcolor output devices produce PCL XL (PCL 6). With
> the introduction of color management, the size of the output files
> often got 10 times larger as before and so PCL XL jobs often did not
> print as they exhausted the memory of the printer.
> According to the contributor of this patch, Shailesh Mistry, the PDFs
> leading to that problem have a DeviceRGB image which is translated
> into an ICC profile and passed up but the pcl/pxl can not handle
> it. This patch looks for incoming ICC profiles and resolves it into
> the base colour which can be handled at this level.
> The patch returns the size of the PCL XL output files to the old
> values from Ghostscript 8.x.
> Fixes bug 692329.
> gs/base/gdevpx.c

2011-07-27 20:37:20 +0200
Till Kamppeter
d6e940a92e47f0110438cf2f9bd6ebffa2f9e211

> Fixes on the "pstopxl" CUPS filter
> 1. Use POSIX and not Perl regular expressions with sed. This makes the
> script working on a wider scope of systems (Bug #692328).
> 2. Switch the Ghostscript output device "pxlmono" if the "pxlcolor" is
> used but "Gray" chosen as "ColorModel" setting. Monochrome
> "BitsPerPixel" settings do not work with "pxlcolor".
> gs/cups/pstopxl.in

2011-07-27 10:41:14 -0700
Michael Vrhel
fead331855bddda90406d220e84fe5a284b2daa9

> Fix for Windows Display Device showing gray only
> This returns the use of DeviceGrayToK=true/false to set
> if the user wants DeviceGray to map to K only for a
> CMYK device. Also, this fixes a problem where high
> level gray scale images were always going to composite
> an not K only. Bug 692204.
> gs/base/gsdparam.c
> gs/base/gsicc_manage.c
> gs/base/gxclrast.c
> gs/psi/zdevice.c

2011-07-27 09:14:04 -0700
Michael Vrhel
dc18980047abde427405973a6c9452959fb8e93c

> Replacement of default gray ICC profile with Artifex generated versions
> I reviewed the bmpcmp results and the relatively few diffs are minor.
> gs/iccprofiles/default_gray.icc
> gs/iccprofiles/sgray.icc

2011-07-26 12:16:04 -0700
Michael Vrhel
cdbc852a9220c324b9094c448e29ce3548a5b8c3

> Change of Default CMYK profile to one created by us to emulate V2 SWOP with reduced footprint.
> Reviewed differences from this commit. With bmpcmp -16 the diffs amounted to halftone differences
> with nothing visible.
> gs/iccprofiles/default_cmyk.icc

2011-07-25 22:42:34 -0700
Michael Vrhel
dca23749d5222c591927e78fd4f79a8d649ecd7c

> Change of default_rgb.icc to our own sRGB ICC profile.
> This results in very minor color diffs in a few files. I reviewed the diffs and everything is fine.
> gs/iccprofiles/default_rgb.icc
> gs/iccprofiles/srgb.icc

2011-07-25 19:03:42 -0600
Henry Stiles
ba7054ed86bdb26c1c19aad0d5a4313e8b96c4df

> Fixes 692360 - the x11cmyk get bits procedure would only work properly
> with a client supplied data pointer.
> gs/base/gdevxalt.c

2011-07-25 12:34:59 -0600
Henry Stiles
2ed6a01d99cc63f9953be1e29b9d05643e9ada73

> Fixes 689502 - remove obsolete scripts.
> CLUSTER_UNTESTED
> gs/lib/bdftops
> gs/lib/bdftops.bat
> gs/lib/bdftops.cmd
> gs/lib/bdftops.ps
> gs/lib/fixmswrd.pl
> gs/lib/pv.sh

2011-07-26 13:15:44 +0100
Chris Liddell
7ec7b1463507ba578e123dc15f4219472a09930f

> Bug 691956: make installing the cups tools optional
> Introduces a --with-cups-install option to configure. To include the
> cups tools and associated data files in Ghostscript's "install" target
> you will have to specify "--with-cups-install" at configure time.
> No cluster differences.
> gs/base/Makefile.in
> gs/base/configure.ac
> gs/cups/cups.mak

2011-07-25 16:25:20 +0100
Chris Liddell
f62ce181e3a68d7f652d9e903c70bd1a67423782

> Bug 692367: NULL out pointers for three tables in the context
> Add "finalize" methods for gs_name_table, io_device_table and
> font_dir tables which ensure that the pointers in the lib
> context are set to NULL when the memory is released.
> No cluster differences.
> gs/base/gsfont.c
> gs/base/gsiodev.c
> gs/base/gsstruct.h
> gs/base/gxfcache.h
> gs/psi/iname.c

2011-07-25 16:19:19 +0100
Ken Sharp
7dee8c1639a55e5b6ae4051afcfed9caa82e48b5

> Remove the last traces of OPDFReadProcsetPath
> The old Procsets had to be moved from PostScript resources to C files, in order that
> ps2write work with non-PostScript interpreters (XPS, PCL). As a result the
> old OPDFReadProcsetPath is no longer used and has been removed.
> gs/Resource/Init/gs_pdfwr.ps
> gs/base/gdevpdf.c
> gs/base/gdevpdfb.h
> gs/base/gdevpdfp.c
> gs/base/gdevpdfu.c
> gs/base/gdevpdfx.h

2011-07-25 09:05:05 +0100
Ken Sharp
1562de0f7dc0615ed1397f42a7ad0eb23f4dcf22

> Add some minimal documentation regarding the txtwrite device to devices.htm.
> gs/doc/Devices.htm

2011-07-25 08:44:42 +0100
Ken Sharp
4e6a7b5c6fc0c202ba0d962cd19578162e1ce726

> Add functionality to the textwrite device.
> The existing textwrite device was a null device which emitted nothing. This
> version actually extracts text from input documents. It uses ToUnicode CMaps,
> GlyphNames2Unicode tables and glyph names in an attempt to map incoming text into
> Unicode (UTF-16) values.
> It currently has one switch 'TextFormat' which has two possible values, 0 or 1.
> -dTextFormat=0 outputs a 'layout' representation of the original text. This
> will attempt to produce text output which is similar in appearance to the original.
> -dTextFormat=1 simply emits all the text as it is encountered, along with information
> about the text state. It outputs the Font name, point size, rendering mode and
> writing mode (WMode) as well as the start and ending co-ordinates of the text on the page
> and the Unicode string representing the text. This is intended for those who
> would like to manipulate the text into other formats.
> The Adobe Glyph Names list is now embedded in the executable twice, in two
> incompatible forms. A future enhanvement will be to only embed the list once.
> gs/base/gdevagl.h
> gs/base/gdevtxtw.c

2011-07-24 16:03:31 -0400
Alex Cherepanov
128b9fce26e82ef38cedded8fc35a4c99ef55bee

> Fix a trivial Valgrind warning.
> Reorder a logical expression to prevent the access to an unitialized
> value. The only effect of the patch is some noise reduction in the
> Valgrind log.
> gs/base/gdevp14.c

2011-07-24 16:38:35 +0000
Robin Watts
961a9a98ecff7a30503ee0bd5d2973263114def7

> Backout commit 7f5d3d7; 8 bit display device palette change.
> Reverting earlier commit made to attempt to fix bug 692235. While
> this change does give the display device a much nicer palette
> to work with in 8 bits, it will break with all code that currently
> exists to interface to the display device, such as gsview, as the
> palette is not exported with the data.
> Due to the looming release and the questions remaining to be answered
> on the bug, we pull the change for now.
> gs/base/gdevdsp.c
> gs/psi/dpmain.c
> gs/psi/dwimg.c
> gs/psi/dxmain.c
> pl/dwimg.c

2011-07-20 23:28:19 -0700
Ray Johnston
68bf978d614ec610333abd6a51b88fc3e05689f7

> Fix compiler warnings.
> Check return code from "get_profile" dev_proc in gs_nulldevice.c and get rid of the
> implicit declaration for gdev_mem_set_planar.
> gs/base/gsdevice.c
> gs/base/gxpcmap.c

2011-07-22 10:36:36 -0700
Michael Vrhel
d3302b1176683dc9e4cb5cb8ed9f42bffa0888ee

> Fix for bug 692204. This forces DeviceGray to K only for CMYK devices.
> This is performed by default now. To return to a composite type mapping
> that makes use of the true DeviceProfile, use the option -dDeviceGrayToK=false.
> This commit includes a fix to rename the device member variable
> icc_array to icc_struct to reduce confusion in reading the code.
> gs/Resource/Init/gs_lev2.ps
> gs/base/gdevp14.c
> gs/base/gdevpdfk.c
> gs/base/gdevtfnx.c
> gs/base/gdevtsep.c
> gs/base/gdevvec.c
> gs/base/gdevxini.c
> gs/base/gscms.h
> gs/base/gsdevice.c
> gs/base/gsdparam.c
> gs/base/gsequivc.c
> gs/base/gsicc.c
> gs/base/gsicc_cache.c
> gs/base/gsicc_cache.h
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/base/gslib.c
> gs/base/gxclthrd.c
> gs/base/gxcmap.c
> gs/base/gxdevcli.h
> gs/base/gximag3x.c
> gs/iccprofiles/gray_to_k.icc

2011-07-21 20:42:33 +0100
Robin Watts
7f5d3d7b298bbabc13a484e38e749d572d817bc8

> Fix bug 692235: Rendering to 8bit colors shows bad colors.
> The display device uses an RGBK space for 8 bit rendering. Currently
> this corresponds to a palette of 96 colors; 2 bits each for R,G,B,
> supplemented by 16 greys.
> This review alters it to use a 6x6x6 RGB cube, supplemented by 40 grey
> levels.
> In fact, this is slightly wasteful as we repeat the black and white
> representations as color and as greyscale, but it's a huge improvement
> on what we had before.
> No cluster differences expected as we don't test the display device.
> gs/base/gdevdsp.c
> gs/psi/dpmain.c
> gs/psi/dwimg.c
> gs/psi/dxmain.c
> pl/dwimg.c

2011-07-22 23:27:18 -0400
Alex Cherepanov
4c2a089d0378402f374cb9004ac0faa3ff82d3c3

> Bug 692361, trap errors produced by --token--
> Thap errors thrown by --token--, adjust the stack, and rethrow.
> Rev. 4c6809dfa1c539d757c30f572922e05cd1436698 made the errors
> that occur during reading of the contents steam recoverable,
> but missed the case, when the error happens in the --token--.
> gs/Resource/Init/pdf_base.ps

2011-07-21 21:50:59 -0700
Michael Vrhel
9d37cdcdbcb3b3bb23d0eab06d1683735303d5e1

> Fix for bug 692364 in which we were were not handing the initial DeviceGray profiles correctly
> When the graphic state is started, the color spaces are first set to DeviceGray. In certain documents
> this is then the color space that is used for drawing and in fact the erase page will initially
> occur with this color space. If I have a destination ICC profile like CIELAB, then this is
> a problem since we will end up mapping DeviceGray to RGB with the old procedures giving us a
> CIELAB value of [255 255 255] which is a very bright red. With this fix we in the
> DeviceGray mapping we fix the colorspace to be ICC based and pass then handle the procedure with
> the ICC mapping. A minor fix was also needed in the pdf14device put_image where we use a
> DeviceGray color space, which happens to have an ICC profile. We now correctly create the
> ICC profile. Note that this will cause significant diffs in the cluster push as DeviceGray
> colors that were mapped to pure K before for a CMYK device (due to the fact that we were not
> installing the proper color space) will now map to composite black. This
> issue will be addressed shortly by another commit where we by default map all DeviceGray
> colors to K only in the CMYK devices.
> gs/base/gdevp14.c
> gs/base/gxcmap.c
> gs/base/lib.mak

2011-07-21 16:40:21 +0100
Robin Watts
554ce829a9eb59da437541e2efbc646d9edc2805

> Fix Bug 692355; gswin32 has garbage chars in window title bars.
> Existing ghostscript includes windows.h without defining UNICODE, but
> calls the unicode versions of functions where appropriate. Here we
> move to defining UNICODE before including windows.h, but we keep to
> the practise of calling A or W specific variants as much as possible.
> Partly this is because of time before the release, but mostly a fear
> that this might lead to a Pandoras box of changes.
> gs/psi/dwtext.c
> gs/psi/dwtext.h

2011-07-19 20:02:50 +0100
Robin Watts
c9a8f8b3b0327bb62fc79cfe93d6bd79f997a2b6

> pdf14 'dirty' rect optimisations.
> Rename 'bbox' to 'dirty' - makes the purpose of the field much clearer.
> Export dirty rectangle pointer in gx_pattern_trans_t structure.
> Remove automatic expansion of 'dirty' rects to full rect boundary.
> Ensure tiling code sets dirty rectangle as expected.
> Remove debugging printfs.
> Testing shows 491 differences. 16 or so real changes (all neutral or
> progressions), but most of them in the cups device. Manual testing
> shows no changes at all - no idea what's going on there.
> gs/base/gdevp14.c
> gs/base/gdevp14.h
> gs/base/gxblend1.c
> gs/base/gxp1fill.c
> gs/base/gxpcolor.h

2011-07-20 15:24:58 -0400
Alex Cherepanov
4a1159926a8094f19bcacddf0503b5a06edd9184

> Bug 692362, tolerate stream object without stream.
> Check for the case, where the modified stream dictionary is missing
> /File attribute (probably, because the original stream object was
> missing the stream body) and substitute an empty stream.
> gs/Resource/Init/pdf_base.ps

2011-07-20 20:03:02 +0000
Robin Watts
145a853a0f9ed9d58b76413a5c77aa026500af93

> Add finalize function to pattern clist device.
> This may need to do more than it does, but the immediate drive for
> this is to correctly drop the reference count on the target device
> on closedown. This is sufficient to stop the SEGV seen on the final
> garbage collection done on stars.pdf.
> The garbage collector was finding an unfreed pdf14 device, and stepping
> into the target onto to find that the target had been destroyed already.
> No cluster differences shown in testing.
> gs/base/gxpcmap.c

2011-07-20 10:29:47 -0700
Ray Johnston
10cd4a92cd64252635c3c7f9a189f857bc59bf97

> Fix for missing ICCProfilesDir during some device init. Move profiledir to gs_lib_ctx.
> The business of trying to keep the profile directory in the device and keeping it in
> sync with the value used in the icc_manager led to problems when some devices were
> initialized. This change moves the profiledir (and its len) into the gs_lib_ctx_t
> (pseudo- global) which is accessible by the icc_manager and devices via the
> gs_memory_t pointer.
> Remove the no longer needed functions to set and sync the profile in the device and
> replace gsicc_set_icc_directory with gs_lib_ctx_set_icc_directory.
> Thanks to Michael Vrhel for adding to this patch to make it build on linux and
> build the other parsers.
> gs/base/gscms.h
> gs/base/gsdevice.c
> gs/base/gsdparam.c
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/base/gslibctx.c
> gs/base/gslibctx.h
> gs/base/lib.mak
> gs/base/msvclib.mak
> gs/psi/int.mak
> gs/psi/zdevice.c
> gs/psi/zusparam.c
> pcl/pctop.c
> psi/psitop.c
> pxl/pxpthr.c
> pxl/pxtop.c
> svg/svgtop.c
> xps/xpstop.c

2011-07-20 11:43:40 -0700
Michael Vrhel
b07cfe2e168d004ed1a4365e985d90c88fa61725

> Fix for Bug 692074. Make sure the ht thresholding code writes out device white and device black.
> This should also fix a polarity issue that we had with the plank device.
> gs/base/gxht_thresh.c

2011-07-20 18:24:31 +0000
Robin Watts
9a91acb5411b457383e59ed4bbefeb0247862228

> Reverse the polarity of cups 'gray' colorspaces.
> Cups colspace 0 is the inverse of colspace 3.
> gs/toolbin/bmpcmp.c

2011-07-20 14:48:55 +0100
Chris Liddell
467b64692f0b74244fd0bc0748309d05b2f09294

> Remove the eXternal Fonts functionality.
> The XFonts feature was of very limited utility these days, and
> was deprecated a couple of releases ago. This commit removes
> the unloved and rather bit-rotten feature completely.
> This does not really "fix" Bug 692357, but renders it pointless.
> No cluster differences.
> gs/base/devs.mak
> gs/base/gdevmac.c
> gs/base/gdevmac.h
> gs/base/gdevmacxf.c
> gs/base/gdevx.c
> gs/base/gdevx.h
> gs/base/gdevxini.c
> gs/base/gdevxres.c
> gs/base/gdevxxf.c
> gs/base/gxccache.c
> gs/base/gxccman.c
> gs/base/gxchar.c
> gs/base/gxchar.h
> gs/base/gxfcache.h
> gs/base/macos-mcp.mak
> gs/doc/Xfonts.htm

2011-07-20 14:36:10 +0100
Chris Liddell
5ca50b1770ae583490954f1546b17bad421fbc9f

> Bug 692359: Retain WMode from CMaps embedded in PDFs
> The read_CMap procedure skips everything in the embedded
> CMap file stream except the actual character ranges (as does
> Acrobat), thus we lose the WMode setting (if present) from
> the stream. Nor were we propagating the value from the PDF
> CMap stream dict.
> This revision ensures we propagate the WMode value the PDF
> CMap stream dictionary (if present), which matches Acrobat's
> behaviour.
> No cluster differences.
> gs/Resource/Init/pdf_font.ps

2011-07-19 21:57:35 -0600
Henry Stiles
a46123967e919fdd557411d2b0d177e6be2722e3

> Fixes 692234 premature erasepage.
> The page was being erased before the postscript interpreter was
> properly initialized. In particular for the crash in this bug a
> default halftone has to be installed before erasepage.
> psi/psitop.c

2011-07-19 17:12:23 +0100
Robin Watts
a6ec8697315e39dabd565a1ca114d3b42f006324

> Small Memento tweaks.
> When moving a block to the tail of the freelist, ensure that its next pointer
> is set to NULL.
> When doing 'setParanoia' ensure that any existing countdown is reset.
> No cluster changes.
> gs/base/memento.c

2011-07-19 10:05:14 +0100
Chris Liddell
923d5ca0673442a9e8d4921812ac4fbd75433140

> Fix a warning I introduced, and a couple of others
> gs/base/gdevpng.c

2011-07-18 10:46:05 -0700
Michael Vrhel
9ed6be44e85f03f4a22064b698b3c0ea8c818b53

> Fix so that rendering intent makes it properly through clist along with expanded RI capabilities
> This fixes bug 692139, also adds support for the ability to override the
> internal rendering intent(s) with an externally set rendering intent. Also,
> it is possible to specify specific rendering intents for RGB graphics, images
> and text as well as CMYK graphic images and text. Progressions occur in the
> regression test suite. In particular the file icc_rendering_intent.pdf at 300dpi
> now renders correctly.
> gs/base/gscms.h
> gs/base/gsicc_cache.c
> gs/base/gsicc_manage.c
> gs/base/gxclimag.c
> gs/base/gxclpath.c
> gs/base/gxclrast.c
> gs/base/lib.mak

2011-07-18 17:07:08 +0100
Chris Liddell
385f519d34703ba88d107649fb59452617590194

> Remove the PNG_INTERNAL define from the PNG device.
> PNG_INTERNAL being defined exposes libpng's internal APIs which we should
> certainly not be using, and do not appear to. I'm guess that this was
> done to work around an issue in an earlier libpng version, and is no
> longer relevant.
> No cluster differences
> gs/base/gdevpng.c

2011-07-17 09:45:35 -0700
Ray Johnston
44a2fd0bb1e2dd12e9ba475da0bdbb93081325d5

> Fix crashes and assertion on 32-bit Windows builds. Bugs 692347, 692348.
> Thanks to SaGS for these fixes. Assertion and crash were found during final checkout of
> the 9.03 release, as well as on the master branch. Partly these problems came from the
> UTF-8 changes.
> VS treats the "char" type as signed by default. When extended characters are promoted
> to ints, the values are negative in the range -128 to -1. These values (except -1
> which conflicts with EOF) are not valid for the "is*()" family of functions.
> For GS_ registry entries that are not set, the utf8 version of 'gp_getenv_registry()'
> incorrectly returned an 'insufficient buffer space' verdict and let the 'needed
> buffer size' to 0 (cbData = 0 after 'RegQueryValueExW()'). The call to fetch the
> value was then made also with a 0-sized buffer, did the same thing, and left the
> buffer for the value undefined. There were also other problems, for example
> non-REG_SZ entries were ignored only when the value was actually requested (not
> during the request for the buffer size) and the function was doing 'free(wp)' with
> wp == NULL in a few cases.
> No cluster differences.
> CLUSTER_UNTESTED
> gs/base/gp_wgetv.c
> gs/base/gsargs.c

2011-07-18 12:52:55 +0100
Robin Watts
80f11f7c17fd2d58eded8e8721a6932a0384f5f5

> Fix plane calculations in planar pattern management.
> The calculation of the depth/shift to use depth in planar pattern management
> was wrong due to a silly typo.
> This doesn't make it work, just solves an obvious problem.
> No cluster differences expected.
> gs/base/gxpcmap.c

2011-07-16 15:22:03 +0000
Robin Watts
ed9ba4062880109265bf286cb2e3fdc7527fe841

> Pattern accumulator changes to support planar output devices.
> When creating the memory buffer for a painttype 1 pattern tile, check
> to see if the underlying device is planar - if it is, then create the
> memory buffer as planar too.
> The code to tile out the planar pattern buffers still needs fixing, but
> this allows halftoning jobs to run to completion at least.
> No cluster differences shown.
> gs/base/gxpcmap.c

2011-07-16 12:58:35 +0000
Robin Watts
a438a9f7d363f76013e1c614fc0818fe081875ad

> Fix pattern cache tile accounting.
> When putting tiles into the pattern cache, we estimate the size we need
> up front (or in the clist case, calculate it exactly). We then clear
> that many bytes in the pattern cache, and add the new tile using that
> estimated size. When we come to evict we recalculate the exact size and
> evict based on that.
> This causes a mismatch whereby the pattern cache thinks it has the wrong
> number of bits cached. When this is an underestimation, we just end up
> using more memory than we'd like. When it overestimates however, we can
> get into an infinite loop trying to evict things.
> The fix is to record the number of bits we've accounted for in every
> tile and thus always count the same coming out as we did coming in.
> If we really want to account for the correct values rather than the
> estimate we can do that, but we must adjust pcache->bits_cache and
> ctile->used appropriately.
> No bug associated with this, but it was triggered by a forthcoming
> commit to make the pattern accumulator use planar buffers for planar
> devices.
> No differences in cluster testing.
> gs/base/gsptype1.c
> gs/base/gxpcmap.c
> gs/base/gxpcolor.h

2011-07-15 20:03:50 -0600
Henry Stiles
9b7298f794a4d9bdf5f2bc9dd8401cbfa458a018

> Autoconf changes for X11 and threads.
> config.mak.in
> configure.ac
> main/pcl6_gcc.mak

2011-07-15 18:46:37 +0100
Chris Liddell
10fa3cdcae73e526d6279e5a70522d821d08469d

> Set the defines needed to build luratech on WIN64
> CLUSTER_UNTESTED
> gs/psi/msvc.mak

2011-07-15 10:42:30 -0700
Michael Vrhel
bfc0768f53bf96acfbbcf184fe83a09d85b4f5b4

> Addition of an destination ICC profile for demonstrating the setting of rendering intent
> gs/toolbin/color/src_color/cmyk_des_renderintent.icc

2011-07-15 15:12:02 +0100
Chris Liddell
2472633cba1418733d079dea15f624c3649bf6dc

> Fix the shared library builds.
> The corrected dependencies in lib.mak broke the shared lib bulids,
> so the rules needed split up to cover the shared and non-shared
> cases.
> gs/base/configure.ac
> gs/base/gs.mak
> gs/base/lib.mak

2011-07-15 14:35:04 +0100
Chris Liddell
b0277439b2de03cfcae9282f02021bec72aaa91a

> Resolve a build issue with 64 Windows.
> CLUSTER_UNTESTED
> gs/base/msvctail.mak

2011-07-15 12:51:00 +0100
Robin Watts
9be999c3d781ff92b5498d8cc89b0d2c1fcdc69e

> Fix crashes due to uninitialised reschedule and time_slice procs.
> Freek Kempe reports problems when ghostscript is built with just
> psl3 and pdf FEATURE_DEVS, due to the context entries for
> time_slice_proc and reschedule_proc being uninitialised.
> We take on a (very slightly modified) version of his suggested fix;
> they are now initialised to a dummy procedure, and can be overridden
> by zcontext_init later if required.
> No cluster differences seen.
> gs/psi/icontext.c

2011-07-15 08:57:45 +0100
Chris Liddell
7d56fdb732eda354c1c0ccd53e62306caf4f600f

> Small formatting change for the html changelog
> gs/toolbin/gitlog2changelog.py

2011-07-15 08:51:36 +0100
Chris Liddell
fc670d3f5dd1e066a838165acec54b2859b1ed78

> Increment the Ghostscript version number to 9.04.
> gs/Resource/Init/gs_init.ps
> gs/base/version.mak

2011-07-15 07:01:39 +0100
Chris Liddell
7e299cc60681c53113f513f95a940ef0349219f9

> Fix an error in the Win64 building of genarch.exe
> It was using AUXDIR instead of AUX for the path.
> CLUSTER_UNTESTED
> gs/base/msvctail.mak

2011-07-14 14:19:37 -0700
Michael Vrhel
f98534e2952fb2c2bfa5a3604233d69c76713a41

> Addition of support to override the document specified rendering intent(s)
> Also this includes fixes so that if the source color profiles are specified
> the rendering intents associated with those will be used.
> gs/Resource/Init/gs_lev2.ps
> gs/base/gscms.h
> gs/base/gsicc_cache.c
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/psi/zusparam.c

2011-07-14 16:07:03 +0100
Chris Liddell
fb5f2b5f317f9df6a1258ba53c17da84292cafee

> Small fix to changes for Bug 688528.
> The fix for Bug 688528 contained a conditional error checking for
> a return value of greater than zero when in fact it should be
> greater than or equal to zero.
> No cluster differences.
> gs/base/gdevvec.c

2011-07-14 10:08:02 +0100
Chris Liddell
7694aad7c0d84ea8c95acff6ca9b189016c280d1

> Revise error/warning on PDF missing CIDFont.
> Now that GS will attempt to continue interpreting a PDF after an error
> in a given content stream, revise the message we emit when he hit a
> missing CIDFont in a PDF condition to reflect that. If PDFSTOPONERROR
> keep the previous message.
> Also, add a "flush" at the end of each message to ensure they don't get
> mangled by later, high priority messages.
> No cluster differences.
> gs/Resource/Init/pdf_font.ps

2011-07-14 10:03:35 +0100
Chris Liddell
62ce501c977ae1a6cb5c38dac545616111c51ed2

> Compile out the Unicode path/parameter code with VC7 and before
> Visual C 7 (Visual Studio 2003) and earlier do not have all the "wide char"
> related library functions needed for the Windows Unicode path and
> parameter handling, causing a link error.
> So when building with VC7 and earlier, leave out the Unicode stuff.
> No cluster differences.
> CLUSTER_UNTESTED
> gs/psi/msvc.mak

2011-07-13 14:34:32 -0700
Michael Vrhel
ed92ea1c85f7ee188d0ab242e72ca2f220367ed8

> Addition of ICC profile for demonstrating use of rendering intent on source color
> gs/toolbin/color/src_color/cmyk_src_renderintent.icc

2011-07-13 10:08:29 -0700
Ray Johnston
880f2b2b80ce8f1506b2ec9d81ba73737dfaa4af

> Add flush after -sGenericResourceDir warning message.
> I often have seen this message get garbled by having other messages on stderr "jump in"
> so that the message on stdout gets split up. The "flush" prevents that.
> gs/Resource/Init/gs_res.ps

2011-07-12 19:26:21 -0700
Michael Vrhel
46db3bca63834ae3b3881022fbc9300de8690d10

> Fix so that when the null device is installed it is initialized with the proper icc directory
> This fixes issues on windows when going to the bbox device but there are still issues on linux.
> gs/base/gsdevice.c

2011-07-12 14:07:22 -0700
Michael Vrhel
6b237cb27450a0d09ad982bd45e2e15829ae974f

> Addition of code to support source color management dependent upon the graphic type
> Also fix of the example file that demonstrates this feature.
> gs/base/gscms.h
> gs/base/gsicc_cache.c
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/base/gxclimag.c
> gs/examples/text_graph_image_cmyk_rgb.pdf

2011-07-12 20:11:46 +0100
Chris Liddell
a06634a969ea9b0db2d0840d8641847247056145

> Update autoconf build and the Windows build to use Luratech
> if the directories are found where we expect.
> Include options on each build to disable using Luratech explicitly.
> Document the change in Make.htm
> No cluster differences.
> gs/base/Makefile.in
> gs/base/configure.ac
> gs/doc/Make.htm
> gs/psi/msvc.mak

2011-07-12 19:15:33 +0100
Chris Liddell
15d3904a43b2dddda12ed842000d9668c2aff8d7

> Add a simple git log to html changelog script.
> CLUSTER_UNTESTED
> gs/toolbin/gitlog2changelog.py

2011-07-12 17:28:45 +0100
Chris Liddell
89de03454ba02713403571cb1cdd1312ae818f81

> Bug 692338: address performance regression in FAPI
> Previously I changed FAPI to only dispose of the outline or
> bitmap part of the Freetype glyph, intead of the entire
> internal glyph object, so as avoid freeing, re-allocating
> and initialising a glyph object for every glyph. That seemed
> to cause a memory leak, so I reverted it.
> This commit does it properly, addresing the memory leak by
> correctly freeing the memory that Freetype returns to us
> *containing* the pointer to the bitmap or outline, as well
> as the bitmap/outline data.
> This is measurably quicker than the previous method.
> No cluster differences expected.
> gs/psi/fapi_ft.c

2011-07-12 06:50:46 -0700
Michael Vrhel
b6a234634d7987890851cb4375e0520ba8dd0750

> Addition of code to support override of internal ICC profiles
> gs/Resource/Init/gs_lev2.ps
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/psi/zicc.c
> gs/psi/zusparam.c

2011-07-11 09:22:20 +0100
Chris Liddell
99cbbdaad585b78dfd32db6dc59c08f9743d8d6a

> Add debugbin to the list of directories to ignore.
> CLUSTER_UNTESTED
> gs/toolbin/localcluster/clusterpush.pl

2011-07-11 09:14:34 +0100
Chris Liddell
ee688b964bee8f9562ce92835b2478f88b0dbe31

> Bug 692327: Support libpng 1.5.x API
> Revise to support the latest libpng API, conditionally compiled based on
> the PNG_LIBPNG_VER_MINOR.
> No cluster differences expected.
> gs/base/gdevpng.c

2011-07-10 13:14:04 -0700
Michael Vrhel
d1a349055450612218848e8d15fb6c1a4cc22f5b

> Addition of pdf example file to demonstrate source color graphic object control
> gs/examples/text_graph_image_cmyk_rgb.pdf

2011-07-10 12:54:02 -0700
Michael Vrhel
2065f62ecb27abd974803207a0be160264944401

> reorganization of files for demonstrating source color control based upon graphic type.
> gs/toolbin/color/icc_creator/effects/cmyk_src_cyan.icc
> gs/toolbin/color/icc_creator/effects/cmyk_src_magenta.icc
> gs/toolbin/color/icc_creator/effects/cmyk_src_yellow.icc
> gs/toolbin/color/icc_creator/effects/rgb_source_blue.icc
> gs/toolbin/color/icc_creator/effects/rgb_source_green.icc
> gs/toolbin/color/icc_creator/effects/rgb_source_red.icc
> gs/toolbin/color/src_color/cmyk_src_cyan.icc
> gs/toolbin/color/src_color/cmyk_src_magenta.icc
> gs/toolbin/color/src_color/cmyk_src_yellow.icc
> gs/toolbin/color/src_color/objsrc_profiles_example.txt
> gs/toolbin/color/src_color/rgb_source_blue.icc
> gs/toolbin/color/src_color/rgb_source_green.icc
> gs/toolbin/color/src_color/rgb_source_red.icc

2011-07-10 12:19:33 -0700
Michael Vrhel
213fd2eb89c8a818c546cb888fde6bb67d481c07

> Addition of special effect ICC CMYK source profiles
> A set of CMYK based profiles for demonstrating the usage of source
> color graphic object type dependent color management
> gs/toolbin/color/icc_creator/effects/cmyk_src_cyan.icc
> gs/toolbin/color/icc_creator/effects/cmyk_src_magenta.icc
> gs/toolbin/color/icc_creator/effects/cmyk_src_yellow.icc

2011-07-10 09:39:21 -0700
Michael Vrhel
f24c2cb3f3e030068e48b9c608ebf87e70679547

> Addition of special effect RGB ICC profiles
> These profiles are for use in demonstrating the use of graphic object
> specific color management on source RGB objects.
> gs/toolbin/color/icc_creator/effects/rgb_source_blue.icc
> gs/toolbin/color/icc_creator/effects/rgb_source_green.icc
> gs/toolbin/color/icc_creator/effects/rgb_source_red.icc

2011-07-09 22:47:53 -0700
Michael Vrhel
048a939c8c5880d1f89f3f61df78e147910cb1d0

> Fix for bug 692333.
> Caused by insufficient testing for change in color run when spot colors
> are present during the DeviceN color rendering. Cluster push shows a
> diff in Bug691425.pdf bmpcmp seemed OK.
> gs/base/gxicolor.c

2011-07-08 14:11:52 -0700
Ray Johnston
ec7d65ce2cccbc97a2b696ceecb2ba7d329eff79

> Fix initialization in gs_nulldevice (PS nulldevice operator) Bug 692334.
> The gs_nulldevice was setting the get_profile proc to gx_forward_get_profile so the
> icc_array was coming from the current device in the graphics state but that did not
> match the color_info num_components and polarity leading to incorrect values returned
> if gscms_transform_color_buffer set the OutputFormat to 1 (for the nulldevice) of a
> link handle, but a subsequent call to gscms_transform_color with the same link handle
> expected more than one component.
> The initialization of the default profile can only be done if the io_device_table has
> been initialized since this function is called during gs_lib_init1 with the table NULL.
> This change fixes 12-07D.ps differences introduced in the 'tagfix' patch, but does NOT
> introduce any changes to gscms_transform_color_buffer to avoid changing the number
> of components or issue a warning as mentioned in the bug.
> EXPECTED_DIFFERENCES:
> 12-07D should revert to the output prior to the tagfix change (06df93f)
> gs/base/gsdevice.c

2011-07-08 16:41:47 -0700
Michael Vrhel
c48d47e85a27149ecbd84512c8ed80e3d3ab498c

> Fix for graphic tag setting during forward procedure.
> CLUSTER_UNTESTED
> gs/base/gdevnfwd.c

2011-07-08 12:52:25 -0700
Michael Vrhel
c72586e85c6c8953cf3a1cbc32b48949c7622bb4

> Rename variables and objects to be denoted as source graphic tags
> With recent commit of changes to object tags as being a graphic type tag
> it made sense to rename the source color object types similarly.
> CLUSTER_UNTESTED
> gs/base/gscms.h
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/psi/zusparam.c

2011-07-08 11:42:37 -0700
Michael Vrhel
4df7c79bc1c4df59818ddbc53b20eb1315e7cb48

> Rename of misnamed file.
> CLUSTER_UNTESTED
> gs/toolbin/color/icc_creator/effects/k_only..txt
> gs/toolbin/color/icc_creator/effects/k_only.txt

2011-06-23 11:55:14 -0700
Ray Johnston
06df93f6babc540b8e29ae7cc1fcaed888142d52

> Rename object_tag to graphics_type_tag and move to the device for MT rendering.
> The memory->gs_lib_ctx->BITTAG hack was inherently NOT safe for use by multiple
> rendering threads. Devices that want to encode the tag info in the gx_color_index
> need the tag, so we have moved this to the device structure. Multiple rendering
> threads each have unique buffer devices, so this allows clist playback to set
> and use the appropriate tag as the bands are played back without thread
> interference.
> Rename the gs_object_tag_type_t to gs_graphics_type_t to make it more unique for
> grep based searching and prevent confusion with other uses of the term 'object'.
> Move the enum to gscms.h with the 'set' functions prototyped in gxdevcli.h.
> Just as for the device's cmm_dev_profile_t information, the tag needs to be
> forwarded by devices in the chain (clipper, compositor) so that these 'helper'
> filtering devices don't interfere with the setting of the tag. The tag value is
> maintained in all devices in the chain so a 'get_graphics_type_tag' dev_proc
> is not needed -- the dev->graphics_type_tag can be access directly.
> Previously, tags were not recorded except for devices that enabled tags.
> Now tags are tracked for all devices for use in selecting an ICC profile
> and a device can signal that it maintains tags by setting GS_DEVICE_ENCODES_TAGS
> for use by compositors that want to know whether or not to maintain a tag
> plane, such as the pdf14 device.
> Also replace the old 'get_object_type' that the anti-aliasing used with the
> single approach for consistency and to cure problems (not identifed) with using
> AA when other devices are interposed in the chain (clipper, compositor).
> EXPECTED_DIFFERENCES:
> Various 12-07D.PS PS LL3 CET files will show color differences on page 3 (GLOBINT)
> as described in Bug692334.
> gs/base/gdevabuf.c
> gs/base/gdevbit.c
> gs/base/gdevddrw.c
> gs/base/gdevdflt.c
> gs/base/gdevimdi.c
> gs/base/gdevmem.c
> gs/base/gdevnfwd.c
> gs/base/gdevp14.c
> gs/base/gdevprn.h
> gs/base/gdevpsd.c
> gs/base/gdevrinkj.c
> gs/base/gdevrops.c
> gs/base/gdevwts.c
> gs/base/gdevxcf.c
> gs/base/gscms.h
> gs/base/gscsepr.c
> gs/base/gsdevice.c
> gs/base/gsdps1.c
> gs/base/gsequivc.c
> gs/base/gsicc.c
> gs/base/gsicc_cache.c
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/base/gsimage.c
> gs/base/gslibctx.c
> gs/base/gslibctx.h
> gs/base/gsnamecl.c
> gs/base/gsncdummy.c
> gs/base/gspaint.c
> gs/base/gstext.c
> gs/base/gstrans.c
> gs/base/gsutil.c
> gs/base/gsutil.h
> gs/base/gxacpath.c
> gs/base/gxblend1.c
> gs/base/gxclip.c
> gs/base/gxclipm.c
> gs/base/gxclist.c
> gs/base/gxclrast.c
> gs/base/gxcmap.c
> gs/base/gxdevcli.h
> gs/base/gxdevice.h
> gs/base/gxi12bit.c
> gs/base/gxicolor.c
> gs/base/gximono.c
> gs/base/gxiscale.c
> gs/base/gxistate.h
> gs/base/gxpcmap.c
> gs/base/gxshade.c
> xps/xpsgradient.c

2011-07-08 14:12:51 +0100
Robin Watts
73c09fa015d1e5a19083001bc343abbb67992c9d

> Fix Bug 692331: SEGV in image interpolation.
> In fixing bug 692225, it seems I broke this.
> In the setup code that decides whether decoding is required or not, I
> was incorrectly choosing to use the 'decode' case, when in fact the
> 'decoding' is done later for CIE colorspaces. As such I should have used
> the no-decode case.
> Fixing this appears to cure the problem.
> gs/base/gxiscale.c

2011-07-08 11:14:08 +0100
Chris Liddell
02a53b643780f40f5d8947272eabb947002c40b3

> Bug 692322: Clarify in ps2pdf manpage that output goes to cwd by default.
> Credit to Jonathan Nieder .
> CLUSTER_UNTESTED
> gs/man/ps2pdf.1

2011-07-07 20:50:35 +0000
Robin Watts
0e0db1ca146d82f6a1b0ae90f7146e7d65ffbba9

> Fix bug 692330: SEGV in clist memfile fseek.
> The icc unserialise profile code ftells, then reads, then fseeks to
> maintain the position of the stream. The fseek was leaving the stream
> in an illegal state (the pointer was exactly at the end of the last
> block at the end of the file). Internally we are supposed to always
> have memory allocated for us to write into, and in this circumstance
> we didn't.
> The fseek code was actually correct, as was the ftell code. The problem
> lay in the fwrite code that left the stream in an illegal state.
> The fix is simply to change the fwrite logic slightly; we are guaranteed
> to have space on entry to the loop, so we just need to ensure we have
> space on exit.
> Cluster testing shows no differences (or none due to this change at least).
> gs/base/gxclmem.c
> gs/base/gxclread.c

2011-07-06 23:12:51 -0600
Henry Stiles
91c925158fd8bb84c0d44dff2ec4888dc4d6168e

> Updates PDL README.txt
> README.txt

2011-07-07 13:47:03 +0100
Chris Liddell
8191a2e349d1f8787b2f4805d770fa8b11f82d18

> Bug 688528-addendum: quell warnings and handle errors.
> gs/base/gdevvec.c
> gs/base/gsdevice.c
> gs/base/gximag3x.c

2011-07-07 10:41:27 +0100
Chris Liddell
dadc4955945d8004785ed13095ea9ea79c0f13a6

> Bug 688528: set ICC profiles for interal uses of bbox device.
> If we create a bbox device internally (i.e. not as an output device)
> we must still ensure that the device has ICC profiles set in it. In
> this case, it simply inherits the profile array from the parent
> device.
> This also meant moving the ICC manager initialization to before the
> device "open" call in gs_setdevice_no_erase() because the device set
> can also open another device (in this case, pswrite's "open" has the
> effect, via the vector device, of setting a bbox device instance, so
> there must be an array of ICC profiles at that stage for bbox to
> inherit.
> No cluster differences expected.
> gs/base/gdevvec.c
> gs/base/gsdevice.c
> gs/base/gslib.c
> gs/base/gximag3x.c

2011-07-06 22:05:43 -0400
Alex Cherepanov
73bfbe4b5f6e7090c2b6aad0183ddc8a186d5788

> Fix Cygwin build.
> Some Cygwin tools use \r\n line endings. Add transliteration of \r
> to the space character to compensate for this lossage.
> gs/base/configure.ac

2011-07-06 17:29:24 -0600
Henry Stiles
7531d50c7b6dec596e142ff555f3cbfc28613abe

> Shailesh Mistry's fix for 692311 - corrupt character rendering.
> In adaptive compression mode the seed row for delta row compression
> was not properly cleared. With this change the code is now compatible
> with HP monochrome printers, previously the Artifex code was
> compatible with HP Color Laserjets. We do not implement a device
> specific switch - for example the new code could be enabled if the
> current mode of emulation was PCL5E (mono PCL) and not PCL5C (color
> PCL) allowing emulation of both product types. However the corrupt
> character output of HP color printers is probably never an intended
> result.
> pcl/rtraster.c

2011-07-05 11:04:27 -0600
Henry Stiles
6e1c268d0ceb3d39e33d242132a917ac27cc2491

> Fix allocator and cleanup.
> Use global allocator in the font directory not the local allocator in
> the graphics state. Move the cache size assignment to the end of the
> procedure after any error can occur and trivial style changes.
> gs/base/gsfont.c

2011-06-29 23:29:44 -0600
Henry Stiles
00dbc00bbbbc5dd7d3ec4fce2ac5ed72a4e13bde

> Implement gs_setcachesize properly.
> The previous implementation simply set the cache size state value but
> didn't attempt to rebuild the cache. The new font cache size is
> provided by size operand of setcacheparams.
> We also limit the size operand to the values discovered used by CPSI, the
> range is device dependent and the CPSI range appears reasonable.
> gs/base/gsfont.c

2011-06-23 12:58:53 -0600
Henry Stiles
ee351ae182d5f5fabe36f0ce9216a4da39c1c831

> Removes obsolete code.
> The is callback used to be used to delete all characters from the
> cache, we don't do that anymore.
> pcl/pcfont.c

2011-06-18 18:03:44 -0600
Henry Stiles
f91aa55a593789c3e342f649e1ebd7f575008e2c

> Fix bug #692246 infinite loop searching the character table.
> Set up the number of characters in the table and the maximum amount of
> memory used by the font cache such that we maintain the invariant that
> we will run out of memory before running out of table entries. Thanks
> to Shailesh Mistry for assistance in analyzing this problem.
> gs/base/gxccman.c

2011-07-06 13:30:23 +0100
Chris Liddell
e5a37634a8e15a945e7f5ea4aca68ab8e1e34d3a

> Bug 692318: Ensure that compiler flags are used for the "aux" files.
> For a normal host build, the build tools (genarch, genconf etc) should be
> built with the same compiler flags as Ghostscript/Ghost*. In this case
> the integer type used for encoded color values was not getting used
> when compiling genarch.
> Also, add a warning when tiffsep does have to skip one or more plates, with
> a pointer to the relevant documentation. Lastly, update the doc to reflect
> that the contone preview output may not be as expected if the job uses
> overprint.
> No cluster differences expected.
> common/ugcc_top.mak
> gs/base/gdevtsep.c
> gs/base/msvccmd.mak
> gs/base/msvctail.mak
> gs/base/unix-aux.mak
> gs/doc/Devices.htm

2011-07-04 23:55:57 -0400
Alex Cherepanov
836ac602259ed7e6dfa2845ce78c5fcb516c72e1

> Bug 692026: Replace vsprintf() with vsnprintf()
> vsnprintf() is a safer function. No new compatibility problams are
> expected because vsnprintf() is already used it in Ghostscript.
> gs/base/gxttfb.c
> gs/base/rinkj/rinkj-byte-stream.c

2011-07-02 13:50:28 -0700
Ray Johnston
02ef306436f521a059356bbe41805499204051fc

> Change to using encode_color instead of map_rgb_color since map_rgb_color are obsolete.
> The encode_color proc replaced this and devices may not have it set to a valid proc.
> Detected under certain circumstances with the tiffsep device using compressed color
> encoding.
> gs/base/gdevmem.c
> gs/base/gdevmr1.c

2011-07-01 16:46:32 -0400
Alex Cherepanov
c841237f86505fad348295dfb17aea45beed4c89

> Bug 692320: check page count type.
> Check the type of /Count attrubute before using it. Reject invalid
> values and types and scan the page tree instead.
> gs/Resource/Init/pdf_main.ps

2011-07-01 18:03:19 +0100
Robin Watts
52d2decab7955e61a605ab44acb88a08eb79b9cb

> Clist change for plane rop operations.
> If strip_copy_rop is called with the 'lop_planar' indicator bit set in
> the rop, it should encode just a planes worth of data.
> The reading side of clists works without change, I believe.
> gs/base/gxclrect.c

2011-07-01 12:31:54 +0100
Robin Watts
e14ea75d716da7ecdef2211a5d60e46deec55b9f

> Fix clist planar device detection.
> When the clist interrogates a device to see if it is a planar one, it was
> getting the wrong answer due to only the planar memory buffer device
> responding to the question. We fix the main planar device to respond too
> here.
> Also, any device that doesn't understand the is_native_planar question
> would respond -1; the existing code would take this to mean that it is
> planar. The code now only triggers on positive responses.
> No cluster differences expected.
> gs/base/gdevppla.c
> gs/base/gxclist.c

2011-06-30 12:17:08 -0700
Ray Johnston
93b4821ada53277b61efb87cbb12eb6a6f71ced0

> FIx segfaults caused by missing prototype causing pointer truncation.
> The gs_state_memory() function prototype is in gxstate.h but this was not being included
> by this file, so on 64-bit builds it truncatad the memory pointer to 32-bits. Tripped over
> on the macpro when doing ps2write. Problematic call was line 1086.
> gs/base/gdevpdfd.c

2011-06-30 20:02:09 +0100
Robin Watts
0038b2fadb34d57f5d43d51d313eb8bc121e929b

> Fix error in plib and plan devices not properly closing down.
> plib_close and plan_close were failing to call the underlying device
> close method, hence leaking.
> CLUSTER_UNTESTED.
> gs/base/gdevplan.c
> gs/base/gdevplib.c

2011-06-30 18:19:30 +0100
Robin Watts
b62b3a9ce165ebca357ebf6b4e2ff4cae8d630d3

> Fix leak of icc_profile in clist playback.
> When reading an icc_profile profile from the clist we were forgetting to
> decrement it's reference count, and so it was being leaked.
> Also fix a whitespace issue.
> No cluster differences expected.
> gs/base/gscspace.h
> gs/base/gxclrast.c

2011-06-30 17:05:19 +0100
Robin Watts
5baa14a107150a5ba4189ff830f21bfdd7da528c

> More Makefile dependency tweaks.
> Limit our insistence on gnu make (for order only dependencies) to
> the autoconf generated makefiles.
> gs/base/Makefile.in
> gs/base/gs.mak
> gs/base/openvms.mak
> gs/base/unix-gcc.mak
> gs/base/unixhead.mak

2011-06-30 16:42:24 +0100
Robin Watts
396fa30df058ccd35375a08e5385fa4251d4b714

> Various Memento changes.
> Add MEMENTO_LEAKONLY option to speed Memento (avoids filling memory and
> checking the filled values for consistency).
> Also, rewrite freelist management to avoid delays when making room.
> Memento in MEMENTO_LEAKONLY now runs almost as fast as normal code.
> Also change gsalloc.c and gsmchunk.c to fall through to the normal malloc
> (and hence Memento) for all blocks (when MEMENTO is defined). No changes
> to normal operation.
> CLUSTER_UNTESTED.
> gs/base/gsalloc.c
> gs/base/gsmchunk.c
> gs/base/malloc_.h
> gs/base/memento.c

2011-06-30 14:24:17 +0100
Robin Watts
44a609ed782883815571bcbc1ed7a602db03c786

> Another attempt at proper directory dependencies.
> The previous attempt failed due to directories getting their timestamp
> updated whenever the contents changed - hence causing stuff to be
> always out of date.
> The 'correct' fix appears to be to use order only dependencies. We do
> this in a portable way by defining a MAKEDIRS variable, that should
> always be the last dependency listed. Unix builds define this to
> "| directories", windows builds leave it blank.
> Testing this work in turn showed up more problems with device
> dependencies - also fixed here.
> gs/base/devs.mak
> gs/base/gs.mak
> gs/base/ijs.mak
> gs/base/jpeg.mak
> gs/base/lib.mak
> gs/base/msvclib.mak
> gs/base/openvms.mak
> gs/base/unix-aux.mak
> gs/base/unix-dll.mak
> gs/base/unix-end.mak
> gs/base/unixhead.mak
> gs/base/unixinst.mak
> gs/psi/msvc.mak

2011-06-30 13:55:54 +0100
Ken Sharp
93df8de63350ec70d38cc79494a47cf0a6e172b9

> More changes for CIDSet.
> Make sure that if the CID (LastChar) is greater than num_glyphs, then use LastChar
> for the length of CIDSet and CIDToGIDMap.
> gs/base/gdevpdtd.c

2011-06-29 21:39:01 +0100
Robin Watts
4a65a114f83a6826679625ef8686c1f43c648b43

> Fix leaks in icc code seen during performance testing.
> Whilst performance testing the new thresholding code against the plank
> device as follows:
> pcl6.exe -sDEVICE=plank -o nul: -r600 lj4700_pcl5_color_AC8Z51CC.prn
> various leaks were seen (I used Memento to see them).
> This fixes at least some of them, namely those due to us forgetting to free
> a buffer used to read an icc profile into from the clist.
> Various small bits of error case code is also fixed here.
> gs/base/gxclrast.c
> gs/base/gxclread.c
> gs/base/gxicolor.c

2011-06-29 21:39:58 +0100
Robin Watts
3992ee84c892ed2fcc16b3bd0e89d7e9d878bbaa

> Add STDDIRS dependencies to unix-aux too.
> This prevented configured debug gs builds from working (and possibly others).
> gs/base/unix-aux.mak

2011-06-29 20:55:42 +0100
Robin Watts
22f63a9438d563c3f36a2e652784d53be028bd7d

> Tweak to gsicc_manage.c to avoid potential leak.
> Examining the code, if gsicc_set_icc_directory is called with namelen=0
> then the existing code will allocate a 1 byte buffer and store it in
> the icc_manager.
> If the same function is called again, in the same way, this buffer
> will not be freed before it is overwritten.
> The fix is simply to test for icc_manager->profiledir being non NULL
> rather than the namelen > 0.
> gs/base/gsicc_manage.c

2011-06-29 15:10:03 +0100
Robin Watts
3a26f3c1aa08e6bd4b4550e066da449fb61ee2cf

> Makefile dependency fixes.
> Ray pointed out yesterday that the gs makefile has a malformed dependency
> rule ensuring that the object dirs are created before any compilation
> is done. This doesn't show itself when make is invoked to use a single
> build task at once, but parallel invocations (e.g. make -f 5) can fall
> foul fof it.
> The fix is to properly make every .$(OBJ) file depend on STDDIRS.
> gs/base/lib.mak
> gs/base/msvclib.mak
> gs/base/msvctail.mak
> gs/base/unix-end.mak
> gs/base/unixhead.mak
> gs/psi/msvc.mak
> gs/toolbin/checkdeps.pl

2011-06-29 08:17:46 +0100
Ken Sharp
865dca5781dcb4fea12d1349d4f7392d7d809c42

> Change the documented default settings for ps2write to match reality.
> gs/doc/Ps2ps2.htm

2011-06-28 21:55:44 -0400
Alex Cherepanov
c6a8de32823db74a0da27187b7fb049b337c2573

> Bug 692305: Remove -dSAFER from pfbtopfa
> Remove -dSAFER flag from pfbtopfa and wftopfa scripts because it
> interferes with the the normal operation of Ghostscript and serves
> no purpose. No client code is executed by these utilities.
> gs/lib/pfbtopfa
> gs/lib/pfbtopfa.bat
> gs/lib/wftopfa

2011-06-28 21:54:31 +0100
Chris Liddell
31cb1ff75d4a77ac32854a68f56d973d06b5da10

> Bug 692310 Add another fallback case for an FT error.
> Add a fallback for the FT_Err_Invalid_Reference error from Freetype.
> As this is a hinting error, we'll fall back to rendering the glyph
> unhinted.
> No cluster differences.
> gs/psi/fapi_ft.c

2011-06-28 20:09:11 +0100
Robin Watts
a1ee78a6de94b8b4292b9ce3b71b54ed3ae7502b

> Fix for Bug 692303, antialiasing problems.
> In trying to fix Bug 692081, I'd inadvertantly broken antialiased
> operation on shapes with multiple 'alpha=0'/'alpha-non-zero'
> transitions.
> My understanding of Peters line accumulator macros was incomplete.
> This new version seems to fix both cases.
> gs/base/gsbitops.h
> gs/base/gxcindex.h

2011-06-28 20:08:40 +0100
Robin Watts
4d44e8a15bfa263b54b369940db9d8ec97d4fc48

> Fix typo in comment.
> CLUSTER_UNTESTED
> gs/base/gxfill.c

2011-06-28 13:12:34 +0100
Robin Watts
11fa4e84f504bdbd9e78495cf5214e49554383b0

> More 'aux' makefile changes.
> Configured gs builds were still not putting the aux directory in the
> right place. Reworked here.
> This has meant changing the horrible 'RELDIR' hack for a slightly
> less horrible hack using 'BUILDDIRPREFIX'. In turn this has meant
> that the shared object targets have one mroe layer of recursion in
> the make, but it's still at the top level, and (arguably) clearer
> now than it was before.
> gs/base/Makefile.in
> gs/base/configure.ac
> gs/base/gs.mak
> gs/base/macos-fw.mak
> gs/base/macosx.mak
> gs/base/ugcclib.mak
> gs/base/unix-dll.mak
> gs/base/unix-end.mak
> gs/base/unix-gcc.mak
> gs/base/unixansi.mak

2011-06-27 20:09:20 -0400
Alex Cherepanov
680d0f9b0a30de60c3289b827714be3f5adc65b1

> Rename -dPDFNOSTOPPED to -dPDFSTOPONERROR
> gs/Resource/Init/gs_init.ps
> gs/Resource/Init/pdf_base.ps
> gs/doc/Use.htm

2011-06-27 19:34:37 -0400
Alex Cherepanov
66700ec35f74a6e049ed6654283418a6d23bfb3e

> Bug 692301: Support /Filter array with /JPXDecode
> Fix a bug in /JPXDecode filter handler that generated bad
> /DecodeParms when /JPXDecode filter was used in a /Filter
> array. Remove some obsolete code related to /JPXDecode.
> gs/Resource/Init/pdf_base.ps
> gs/Resource/Init/pdf_draw.ps

2011-06-27 14:06:27 -0400
Alex Cherepanov
2f08f6f0c1b9bae95387534617005df0b4b7e46f

> Add -dPDFNOSTOPPED option.
> Norrmally, PDF interpreter tries to repair all problems in PDF files.
> -dPDFNOSTOPPED option skips some of the stopped contexts. On error,
> instead of printing a warning and continue, PDF interpreter drops into
> a PostScript error handler that prints detailed information about the
> problem and kills the job.
> gs/Resource/Init/gs_init.ps
> gs/Resource/Init/pdf_base.ps
> gs/doc/Use.htm

2011-06-27 09:22:30 -0600
Henry Stiles
9b9d97a5a2c299595048c72fa10e1a2b2845ff58

> Add planar device to the Windows build.
> main/pcl6_msvc.mak

2011-06-27 14:35:52 +0100
Ken Sharp
5e292c6c611659105f9bbc50ad33518c97a1923d

> bug #692304 Don't emit '0 g' for 'erasepage'
> showpage causes a fill of an empty path, apparently as part of the erasepage mechanism.
> When used with pdfwrite, with -dUseCIEColor -dPDFA and no Output Intent specified
> this can lead to us emitting a '0 g' in a PDF/A file, whic his only valid if an OutputIntent is specified.
> Fixed by ignoring empty paths. Despite the comment in gdev_pdf_fill_path we
> do not seem to need to do this for text or clips. Probably since I moved the
> 'pdf_set_drawing_color' code out of pdf_reset_color so that we could write colours in a text context.
> This exhibits one progression, with ps2write 'Bug6901014_CImg_flyer.pdf' now
> draws all the output instead of dropping portions of it due to a 'nocurrentpoint' error.
> gs/base/gdevpdfd.c

2011-06-26 11:20:33 +0100
Chris Liddell
f3b1a56bb0c5d716868b7914bee6c3740f3f035a

> Update to libjpeg 8c.
> Combines (from libs-update branch) the commits:
> Commit a vanilla copy of libjpeg-8c.
> And the makefile changes to let it build.
> Commit our patch to the libjpeg source.
> Add our patches to the jpeg-8c src.
> This changes every cluster test which contains DCT/JPEG data, but
> they are all very small colour shifts that are invisible
> to the naked eye - as expected by this type of update.
> gs/base/jpeg.mak
> gs/jpeg/Makefile.am
> gs/jpeg/Makefile.in
> gs/jpeg/README
> gs/jpeg/aclocal.m4
> gs/jpeg/ansi2knr.c
> gs/jpeg/cderror.h
> gs/jpeg/cdjpeg.h
> gs/jpeg/change.log
> gs/jpeg/cjpeg.1
> gs/jpeg/cjpeg.c
> gs/jpeg/ckconfig.c
> gs/jpeg/coderules.doc
> gs/jpeg/coderules.txt
> gs/jpeg/config.guess
> gs/jpeg/config.sub
> gs/jpeg/configure
> gs/jpeg/configure.ac
> gs/jpeg/depcomp
> gs/jpeg/djpeg.1
> gs/jpeg/djpeg.c
> gs/jpeg/example.c
> gs/jpeg/filelist.doc
> gs/jpeg/filelist.txt
> gs/jpeg/install-sh
> gs/jpeg/install.doc
> gs/jpeg/install.txt
> gs/jpeg/jaricom.c
> gs/jpeg/jcapimin.c
> gs/jpeg/jcarith.c
> gs/jpeg/jccoefct.c
> gs/jpeg/jcdctmgr.c
> gs/jpeg/jchuff.c
> gs/jpeg/jchuff.h
> gs/jpeg/jcinit.c
> gs/jpeg/jcmainct.c
> gs/jpeg/jcmarker.c
> gs/jpeg/jcmaster.c
> gs/jpeg/jconfig.bcc
> gs/jpeg/jconfig.cfg
> gs/jpeg/jconfig.dj
> gs/jpeg/jconfig.doc
> gs/jpeg/jconfig.mac
> gs/jpeg/jconfig.manx
> gs/jpeg/jconfig.mc6
> gs/jpeg/jconfig.sas
> gs/jpeg/jconfig.st
> gs/jpeg/jconfig.txt
> gs/jpeg/jconfig.vc
> gs/jpeg/jconfig.vms
> gs/jpeg/jconfig.wat
> gs/jpeg/jcparam.c
> gs/jpeg/jcphuff.c
> gs/jpeg/jcprepct.c
> gs/jpeg/jcsample.c
> gs/jpeg/jctrans.c
> gs/jpeg/jdapimin.c
> gs/jpeg/jdapistd.c
> gs/jpeg/jdarith.c
> gs/jpeg/jdatadst.c
> gs/jpeg/jdatasrc.c
> gs/jpeg/jdcoefct.c
> gs/jpeg/jdct.h
> gs/jpeg/jddctmgr.c
> gs/jpeg/jdhuff.c
> gs/jpeg/jdhuff.h
> gs/jpeg/jdinput.c
> gs/jpeg/jdmainct.c
> gs/jpeg/jdmarker.c
> gs/jpeg/jdmaster.c
> gs/jpeg/jdphuff.c
> gs/jpeg/jdsample.c
> gs/jpeg/jdtrans.c
> gs/jpeg/jerror.h
> gs/jpeg/jfdctflt.c
> gs/jpeg/jfdctfst.c
> gs/jpeg/jfdctint.c
> gs/jpeg/jidctflt.c
> gs/jpeg/jidctint.c
> gs/jpeg/jidctred.c
> gs/jpeg/jmorecfg.h
> gs/jpeg/jpegint.h
> gs/jpeg/jpeglib.h
> gs/jpeg/jpegtran.1
> gs/jpeg/jpegtran.c
> gs/jpeg/jutils.c
> gs/jpeg/jversion.h
> gs/jpeg/libjpeg.doc
> gs/jpeg/libjpeg.map
> gs/jpeg/libjpeg.txt
> gs/jpeg/ltconfig
> gs/jpeg/ltmain.sh
> gs/jpeg/makcjpeg.st
> gs/jpeg/makdjpeg.st
> gs/jpeg/makeadsw.vc6
> gs/jpeg/makeapps.ds
> gs/jpeg/makeasln.v10
> gs/jpeg/makecdep.vc6
> gs/jpeg/makecdsp.vc6
> gs/jpeg/makecfil.v10
> gs/jpeg/makecmak.vc6
> gs/jpeg/makecvcx.v10
> gs/jpeg/makeddep.vc6
> gs/jpeg/makeddsp.vc6
> gs/jpeg/makedfil.v10
> gs/jpeg/makedmak.vc6
> gs/jpeg/makedvcx.v10
> gs/jpeg/makefile.ansi
> gs/jpeg/makefile.bcc
> gs/jpeg/makefile.cfg
> gs/jpeg/makefile.dj
> gs/jpeg/makefile.manx
> gs/jpeg/makefile.mc6
> gs/jpeg/makefile.mms
> gs/jpeg/makefile.sas
> gs/jpeg/makefile.unix
> gs/jpeg/makefile.vc
> gs/jpeg/makefile.vms
> gs/jpeg/makefile.wat
> gs/jpeg/makejdep.vc6
> gs/jpeg/makejdsp.vc6
> gs/jpeg/makejdsw.vc6
> gs/jpeg/makejfil.v10
> gs/jpeg/makejmak.vc6
> gs/jpeg/makejsln.v10
> gs/jpeg/makejvcx.v10
> gs/jpeg/makelib.ds
> gs/jpeg/makeproj.mac
> gs/jpeg/makerdep.vc6
> gs/jpeg/makerdsp.vc6
> gs/jpeg/makerfil.v10
> gs/jpeg/makermak.vc6
> gs/jpeg/makervcx.v10
> gs/jpeg/maketdep.vc6
> gs/jpeg/maketdsp.vc6
> gs/jpeg/maketfil.v10
> gs/jpeg/maketmak.vc6
> gs/jpeg/maketvcx.v10
> gs/jpeg/makewdep.vc6
> gs/jpeg/makewdsp.vc6
> gs/jpeg/makewfil.v10
> gs/jpeg/makewmak.vc6
> gs/jpeg/makewvcx.v10
> gs/jpeg/makljpeg.st
> gs/jpeg/maktjpeg.st
> gs/jpeg/missing
> gs/jpeg/rdbmp.c
> gs/jpeg/rdjpgcom.1
> gs/jpeg/rdjpgcom.c
> gs/jpeg/rdppm.c
> gs/jpeg/rdswitch.c
> gs/jpeg/structure.doc
> gs/jpeg/structure.txt
> gs/jpeg/testimg.bmp
> gs/jpeg/testimg.jpg
> gs/jpeg/testimg.ppm
> gs/jpeg/testimgp.jpg
> gs/jpeg/transupp.c
> gs/jpeg/transupp.h
> gs/jpeg/usage.doc
> gs/jpeg/usage.txt
> gs/jpeg/wizard.doc
> gs/jpeg/wizard.txt
> gs/jpeg/wrppm.c

2011-06-26 23:12:38 -0700
Michael Vrhel
5b7a917fa6d092f76a0400e1bce70d02b8b724f1

> Fix for compiler complaint.
> CLUSTER_UNTESTED
> gs/base/gsicc_manage.c

2011-06-25 11:07:25 -0700
Michael Vrhel
f4e1d4b280f6e6ff73d630e2b103a1a6b50c03d9

> Fix for icc directory and icc device profile initialization.
> gs/base/gscms.h
> gs/base/gsdevice.c
> gs/base/gsdparam.c
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/base/lib.mak
> gs/psi/zdevice.c
> pcl/pctop.c
> psi/psitop.c
> pxl/pxpthr.c
> pxl/pxtop.c
> svg/svgtop.c
> xps/xpstop.c

2011-06-24 18:46:51 +0100
Robin Watts
7af1ebacdb9947ea5197523bcda7764431769e8f

> Add copy_plane to rop source device.
> This uses 'creative engineering' (aka a blatant hack) to allow copy_color
> to be implemented in the "rop source" device.
> We implement a copy_plane entrypoint for the rop source device, that
> does exactly the same as copy_color, except that it abuses the lop
> value passed to the gx_device_color_fill_rectangle by setting a new
> bit (lop_planar) and pickling the plane number into the high bits.
> This is detected in mem_planar_strip_copy_rop and unpicked to a call
> to the appropriate plane.
> Care must be taken when doing rops on the planar device, as
> processing any rop on the device that involves 'D' calls get_bit_rectangle
> which can cause a call to convert from planar to chunky if mishandled.
> The solution is to ensure that we always remove our get_bits_rectangle
> implementation when passing on a ropping call.
> gs/base/gdevmpla.c
> gs/base/gdevrops.c
> gs/base/gsropt.h

2011-06-24 17:38:55 +0100
Chris Liddell
0c927bb3e177b5b34ebb1b1f7fa2d9669614fbaf

> Bug 692274: handle vastly different magnitudes in x/y scale
> If the difference in the scale on the x and y axes is large
> (in this case, a factor of 1000), the value scaling we do
> to pass into Freetype can run over/under flow when applied
> to both. The solution is to apply the value scaling
> separately for x and y axes. But the quality is very
> marginally better when the two are scaled together, so we
> do that normally, and only fall back to the separate handling
> when the x and y scales differ by more than 512.
> No cluster differences expected.
> gs/psi/fapi_ft.c

2011-06-24 12:11:48 +0100
Robin Watts
90324e2c6466978f3c01e4a5a3c27d916b9ba9fa

> Fix 'aux' cluster breakages. Move aux into obj.
> Move aux directories into the appropriate obj directories.
> Makes cleaning easier, and is neater overall.
> Also fix some unrelated problems with cleaning in the msvc builds.
> common/msvc_top.mak
> common/pcdefs.mak
> gs/base/all-arch.mak
> gs/psi/msvc.mak
> gs/psi/os2.mak
> gs/toolbin/localcluster/clusterpush.pl
> main/pcl6_gcc.mak
> main/pcl6_msvc.mak

2011-06-23 12:53:01 -0600
Henry Stiles
7f2d55272963b039a472adbd26bb9a111e5d31ac

> Use filenames instead of stdin and stdout.
> The original example c programs used stdin and stdout instead of
> reading directly from files. The C programs were changed to use files
> but the associated shell script wasn't updated.
> tools/GOT/dotags.sh

2011-06-22 21:39:01 +0100
Robin Watts
ca0f4ff4a0df386dd4d494a418f09336d06c2451

> Cross compilation (AUX) changes to ghostscript and ghostpdl.
> Introduce a new 'aux' directory and appropriate defines to allow
> easier cross-compilation of gs/ghostpdl.
> common/gccdefs.mak
> common/generic.mak
> common/msvc_top.mak
> common/ugcc_top.mak
> gs/base/Makefile.in
> gs/base/all-arch.mak
> gs/base/gs.mak
> gs/base/lib.mak
> gs/base/msvccmd.mak
> gs/base/msvctail.mak
> gs/base/unix-aux.mak
> gs/base/unix-end.mak
> gs/base/zlib.mak
> gs/psi/msvc.mak
> gs/psi/os2.mak
> main/pcl6_gcc.mak
> main/pcl6_msvc.mak
> pl/pl.mak

2011-06-22 20:05:15 +0100
Chris Liddell
3b3261eca08cd73ca355b28fe5125c98d411820d

> Bug 692297: reinstate the proper way to release FT glyphs.
> FT_Glyph_Done is the correct method for freeing both bitmap and
> outline glyphs from Freetype.
> No cluster differences expected.
> gs/psi/fapi_ft.c

2011-06-22 10:46:18 -0700
Ray Johnston
f8c4663d5108ca0b7416bf35ba37a8bb63f0b8ed

> Improve documentation about gsapi_set_poll
> gs/doc/API.htm

2011-06-22 10:17:32 -0700
Michael Vrhel
b28982145ccdea3a39f7ad13d7f5c8a00f14f83d

> Replace previous commit file with smaller file.
> CLUSTER_UNTESTED
> gs/examples/text_graphic_image.pdf

2011-06-22 10:12:33 -0700
Michael Vrhel
314d8b86434396afe96ce915dbb1cb0ff01b2047

> Addition of simple example file with text graphic and image objects.
> CLUSTER_UNTESTED
> gs/examples/text_graphic_image.pdf

2011-06-22 09:05:28 -0700
Michael Vrhel
e3def0b758231cd1c5c0510945cef0dd3d938393

> Support for fast thresholding to CMYK planar devices
> Code works for various orientations for color as well as indexed (mono) images.
> There is an inversion (polarity) issue remaining to track down as well as one potential
> rendering issue during the buffer clean up with landscape images. These
> will be resolved shortly. For now, code is sufficiently complete to begin
> timing testing and optimizations. To use specify
> -dCOLORSCREEN -sDEVICE=plank
> and enable processing of color images by setting use_fast_thresh = true
> on line 67 in gxicolor.c
> gs/base/gxht_thresh.c
> gs/base/gxht_thresh.h
> gs/base/gxicolor.c
> gs/base/gxidata.c
> gs/base/gximono.c
> gs/base/lib.mak

2011-06-21 18:52:03 +0100
Robin Watts
fef629cab877b0bbf4f86777f37038d1f37de838

> Fix cut/paste tiffscaled typo in docs.
> CLUSTER_UNTESTED.
> gs/doc/Devices.htm

2011-06-21 16:45:52 +0100
Chris Liddell
368e14c73337b42a24299445a660f029d2c26861

> Reinstate the configure check for cups/raster.h.
> Several Linux distributions seem to have neglected to make
> the cups development package depend on the cupsimage
> development package, but we need both for the cups device.
> No cluster differences expected.
> CLUSTER_UNTESTED
> gs/base/configure.ac

2011-06-21 12:31:45 +0100
Ken Sharp
dfc53c791d8a121273bd22bbc0c04fd3ed375cdf

> Bug #692218 Create comatible CIDSet
> The fix in Bug 692218 did not (apparently) work for the SolidWorks
> PDF/A validator. This patch sets the number of entries in a CIDSet to
> be the number of glyphs in the font program, and makes the number of entries
> in a CIDToGIDMap the same.
> Together with the commit 27b740 here:
> http://ghostscript.com/pipermail/gs-cvs/2011-June/013024.html
> this now seems to work correctly.
> gs/base/gdevpdtd.c

2011-06-21 12:08:58 +0100
Ken Sharp
136934cf60977e5ca6c1a77f8fd4d30a8512b206

> Allow pdfwrite and ps2write to use 64-bit file pointers raising the 4Gb file limit.
> Bug #692290 ps2write and pdfwrite have been using gp_open_scratch_file,
> fseek and ftell, which limit the size of a temporary file to 4GB. This
> commit uses gp_open_scratch_file_64, gp_ftell_64 and gp_fseek_64 whcih
> should allow 64-bit file access on systems which support it.
> Unfortunately I haven't been able to concoct a test for this, so the
> 64-bit code is not tested. However it continues to work normally with the
> clustre regression tests.
> gs/base/gdevpdf.c
> gs/base/gdevpdfo.c
> gs/base/gdevpdfp.c
> gs/base/gdevpdfu.c
> gs/base/gdevpdfx.h
> gs/base/gdevpsu.c
> gs/base/gdevpsu.h

2011-06-20 17:57:46 +0100
Robin Watts
da1152191fb97516b82303ab187b08c971bfd360

> Fix Bug 692057, 'hang' while converting mask->rectangle list.
> Previously the clip accumulator code would attempt to add a new
> rectangle would always search backwards from the tail of the
> list when looking for a new place to insert a rectangle.
> This works well when rectangles are coming in at (or near) the
> end of the list. For cases where this doesn't happen we quickly
> break down to O(n^2) operation.
> The example file on the bug shows one such circumstance, where
> we process a landscape image; this results in the masks coming
> in as '8 bit columns'. The first column accumulates nicely,
> subsequent ones do not.
> The fix here, as suggested by Chris Liddell, is to store the
> 'last insert point', and to search from that. Locality of
> reference should pay off here and lead to much improved
> performance. Certainly tests with the example file show that we
> complete within 2.5 minutes on my machine, compared to 1.5 minutes
> with -dMaxPatternBitmap=32000000, and an unknown time over 5 minutes
> with the old code.
> gs/base/gxacpath.c
> gs/base/gxcpath.c
> gs/base/gxcpath.h

2011-06-20 09:56:37 -0600
Henry Stiles
19f10a95bae408363a77f5a2fd05f69350269cb7

> Merge branch 'deprecate_crd_and_cleanup'

2011-06-03 00:15:50 -0600
Henry Stiles
476256194a8886951885a4e9ce71972504161192

> Deprecate CRDs in PCL
> pcl/pccrd.c
> pcl/pccrd.h
> pcl/pcdraw.c
> pcl/pcfrgrnd.c
> pcl/pcfrgrnd.h
> pcl/pcl.mak
> pcl/pcommand.c
> pcl/pcpalet.c
> pcl/pcpalet.h
> pcl/pcpatrn.c
> pcl/pcpattyp.h
> pcl/pcstate.h
> pcl/pctop.c

2011-06-02 16:55:55 -0600
Henry Stiles
1c1c457a4262f1ef539ec75792c57494c8a746b2

> Trivial warning fixes
> pcl/pcindxed.c
> pcl/pcpage.c

2011-06-02 14:18:35 -0600
Henry Stiles
854a16b3eefc0d3b434f446db84e3a9317eda49e

> Make page size procedure robust against paper size table changes.
> pcl/pcpage.c

2011-06-01 11:52:40 -0600
Henry Stiles
b89ab3397895d41818170a7f4ea893bbb1580e79

> Clean up warnings and problems identified with static analysis.
> pcl/pcstatus.c
> pcl/pctext.c
> pcl/pctop.c
> pcl/pcuptrn.c
> pcl/pgdraw.c
> pcl/pglabel.c
> pcl/pgvector.c
> pl/pjparse.c
> pl/plchar.c
> pxl/pxfont.c

2011-05-27 14:30:10 -0600
Henry Stiles
22b24ea5e3006b4cdc0394c9360423f02b6d3bf9

> Code cleanup directed by static analysis tools.
> Changes function not properly made static, removes unread and unused
> variables.
> pxl/pxpthr.c
> pxl/pxsessio.c
> pxl/pxtop.c

2011-05-27 13:48:38 -0600
Henry Stiles
00d4d232283b2eb6c9820618d04b5d4c9eb8a7b3

> Makes procedure static.
> pcl/pctop.c

2011-05-27 13:45:03 -0600
Henry Stiles
d98ceb81d6d45f4a2bc49b2f28dd16fe94fea601

> Fixes static analyzer discovered logic error.
> With an array size of 0, the line dash pattern should not be accessed.
> pxl/pxgstate.c

2011-06-20 15:43:34 +0100
Ken Sharp
9d0ded9edc84704afd3724b3c7810c035dc4e699

> Permit the calculation of CIDSet and CIDToGIDMap size, for PDF/A validation
> The SolidWorks PDF/A validator complains about the CIDSet we produce for
> embedded TrueType fonts, converted to CIDFonts, when creating PDF/A files.
> I'm still not exactly sure what its complaining about but I'm working with
> our customer to resolve this. In the meantime, this code makes it easier
> to play with teh emission of CIDSet and CIDToGIDMap.
> gs/base/gdevpdtb.c
> gs/base/gdevpdtd.c
> gs/base/gdevpdtf.c
> gs/base/gdevpdtf.h
> gs/base/gdevpdtw.c

2011-06-20 11:17:26 +0100
Ken Sharp
27b7404218093f3d1cf414b52721c8a24dbc2746

> ps2write output crashes with limitcheck error after converting large documents
> Adopting patch from 'Steve166' (bug # 692172) with a little gratuitous
> reformatting. (note that opdfread.ps is now compiled in as opdfread.h)
> This converts the directory of objects from an array to a dictionary of dictionaries
> which allows for a more or less unlimited (64k*64k) number of objects.
> No cluster differences expected.
> gs/base/opdfread.h
> gs/lib/opdfread.ps

2011-06-20 03:12:22 -0700
Marcos H. Woehrmann
0700f67de273e92f06a1e4a0e67e3d023fc29442

> Added dependencies to various makefiles to fix parallel make.
> gs/base/lib.mak
> gs/contrib/contrib.mak

2011-06-17 23:20:30 +0000
Robin Watts
29c7111f3fc5eb4878e875674750c79b1bd85bcc

> Add gdevplan.c to ghostscript visual studio project.
> Should have done this earlier, but forgot. CLUSTER UNTESTED as windows
> only.
> gs/ghostscript.vcproj

2011-06-17 21:08:49 +0100
Robin Watts
75e1e089f68480b68bb9548ba1e6cf0b9d0f73e0

> Fix windows compile breakage; missing definition of int64_t.
> Simply add a #include "stdint_.h" to the top of a file; breakage
> presumably caused by the dependency changes done earlier.
> CLUSTER_UNTESTED.
> gs/base/gstparam.h

2011-06-17 12:34:26 -0700
Michael Vrhel
b058182285c21ff142e46997fd3b8510b6993d66

> Fix for improper offset in contone data. Halftone project only.
> CLUSTER_UNTESTED
> gs/base/gxicolor.c

2011-06-17 12:32:11 -0700
Michael Vrhel
096e21027a7ff99cf0e3d0d1e24dac29b2d69f12

> Fix for Bug 692286 - Image too light -- not fully opaque
> when I did some of the work on the compositor queue I had set things up so that the
> update of the blend parameters would be written only into the same bands as the group
> push. The approach of writing only in the bands of the group bounding box will not
> work in general, for example if we have nested groups that only partially overlap. The
> solution is that we have to write the blend parameters in all bands.
> gs/base/gdevp14.c

2011-06-17 10:37:44 -0700
Ray Johnston
ee45ee90570975275ad6b826b377d6852b651b6a

> Fix bug 692254 performance problem with pattern that bbox overflowed fixed.
> The compute_inst_matrix relied on the gx_translate_to_fixed but when the
> tx, ty was outside the valid area (txy_fixed_valid false) the float2fixed
> would overflow and change the sign. This killed the performance when the
> j0, i0 loop in tile by steps calculated a VERY large loop range from large
> negative to large positive value.
> The gx_path_translate may not be needed for in this path, but it is included
> since that was in the gx_path_translate_to_fixed. Quick check showed that the
> path is empty as expected, but the call is harmless.
> gs/base/gsptype1.c

2011-06-17 19:43:09 +0100
Robin Watts
9dd7c86d0619a9293f6476092765b86abab3baf1

> Move planar dev_spec_op into core planar device.
> Rather than having plib and plan devices provide a dev_spec_op that
> responds to gxdso_is_native_planar, put the responsibility for this
> into the core planar memory device.
> This not only simplifies the code, it actually fixes a problem whereby
> the memory device was overwriting it with the default.
> gs/base/gdevmpla.c
> gs/base/gdevplan.c
> gs/base/gdevplib.c

2011-06-03 09:55:57 -0700
Ray Johnston
a2a0b404be0365a2f789e154733ab51db3b3aa99

> Add an example that uses PostScript to do simple transparency.
> CLUSTER_UNTESTED.
> gs/examples/transparency_example.ps

2011-06-17 17:53:53 +0000
Robin Watts
f80bc7001e2e250348a6db82aa50d25d18848b66

> Enable plan devices in non-windows builds.
> No cluster differences expected.
> gs/base/unix-gcc.mak
> main/pcl6_gcc.mak

2011-06-17 17:11:27 +0000
Robin Watts
4ed123916f3f3373d5648011ea03c3cd969e00c1

> Fix for Bug 692285: phase shift in patterns in long image.
> The phase for a pattern mask was being held in a short, rather
> than in an int. Unsurprisingly this caused problems when the
> phase overflowed. Simple fix is to use an int instead.
> Cluster testing shows no changes.
> gs/base/gsdcolor.h

2011-06-17 13:21:05 +0100
Chris Liddell
b8326c843f0d14b55b7b5cc3694977df73d4a0e4

> Remove circular dependency involving gscms.h.
> Robin Watts identified that gscms.h relies on gsutil.h
> which relies on gxstate.h, which relies on gscspace.h which
> relies on gscms.h
> Adding a couple of opaque declarations to gscspace.h (along with
> relevant declaration guards) removes this circular dependency.
> No cluster differences.
> gs/base/gscms.h
> gs/base/gscspace.h

2011-06-17 09:43:21 +0100
Chris Liddell
af98a55ac576545d9495cef0884462b7b2fb8205

> Tidy up some of the GS<->FT number conversions.
> gs/psi/fapi_ft.c

2011-06-17 09:49:14 +0000
Robin Watts
7a8971739d33a18dd7d433adcabf2e2dea5b6ba8

> New lib.mak dependency checker, and update lib.mak using it.
> Invoke gs/toolbin/checkdeps.pl and it performs rudimentary
> and easily confused checks on the dependencies in lib.mak.
> It may be simple, but it spots MANY problems, the important
> of which are fixed here.
> It gets easily confused by files not being in the expected
> paths (but these are easy for an operator to spot and ignore).
> No cluster differences expected.
> gs/base/gxstroke.c
> gs/base/lib.mak
> gs/toolbin/checkdeps.pl

2011-06-17 09:30:32 +0100
Chris Liddell
2cd56d061e655569ec473d605caae9552355a59f

> Bug 689546: Add clist.dev to the core lib dependencies.
> I previously noted that the clist device is essentially always required
> now, but I used a less than ideal method to address it: having it as
> a dependency of the gdevprn.o object.
> The correct solution, done here, is to include the clist device in the
> libs.dev file, thus making it a direct requirement of the core lib.
> No cluster differences.
> gs/base/lib.mak

2011-06-16 12:11:41 -0700
Michael Vrhel
449e9c8909e5e0cbf92497f1d95bfe60e8e89f6e

> Addition of copy_plane command for clist
> The command closely mimics the copy_mono command and as such shares its
> command operator. With a bit of work it would be possible to get some minor
> code reduction but the recursive nature of the functions makes it a bit
> tricky.
> gs/base/gxcldev.h
> gs/base/gxclimag.c
> gs/base/gxclist.c
> gs/base/gxclist.h
> gs/base/gxclrast.c
> gs/base/gxclrect.c
> gs/base/lib.mak

2011-06-16 14:55:07 +0100
Robin Watts
e34770c45cefbe6c4cf2d564269ff849282dd10f

> Second attempt to add plan devices.
> Add new 'plan' family of planar devices.
> Equivalent to the plib devices, but without the necessity to always band,
> and not using the band donor.
> From the end users point of view, these output ppm etc and are probably
> therefore not that useful as is. They serve the twin purposes of allowing
> us to test planar output, and to act as a basis for devices that need
> planar non-interlaced output.
> The development of these devices showed a problem with
> gx_get_bits_return_pointer in the planar case. When called, it would
> assume that the start of the first line of the first plane was at
> 'base', and that subsequent planes could be reached by adding
> raster * height to it. Unfortunately, clist_rasterize_lines resets the
> buffer device at the end, so that height is unrelated (often 1).
> The fix implemented here is to change gx_get_bits_return_pointer to take
> a pointer to the line pointers, rather than a direct base value. This
> means we can always find the subsequent planes correctly.
> In my initial attempt at this, I broke the code by failing to notice that
> gdevmem.c passes the same base pointer to gx_get_bits_copy. Fixed here.
> Cluster testing shows it be OK this time around.
> gs/base/devs.mak
> gs/base/gdevdgbr.c
> gs/base/gdevmem.c
> gs/base/gdevmpla.c
> gs/base/gdevplan.c
> gs/base/gdevplib.c
> gs/base/gxgetbit.h
> gs/psi/msvc.mak

2011-06-16 11:49:18 +0000
Robin Watts
11e242eae4d9c78a556b030ef5e69cb0c94e0d48

> Backout previous commit of 'plan' devices.
> The previous commit caused large numbers of changes. Back it out while
> I investigate why.
> gs/base/devs.mak
> gs/base/gdevdgbr.c
> gs/base/gdevmem.c
> gs/base/gdevmpla.c
> gs/base/gdevplan.c
> gs/base/gdevplib.c
> gs/base/gxgetbit.h
> gs/psi/msvc.mak

2011-06-16 10:00:33 +0100
Robin Watts
583e964a55bf50dc28d1467fd9e9bad7bc03849a

> Add new 'plan' family of planar devices.
> Equivalent to the plib devices, but without the necessity to always band,
> and not using the band donor.
> From the end users point of view, these output ppm etc and are probably
> therefore not that useful as is. They serve the twin purposes of allowing
> us to test planar output, and to act as a basis for devices that need
> planar non-interlaced output.
> gs/base/devs.mak
> gs/base/gdevdgbr.c
> gs/base/gdevmem.c
> gs/base/gdevmpla.c
> gs/base/gdevplan.c
> gs/base/gdevplib.c
> gs/base/gxgetbit.h
> gs/psi/msvc.mak

2011-06-14 18:56:03 +0100
Robin Watts
a36cd9f5c60607dfbc12caadb0987b89ecfa27e7

> Update gx_path_print (and gx_path_dump) to output postscript.
> Same information as before is output, just in a a slightly different
> order. This means we can paste it back into a postscript file with
> less editing.
> CLUSTER_UNTESTED as this is never called in production code.
> gs/base/gxpath.c

2011-06-14 19:15:29 +0100
Robin Watts
c442d7d0d5b11addc39519b155b93b3677c11c4d

> Add memento.c/memento.h to VS project
> Forgot to add these when they were created.
> CLUSTER_UNTESTED as windows only.
> gs/ghostscript.vcproj

2011-06-16 09:56:47 +0100
Ken Sharp
7de54e55e57f4046196c0909da247f98ef26b46d

> Extend the uuid change in commit g0b7cd7c to cover Instance UIDs as well as Document UIDs.
> No differences expetced.
> gs/base/gdevpdfe.c

2011-06-15 19:36:31 +0100
Ken Sharp
45663bbeb798d7a851546a4d6ccf8954e16696ae

> (pdfwrite) Bug #692280 "Incorrect ToUnicode CMap when the input is a PDF with a 2-byte ToUnicode"
> The code was handling Type 0 fonts as if they were type 1, which meant a maximum
> of 256 entries. Fixed by treating them as TrueType CIDFonts (2 byte codes, maximum
> 64K entries)
> This may need later testing with more extensive collections of conts, we possibly should treat them as regular CIDFotns.
> gs/base/gdevpdte.c

2011-06-15 12:18:16 -0400
Alex Cherepanov
10fad95042303b1996d8565a40d8ca4d5c4eed06

> Dump unchanged MediaBox and CropBox values.
> Output unmodified values of /MediaBox and /CropBox attributes.
> This is done on request from a customer, but should also benefit
> every pdf_info.ps user. This change is not backward compatible.
> gs/toolbin/pdf_info.ps

2011-06-15 01:53:26 -0400
Alex Cherepanov
28ab2c1fafd763c7ab1074c91bf217bbbc871fe7

> Bug 691335: Fix Photoshop EPS separations.
> Use DSC comments to get separation names. If the output device supports
> separations (i.e. has big /MaxSeparations attribute), set /SeparationColorNames
> accordingly. Fix DSC handler; make it ignore the comments after %%EndComments
> to avoid handling of DSC comments in nested EPS documents. Drop strange
> code that runs tint transform function when any of the colorant names is
> is a standard name (Gray, Red, Cyan, ...).
> gs/Resource/Init/gs_epsf.ps
> gs/psi/zcolor.c

2011-06-14 16:52:57 +0100
Ken Sharp
0b7cd7ca121ac440d5607cc6795ba8bcd7c20c85

> (pdfwrite) Bug #692268 "pdfwrite sets xapMM:DocumentID incorrectly"
> The XML emission in pdfwrite was simply pasting the UUID as a hex string,
> whereas the spec says it must be a URI.
> This change adds the 'uri:' which is required for compliance.
> No cluster differences expected.
> gs/base/gdevpdfe.c

2011-05-26 10:58:31 +0100
Ken Sharp
cba939306ceacde74aac1d9b69ca6cf08ce1ebce

> Use correct enumerator for PCL type 3 fonts in pdfwrite
> Part of the change for type 3 fonts from PCL used the wrong enumerator.
> The code relies on a text enumerator actually being a show enumerator,
> which is guaranteed true if we use the right one, but may not be if we
> use the wrong one.
> This didn't seem to be causing any problems, but fixed anyway.
> gs/base/gdevpdtt.c

2011-06-11 20:52:20 -0400
Ken Sharp
49ae789184ebb094c29b14a6778e8fa823f6637a

> Bug 691706: Keep page number with /View
> If we have a View and a Page, but no matrix (not required if we have
> a /View [/Fit]) then do not discard the page number but use it as a
> /Page argument (adding one because pdfmark starts from page 1, not 0).
> gs/Resource/Init/pdf_main.ps

2011-06-11 16:26:11 -0700
Michael Vrhel
03bce08fdcb15702abf4cafbe8723dc8b9b7bd6f

> Fix for aliasing of icc link hash code
> This fixes a problem that existed in the computation of the ICC
> hash code. This was the source of the problem in Bug 692265 (bug fixed with
> this commit in file gsicc_cache.c). Also some error checking code and
> addition of code to handle the transfer function when doing the fast
> thresholding of color images.
> gs/base/gdevp14.c
> gs/base/gsicc_cache.c
> gs/base/gsicc_lcms.c
> gs/base/gxcmap.c
> gs/base/gxcmap.h
> gs/base/gxicolor.c

2011-06-11 10:27:53 -0400
Alex Cherepanov
4c6809dfa1c539d757c30f572922e05cd1436698

> Bug 692252: Trap contents stream errors
> Run PDF operator streams in a stopped context. Stop processing of the
> stream on error, but continue to process rest of the file. Remove a
> hack that defined 'inf' as 0.
> gs/Resource/Init/pdf_base.ps
> gs/Resource/Init/pdf_draw.ps

2011-06-10 00:10:39 -0400
Alex Cherepanov
f256d925aba7bd2c552e3598b5782bc3ab09cf4f

> Bug 692258: Search annots, forms, patterns for fonts.
> Besides the contents, look into annotations to identify fonts used by
> the PDF file. Add recursive enumeration of Form and Pattern resources.
> gs/toolbin/pdf_info.ps

2011-06-09 16:07:15 +0100
Robin Watts
ce51b64c335d6c995c003497988d0327c64985cb

> Add Sags unicode patch for gswin32c stdin/out.
> Patch from Sags to read/write stdin/stdout as unicode and convert
> to/from utf8 when passing to/reading from the core.
> Once again, build with WINDOWS_NO_UNICODE to preserve old behaviour.
> See bug 692770.
> CLUSTER_UNTESTED.
> gs/psi/dwmainc.c

2011-06-09 16:11:00 +0100
Robin Watts
c39c030b850848540a5df1fc25c4dc76ee90040b

> More unicode changes for gswin32
> Taken on (most of) a patch from Russell Lang to dwtext.c, with bugfixes
> to the changes I made yesterday. The bits of the patch I didn't take
> on, were to do with running gswin32 as a true Unicode application.
> Currently we are an ANSI application with a Unicode window. Moving to
> be a true Unicode application may have knock on effects I am unsure of
> (and would certainly leave us different to gswin32c.exe). I don't think
> we lose anything by staying as we are.
> CLUSTER_UNTESTED.
> gs/psi/dwtext.c

2011-06-09 12:09:38 +0100
Chris Liddell
752397ab6f16aad4147d6e7101373edd7c9d14d5

> Bug 692263 spot and elide glyphs with zero dimensions.
> A glyph with a zero scale in either dimension could cause divide by
> zero errors in a number of places in the FAPI *interface* code
> (that is: fapi_ft.c, fapiufst.c and fapibstm.c). So catch and handle
> the case early by skipping such case. The wrinkle is charpath operations
> which *must* create a path, even of zero dimensions.
> No cluster differences.
> gs/psi/fapi_ft.c
> gs/psi/fapibstm.c
> gs/psi/fapiufst.c
> gs/psi/ifapi.h
> gs/psi/zfapi.c

2011-06-08 18:36:35 +0100
Robin Watts
199498069233c98424567d22964dd1934c9f766e

> Windows gs console window unicode changes.
> Changes to dwtext.c to allow unicode operation.
> The window is created as a Unicode one, so we get unicode character codes
> delivered to us as they are typed. We convert these incoming key codes
> into utf8, as the gs core expects. Any output from the core is converted
> from utf8 to unicode, and the window now displays unicode.
> The net effect is that the window looks like it's behaving exactly like
> a unix window does.
> The copy and paste functions are updated to cut and paste unicode too.
> As usual, building with WINDOWS_NO_UNICODE preserves existing behaviour
> (useful for windows 95/98/me builds).
> The sole difference in behaviour is that the copy function now removes
> trailing blank lines from the output, as this is never what you want.
> CLUSTER_UNTESTED as windows only changes.
> gs/psi/dwtext.c
> gs/psi/dwtext.h

2011-06-08 14:55:28 +0100
Robin Watts
afda147d56efff03ff6967a91a0436732d7b38fc

> Tweaks to windows makefiles.
> Eliminate some noise during windows builds. Thanks to Norbert Janssen for
> this.
> CLUSTER_UNTESTED
> gs/base/msvctail.mak
> main/pcl6_msvc.mak

2011-06-08 10:05:21 +0100
Robin Watts
3367282be8da9713c0cd7a95a56c59a6b4e69a6e

> Add file missed from last nights commit, 232b1d3.
> Forgot to add the new file :(
> gs/base/gp_wutf8.c

2011-06-07 15:25:57 -0700
Michael Vrhel
6a436e0f9992ab5734b21b796a02ed0976ba1d5b

> Work toward getting fast thresholding for color output devices and color input images
> To make my life easier, this updates msvc.mak to include the planar devices.
> Changes in image_render_mono_ht to work towards the case where the output device is not mono.
> Minor fixes in gxicolor.c in the portion of code that steps through the planes.
> Addition of copy_plan operations in gxht_thresh.c for CMYK planar devices.
> Addition of clip_copy_plane for the clip device (thanks Robin Watts).
> gs/base/gxht_thresh.c
> gs/base/gxht_thresh.h
> gs/base/gxicolor.c
> gs/base/gximono.c
> gs/base/lib.mak
> gs/psi/msvc.mak

2011-06-08 00:02:44 +0100
Robin Watts
232b1d36ad90b8d8be357033a80162fdd9de7aa8

> More work on unicode handling under windows.
> Continuing from commit 0ea739147, fix other issues, including:
> * OpenPrinter calls changed to use OpenPrinterW.
> * FindFirstFile/FindNextFile changed to use FindFirstFileW/FindNextFileW.
> * gp_getenv windows specific registry lookups changed to use unicode
> versions.
> * GetProfileString changed to use GetProfileStringW.
> * Add unicode changes to gswin32 as well as gswin32c.exe.
> This hopefully concludes the bulk of the work on unicode support. Possible
> areas to consider in future include:
> * changing gswin32 so that cut and pasting operates in unicode
> * make gswin32 display text in unicode
> * modify stdin to go from unicode to utf8, and stdout to go from utf8
> back to unicode.
> I hope no idea if any of those are possible or not.
> Testing seems to indicate that this all works OK, but I am not ideally
> set up here.
> For safety, I have introduced a WINDOWS_NO_UNICODE define. If this is
> predefined during a build then this will cause the code to drop back to
> the old mode of operation.
> gs/base/gdevwpr2.c
> gs/base/gp_msprn.c
> gs/base/gp_mswin.c
> gs/base/gp_mswin.h
> gs/base/gp_ntfs.c
> gs/base/gp_wgetv.c
> gs/base/msvctail.mak
> gs/base/windows_.h
> gs/base/winlib.mak
> gs/ghostscript.vcproj
> gs/psi/dwmain.c
> gs/psi/dwmainc.c
> gs/psi/msvc.mak
> pl/dwmainc.c

2011-06-06 22:13:07 -0400
Alex Cherepanov
8b90a80fe86364c0b6c1cad12cfb241c66943c24

> Bug 688064: Add AdjustWidth=WIDTH
> Extend AdjustWidth option to support adjustment to any width. This option
> now accepts the following values;
> 0 - no adjustment, the same as before
> 1 - low res fax adjustments, the same as before
> >1 - adjust to the given width, regardless of the document width.
> gs/base/gdevfax.c
> gs/base/gdevpng.c
> gs/base/gdevtifs.c
> gs/base/gdevtifs.h
> gs/base/gxdownscale.c
> gs/base/gxdownscale.h
> gs/base/minftrsz.c
> gs/base/minftrsz.h
> gs/doc/Devices.htm

2011-06-06 21:00:41 +0100
Robin Watts
f92a542b0475a12f4724d3e57f232cafbe17ce50

> Bug 691118: Fix radial shading bug
> Bug 691118 describes a bug with radial shadings in a PDF file.
> Back in r7982 (git 69a43b0) (16 May 2007) Igor introduced some cunning
> code to speed radial shadings. It would spot that the shading was large
> in comparison with the area being filled, and produce a smaller,
> equivalent shading.
> Essentially, it would take the destination rectangle, and figure out
> where in the shading the 'extremes' of that rectangle would come from
> (allowing for distortion in shape generation) and ensure that the newly
> generated shading covered the same area.
> Either the corners of the rectangle could be extremes, or points on the
> side. The code for the points on the sides was broken due to a typo
> causing the X and Y cases to be switched.
> All that is required to solve the bug is to change the == to !=.
> In researching the problem however, I recommented lots of the code to
> make it more comprehensible (to me at least!) along with introducing
> some temporary variables to make it clearer and avoid needless
> recomputation of values. I am committing this as I believe it's a step
> forward for the code, even though it doesn't actually make a
> difference.
> 48 differences in non-pdfwrite/ps2write tests. 11 in pdfwrite, 17 in
> ps2write. Checked with bmpcmp, all unnoticable to the naked eye, so
> presumably progressions.
> gs/base/gxshade1.c

2011-06-06 14:59:09 +0100
Robin Watts
82dc5982726c8ea05c3be6faa2f370a62f11a94a

> Fix Bug 689737: antialiasing issues with patterns.
> Bug 689737 shows mismatches between rendering with and without
> antialiasing when PaintType 2 patterns are used.
> Following Michaels analysis of the bug, the fix seems to be very simple;
> when opening a pattern accumulator device, if the PaintType is 2, then
> set color_info.anti_alias.graphics_bits to 1. We also set
> color_info.anti_alias.text_bits to 1, even though this is unlikely to
> make a difference if freetype is used.
> No expected cluster differences as antialiasing isn't used in any
> cluster tests.
> This commit also removes a FIXME (as I've checked with Michael), and
> improves the commenting on the device proc structure (which I'd done
> when trying a different device proc based fix, but is an improvement
> anyway).
> gs/base/gxpcmap.c

2011-06-05 23:42:14 -0400
Alex Cherepanov
a0720527bcabb2732c3c06dfe3cae1f9c9ea9318

> Bug 692252: define 'inf' as 0
> Work around a bug in PDF file that has 'inf' instead of a number
> in the content stream. Define a PDF operator 'inf' that returns 0
> and issues a warning.
> gs/Resource/Init/pdf_draw.ps

2011-06-04 22:04:12 +0100
Robin Watts
0ea739147fd02ee0e63e58c036bb63fa841ddd3c

> Bug 691222: Make windows build use UTF-8 encoding.
> We change the windows builds to use the 'wmain' rather than 'main'
> entrypoints. This means we get the command line supplied in 'wchar_t's
> rather than chars. We convert back to chars using UTF-8 encoding, and
> call (what was) the main entrypoint.
> This means that we can cope with unicode filenames/paths etc.
> To match the encoding, we therefore need to wrap every use of the
> filenames with the associated utf-8 -> wchar_t conversion and use
> the unicode file access functions (_wfopen instead of fopen etc)
> instead.
> Simple testing seems to indicate that this works. I think I've got
> every occurence of file access, but it's possible I've missed some. If so
> I'll fix them piecemeal as they are reported.
> This should solve bug 691222, and hopefully 691117.
> gs/base/gp_mswin.c
> gs/psi/dwmainc.c
> pl/dwmainc.c

2011-06-04 22:09:58 +0100
Robin Watts
4aff3e0d813cb00eb62db9720cf99b2d419f999a

> Move various uses of fopen to use gp_fopen.
> For portability we should be using gp_fopen, not fopen.
> gs/base/gdevdevn.c
> gs/base/gdevimdi.c
> gs/base/gdevrinkj.c
> gs/base/gdevtxtw.c
> gs/base/gdevwts.c
> gs/psi/imainarg.c

2011-06-04 00:35:37 -0700
Marcos H. Woehrmann
77b456f298aeabaa4b27b63a9ead0aa0470ac5b8

> Removed HAVE_HYPOT from configure scripts.
> This revision disables checking for a system hypot() function and is
> a followup to 7dcc68ce753175a9c686021d53a061253e2787c3 which modified
> math_.h to always use our internal hypot() function.
> No expected cluster differences.
> config.mak.in
> configure.ac
> gs/base/Makefile.in
> gs/base/configure.ac
> gs/base/macosx.mak
> gs/base/unix-gcc.mak

2011-06-03 17:33:51 +0100
Robin Watts
31174084f95474f9c0edfd4c534c3b1654c02255

> Fix bug 692226; stray pixels in skewed masked image
> When painting a masked image, we first plot a scanlines worth of
> mask pixels to a mask plane. This is then used in a clipping device to
> clip the image pixels that follow thereafter.
> In the code that plots the masked pixels it currently gathers up 'runs'
> of identical pixels and plots them all at once. This works fine for
> portrait and landscape images, but for skewed ones has problems due to
> rounding errors. By plotting large runs of pixels at once, we can a) get
> gaps between subsequent rows of masked pixels, and b) get a mismatch
> between the pixels covered by the mask and the image. These manifest
> as holes in the image.
> The image code already has a comment in it to the effect that we cannot
> amalgamate large blocks due to rounding errors.
> This fix therefore extends this policy (of not amalgamating) to skewed
> masked images too.
> 426 non-pdfwrite/pswrite differences expected. 79 pdfwrite. 31 ps2write.
> Checked with bmpcmp and all seem either progressions or neutral.
> gs/base/gximono.c

2011-06-03 19:07:47 +0100
Robin Watts
9c5325b7778074c3add1f682058260d7f8154386

> Add clip_copy_plane device procedure.
> Cut and pasted with obvious changes from clip_copy_mono. Nothing remarkable
> worth mentioning.
> Not used in current code, so CLUSTER_UNTESTED.
> gs/base/gxclip.c
> gs/base/gxclip.h

2011-06-03 17:32:09 +0100
Robin Watts
7c8855aed043415063ad7472eb2af4320d4544eb

> Add rasterop to FEATURE_DEVS in msvc makefile.
> The rasterop module is already added by default under unix, so this moves
> windows into line.
> CLUSTER_UNTESTED
> gs/psi/msvc.mak

2011-06-03 12:29:50 -0400
Alex Cherepanov
636788a8e6d2133a7e3294ee4e1b573c64e1254a

> Bug 691906, Drop symbolic flag with named encodings.
> PDF font descriptor has 3 attributes that affect whether the TT font
> is processed as symbolic one. The spec is not clear what to do when
> the attributes conflict. This revision consigers fonts that have
> /WinAnsiEncoding or /MacRomanEncoding as non-symbolic regardless of
> the flags.
> gs/Resource/Init/pdf_font.ps

2011-06-02 20:49:27 -0700
Michael Vrhel
6558511800f1f467b66e8e220b80ac99d6ee6f69

> Addition of code to parse the file for the source object color description
> The file toolbin/color/src_color/objsrc_profiles_example.txt provides example
> content where we have the key word for the profile, the profile and the rendering
> intent. Next step is to implement the usage of these profiles in the link
> construction.
> gs/base/gscms.h
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/toolbin/color/src_color/objsrc_profiles_example.txt

2011-06-02 12:38:40 +0100
Robin Watts
585cac9d3aa6bca9e877c3e12ef3e28fd4f7f571

> Fix bug 691152; gradients appear 'stepped'.
> The original bug report was that tiffsep and tiff24nc give noticably
> different results. This turns out to be because tiffsep is set to use
> non 'linear-and-separable' colours.
> When shadings are rendered, they are 'decomposed' down into smaller
> and smaller regions, until they are smaller than a given threshold.
> These regions are then filled either with linear filled traps (in the
> linear and separable case) or with constant colour (in the non linear
> and separable case). This means that we can get away with a larger
> threshold in the linear and separable case (tiff24nc) and still see
> smooth results.
> The original version of the code (pre SVN rev 7936) used to decompose
> until the regions were smaller than a pixel. At rev 7936 this was
> upped to be 1 point (1/72 of an inch) (or 1 pixel, whatever was
> larger). Reverting to this original code solves the problem by making
> the constant color regions small enough so that they still look
> smooth.
> There would therefore appear to be several possible approaches to
> solve the problem:
> 1) We could back out the change in 7936. This trades time (27% in the
> worst measured test case) for correctness.
> 2) We could change tiffsep to use linear and separable colours.
> I've opted for an approach based on 1) here, because a bmpcmp clearly
> shows easily visible differences in some files in other devices, for
> example:
> tests_private/comparefiles/470-01.ps.pgmraw.300.0
> By default, the code now operates as pre revision 7936. Should the
> change in speed be considered unacceptable, gs can be build with the
> symbol MAX_SHADING_RESOLUTION defined to maximum dpi to which shadings
> should be decomposed; building with -DMAX_SHADING_RESOLUTION=72 will
> give the same results as the existing code.
> gs/base/gxshade6.c

2011-06-01 11:12:31 -0600
Henry Stiles
4132ef5d36ff63b2b84f9864b7240609ac84ac38

> Enhance autoconf tests for SSE2 and byte swapping support.
> Previously we only checked if the test programs compile, now we check
> if they compile and link.
> configure.ac
> gs/base/configure.ac

2011-06-01 16:22:40 +0100
Robin Watts
f83e6d48c33ff1edd2aecbe4482b8a1374808951

> Tweak jbig2dec os_types.h for android mupdf build.
> If HAVE_STDINT_H is defined we are supposed to be getting our definitions
> from stdint.h. Instead the header defines them anyway. Fix this. This showed
> up when building MuPDF for Android.
> gs/jbig2dec/os_types.h

2011-06-01 09:47:56 -0400
Alex Cherepanov
e895d3aae94fa6ca1c53c4e7a47f5894ee3c5943

> Bug 591335: Get ink names from images.
> Fixes a bug in indexed color space handler that prevented proper
> recursion into the base color space, and add /Image /XObject
> to the list of resources that are searched for separation color names.
> gs/Resource/Init/pdf_main.ps

2011-05-31 23:39:45 -0400
Alex Cherepanov
db4af9eaf902dbac931ca8c88c586df9d160fb72

> Bug 692245: Make pattern handler more robust.
> Make pattern handling code tolerant to pattern streams that leave
> some junk on the operand stack.
> gs/Resource/Init/pdf_draw.ps

2011-05-31 09:23:10 -0700
Michael Vrhel
000e8614d2229335ed269f9ebc9a42e33b035f83

> Fix for issues in the setting of the newer ICC device parameters
> This fixes issues that were introduced when I added the new device
> parameters for rendering intent. Also, this adds in a new structure
> for defining different ICC profiles for the SOURCE colors
> of objects (e.g. text image graphic). This will be set as a user
> parameter and stored in the icc manager. Next step in this is
> to get things initialized and then use the associated profiles.
> gs/Resource/Init/gs_lev2.ps
> gs/base/gscms.h
> gs/base/gsdparam.c
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/psi/zusparam.c

2011-05-31 01:14:21 -0700
Marcos H. Woehrmann
d0055ac144c1f1a51e906976b85e8e2119b5a2db

> Change rsync max-size in clusterpush.pl to 10 megs.
> To prevent accidently transferring large log files to the casper during
> a clusterpush the rsync in that script was limited to 2.5 megs via the
> the --max-size option. However a recently added source file, imdi_k.c,
> is 2.6 megs, so the max-size limit has been increased to 10 megs.
> gs/toolbin/localcluster/clusterpush.pl

2011-05-31 00:19:38 -0400
Alex Cherepanov
16e928c697f4282c830ab57b7e16347b0b5b086f

> Bug 692242, drop outlines without /Title.
> Ignore outlines without a required /Title attribute and
> issue a warning.
> gs/Resource/Init/pdf_main.ps

2011-05-30 20:26:53 +0100
Robin Watts
91b9580bf09b81126d6a99c6fe3e0048972fe3d0

> Fix Bug 692225. Interpolate and Decode don't play nice.
> Bug 692225 gives an example where an Image with both a Decode array
> and interpolation set to true gives bad results.
> The problem was with a branch of the if in image_render_interpolate_icc
> that was assuming that any decode array given was [0 1]. The fix here is
> simply to test for whether need_decode is set.
> No changes seen on clusterpushing.
> Check this with Michael quand il sont retourne.
> gs/base/gxiscale.c

2011-05-30 14:21:02 +0100
Robin Watts
9fd0b414427b58fc79dae23cb11607ea5fcd0890

> Updated gitpush.sh script.
> Fixed script in light of kens experiences. Better error messages, more
> thorough (i.e. any!) checking. Some documentation in the script.
> gs/toolbin/localcluster/gitpush.sh

2011-05-28 18:04:24 +0100
Robin Watts
543fd70fd3b6afc75a767ba1a41663ec3a982866

> Excellently crufty gitpush script to interface with cluster.
> In your local git repo, do the following:
> git remote add regression@ghostscript.com:/home/regression/cluster/gitbridge/ghostpdl
> Ensure that you are setup to be able to ssh into ghostscript.com as the
> regression user.
> Then:
> git config alias.cluster '!gs/toolbin/localcluster/gitpush.sh'
> Then you can:
> git cluster
> in exactly the same way as we used to be able to be able to:
> gs/toolbin/localcluster/clusterpush.pl
> CLUSTER_UNTESTED.
> gs/toolbin/localcluster/gitpush.sh

2011-05-28 08:49:10 +0100
Chris Liddell
94f1a552f75647f142b85e5f30c075c19dde0084

> Bug 692240: Gracefully handle incomplete FontBBox arrays.
> The FAPI code would throw an error if the FontBBox array had fewer
> than four values. We'll now replace the broken array with a valid
> one.
> No cluster differences expected.
> gs/psi/zfapi.c

2011-05-27 10:15:08 -0700
Ray Johnston
20520230859eaa315a52731c1361be650c7e4999

> Bug 692237. Fix memfile_unlink to use %p instead of 0x%0x
> When the change was made (8e0f0dfb Ralph Giles 2008-09-10 21:35:24) the unlink
> was missed. The %p is more portable in that it handles 32 or 64 bit addresses
> as strings. Thanks to Norbert Janssen for finding this.
> gs/base/gxclmem.c

2011-05-27 18:07:10 +0100
Chris Liddell
5974e9171854673d86e0c47a1d1cfef1ff9a5cb1

> Address a compiler warning.
> No cluster differences.
> gs/psi/imain.c

2011-05-27 17:32:36 +0100
Chris Liddell
6a743893666fa2c00244f291b83208e5cb961a27

> Bug 692238: fix a couple of typos in News.htm.
> CLUSTER_UNTESTED
> gs/doc/News.htm

2011-05-27 15:58:28 +0100
Chris Liddell
9a83627c1c0015a446fbf087848e98234a2bdddb

> Bug 692220: have the lib file arrays extend as required.
> Previously we had a hard limit of GS_MAX_LIB_DIRS on the number of entries
> allowed in the lib search path. This change makes GS_MAX_LIB_DIRS the
> default space available, but allows the arrays to extend as required.
> No cluster differences expected.
> gs/psi/imain.c
> gs/psi/imainarg.c

2011-05-27 10:15:37 +0100
Chris Liddell
96da6c46750074869c5bcaeeba7e204d8df83a16

> Have clusterpush.pl check for/use CLUSTER_USER env var.
> For anyone that uses a different local login than their user name
> for the cluster, rather than have to specify the user name on the
> command line every time, you can now set CLUSTER_USER in your
> shell, and clusterpush.pl will use that, before going to check
> USER and USERNAME as before.
> CLUSTER_UNTESTED
> gs/toolbin/localcluster/clusterpush.pl
> gs/toolbin/localcluster/clusterpush.txt

2011-05-26 11:20:10 -0700
Marcos H. Woehrmann
998fc31cc9bd717190b0313eb246c14fe6303602

> Restore Makefile to clusterpush.pl file list.
> Removed Makefile from the list of files excluded from the rsync
> operation in clusterpush.pl since the ghostpdl Makefile is not
> built by a configure/autogen.sh operation.
> gs/toolbin/localcluster/clusterpush.pl

2011-05-26 01:09:55 -0700
Ray Johnston
eb0b920bd993d1b03478c9ba4dfc54e995ec7bac

> Fix minor typo.
> gs/base/gsmchunk.c

2011-05-25 23:47:04 -0600
Henry Stiles
ec6afb99389c13414a43820908e090841b6bcd75

> Fixes Bug 692232 - landscape printed on portrait media.
> Add the ability to pass postscript names on the command line - so now
> AutoRotatePages can be set. The other way of fixing this - specifying
> a different MediaBox would be awkward in the current PCL design.
> pl/plmain.c

2011-05-24 08:08:35 -0700
Ray Johnston
25de59220e9472e6de1acc046c317141a1751770

> Fix for Bug 692217 nested trans_pattern_clist SEGV
> This was caused by a clip device created for tiling a mask with a transparent
> pattern rendered with a clist. The clip device used for rendering did not
> get its color_info updated when its target (pdf14) changed the color_info,
> specifically the depth.
> Fixed by grabbing the target color_info after calling the target's compositor.
> gs/base/gdevnfwd.c

2011-05-25 20:55:29 -0400
Alex Cherepanov
b8a35e6cf6f0394487c9e46d989ea57dd0e4203d

> Bug 692229, rename variables in Luratech license blocks.
> Change variable names in rarely compiled blocks related to Luratech
> license key to match the declarations.
> gs/base/sjpx_luratech.c

2011-05-25 19:55:04 +0000
Robin Watts
1de7e6dcb4a89cfdbc93ef176cee17f2e1b430f3

> Revised clusterpush.pl; msys git operation
> Changes to accomodate clusterpushing from windows msys git shells.
> This relies on various other tools being added to the path. See
> forthcoming email.
> CLUSTER_UNTESTED.
> gs/toolbin/localcluster/clusterpush.pl

2011-05-25 11:11:25 +0000
Robin Watts
177d0f5ef5d3d2f992b10750e072dc91696c92cc

> Update gitsetup.h; remove --local.
> Remove a --local from a command that upsets old versions of git, while
> not making a difference to later versions. Thanks to Ray for pointing this
> out.
> CLUSTER_UNTESTED.
> gs/toolbin/gitsetup.sh

2011-05-25 06:54:07 +0000
Ray Johnston
ebefadf4428a0fd4ca4607221bb59e2e0343b35b

> Fix executable property to +x.
> gs/toolbin/gitsetup.sh

2011-05-24 16:23:32 +0100
Robin Watts
8151aa54b8a71e5c9929bb43390a9be1b4b8d042

> Add gitsetup.sh to gs/toolbin.
> Simple script for doing the 'obvious' configuration to a freshly checked
> out git clone of ghostscript.
> CLUSTER_UNTESTED.
> gs/toolbin/gitsetup.sh

2011-05-24 07:53:59 -0700
Robin Watts
4dc31e78ea0b58973f5a97319eafcbc10e5b9f2b

> Add autoconf check for bswap32/byteswap.h availability.
> As per bug 692211, add some autoconf magic to detect the presence of
> __builtin_bswap32 and/or byteswap.h.
> No expected cluster changes.
> config.mak.in
> configure.ac
> gs/base/Makefile.in
> gs/base/configure.ac
> gs/base/gsropt.h

2011-05-24 12:38:27 +0100
Robin Watts
38720da47205c029d9bee6c3b792791b6f39277d

> mem_mono_copy_mono optimisations.
> Working on Norberts latest test files, I have changed mem_mono_copy_mono
> to only use copy_rop if the runs are large enough for it to get a
> benefit. Currently this threshold is set to 32 pixels (1 word).
> This is sufficiently high that we get 9.01 or better performance on all the
> test files, but might benefit from further tuning later.
> gs/base/gdevm1.c

2011-05-24 08:35:18 +0100
Ken Sharp
b246d9d85c119f101956ba07cf9e1c8b9f510b49

> pdfwrite : set bit 0 of CIDSet.
> Set the CID 0 bit of the CIDSet array, so that this glyph is marked as
> being present, when converting TrueType fonts to CIDFonts for PDF/A
> output.
> CID 0 is required to be present for all CIDFonts, it is the /.notdef
> equivalent.
> gs/base/gdevpdtd.c

2011-05-20 20:45:41 +0100
Robin Watts
99b6056dda5ccf74a270d5ca3dbbe2319dc2c219

> Fix for pdfwritten fts_42xx.xps crashing in transparency stuff.
> See Bug 692219. This may well be patching symptoms rather than correctly
> addressing the problem, but it's low impact, and shouldn't create any new
> problems. We can always back it out after michael has had time to look.
> gs/base/gxblend1.c
> gs/base/gxpcmap.c

2011-05-23 15:42:46 +0100
Robin Watts
86e887eab1634dc9bceec1e1479c11fe03835e96

> mem_mono_strip_copy_rop_dev opts; non-texture 'short' case.
> Attempt to optimise for latest test cases from Norbert.
> Use reverted, and optimised old code for the width < 32 no texture case.
> gs/base/gdevm1.c

2011-05-23 16:41:17 +0100
Ken Sharp
54796e82370348412811db945b95c42953ce0957

> Bug #692202 Bug in display_raster function
> The calculation of bytewidth, the number of bytes required for a row of
> pixels, only worked correctly when the colour depth was a multiple of 8.
> Since the device is a display device, and has since become used as a
> general method for getting data out of GS, this is not reasonable
> (monochrome and greyscale devices are less than 8 bits)
> Modified as suggested by Martin Osieka to round up the calculation.
> gs/base/gdevdsp.c

2011-05-23 08:08:23 +0100
Ken Sharp
7fcb89d46d42eb8806d226d3eb39a64f2ad0fe08

> Squash a very minor compiler warning
> gs/base/gdevpdtt.c

2011-05-22 22:23:49 +0100
Robin Watts
b7d52f725a7c4ef939469f757687a86252fade9c

> Add Memory squeezing functionality to Memento.
> If you build with MEMENTO_HAS_FORK predefined, then in-app memory
> squeezing is enabled.
> export MEMENTO_SQUEEZEAT=1 then run the app, and it will do some magic
> with repeated forks to test the "failure to allocate" paths through the code.
> All the allocation events before the MEMENTO_SQUEEZEATth one will proceed
> as normal. After that, on every allocation, the code will fork. The child
> will proceed with every allocation failing until the program exits
> (hopefully cleanly, but sometimes leaking memory, sometimes dying with a
> SEGV due to failure to cleanup properly). When the child exits, the
> parent carries on execution (until the next allocation, when the same fork
> process happens again).
> CLUSTER_UNTESTED as disabled by default.
> gs/base/memento.c

2011-05-22 08:36:29 -0700
Michael Vrhel
1be218b08069f483ba53eacddc6f7cfbe96957ea

> Fixes in ICC profile handling and device parameters
> This fixes some issues that were encountered when setting ICC
> profiles on the command line. One issue is that the put_profile
> procedure needs to be initialized a bit earlier which required
> a change in gdevprn.h In addition, when the output profile is
> specified to be the CIELAB profile and there is transparency in
> the file there was a rc issue with the profile when going through
> the clist. This also includes code to handle the rendering intent device
> parameters for object types.
> gs/base/gdevp14.c
> gs/base/gdevprn.h
> gs/base/gscdevn.c
> gs/base/gsdparam.c
> gs/base/gsicc_manage.c
> gs/base/gsicc_manage.h
> gs/base/gxclthrd.c

2011-05-22 08:32:34 -0700
Michael Vrhel
185b6f5db3771f6501d55b7b0b6c6ca8663b24c5

> Update of ICC Creator
> Update to ICC creator project to enable the creation of special effect profiles.
> Also addition of profiles to demonstrate object dependent color management.
> gs/toolbin/color/icc_creator/ICC_Creator/ICC_Creator.rc
> gs/toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.cpp
> gs/toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.h
> gs/toolbin/color/icc_creator/ICC_Creator/icc_create.cpp
> gs/toolbin/color/icc_creator/ICC_Creator/icc_create.h
> gs/toolbin/color/icc_creator/ICC_Creator/resource.h
> gs/toolbin/color/icc_creator/effects/black_output.icc
> gs/toolbin/color/icc_creator/effects/c_only.txt
> gs/toolbin/color/icc_creator/effects/cyan_output.icc
> gs/toolbin/color/icc_creator/effects/k_only..txt
> gs/toolbin/color/icc_creator/effects/m_only.txt
> gs/toolbin/color/icc_creator/effects/magenta_output.icc
> gs/toolbin/color/icc_creator/effects/y_only.txt
> gs/toolbin/color/icc_creator/effects/yellow_output.icc

2011-05-22 00:03:57 -0400
Alex Cherepanov
70912a68940b1361e8d33a239a57280eead00bfc

> Fix optional inline image skipping.
> Use newly created function that calculates the number of components
> of a given image and fix calculation of the inline image size that
> is used to skip optional inline images.
> gs/Resource/Init/pdf_draw.ps

2011-05-21 01:15:49 -0400
Alex Cherepanov
3ac9479be8db8eb44f3787d54a171747b61c2b44

> Bug 692213: verify /Default* colorspaces.
> Check that the number of components of /DefaultGray, /DefaultRGB, and
> /DefaultCMYK is correct, and reject inappropriate color spaces.
> Also fix the code that forces update of the color space at the
> beginning of the page when the page defines any of /Defailt* color
> spaces. This hack has been written long ago but it was unreachable.
> gs/Resource/Init/pdf_draw.ps
> gs/Resource/Init/pdf_main.ps

2011-05-20 19:59:16 +0100
Ken Sharp
4c64b898e1dc2b3532e0fe6c18a292fa58843207

> Merge branch 'Type3_PCL'
> gs/base/gdevpdtd.c

2011-05-20 19:43:55 +0100
Ken Sharp
83318bd849910c6c79f0ea5cb11912557ac01307

> Final type 3 font modifications for PCL
> We need to probe the glyph cache in process_text_modify_width as well
> process_text_return_width, this is a possible path through the code,
> depending on the exact combination of text operations.
> Remove debugging code
> Tidy up some declarations and casting of poitners to make compilers
> happy.
> gs/base/gdevpdte.c
> gs/base/gdevpdtt.c
> gs/base/gxccache.c

2011-05-20 12:03:14 +0100
Ken Sharp
96b967aac2176d9cd96167cc1430bb76074d6384

> Add some prints to caching
> Set the FtonMatrix to the identity when making the CTM the identity, so that these don't get applied twice.
> gs/base/gdevpdtt.c
> gs/base/gxccache.c

2011-05-19 13:51:24 +0100
Ken Sharp
0b8df1bfb7f5496ba5b644b21c7586fda6dcdc46

> Add some extra debugging printouts
> Fix log2_scale and depth when creating and testing cache entries in order
> to make sure they are coherent (we don't actually use the entries so the
> values aren't important, as long as they are the same)
> When using PCL bitmap fonts we do want to note glyphs set with setcharwidth
> as cached, as well as those with setcachedevice. (the same is not true
> for PostScript)
> gs/base/gdevpdte.c
> gs/base/gdevpdti.c
> gs/base/gdevpdtt.c

2011-05-17 15:53:56 +0100
Ken Sharp
49921ad78b31af5ab8803d6de886d93106c0db0c

> Add another new font type 'ft_PCL_user_defined' for the PCL bitmap
> font.
> Update various parts of the code to treat the new font the same as a
> PostScript type 3 font.
> In pdfwrite, if we capture a CharpProcs, and its for a PCL bitmap font
> then add a cache entry. We do NOT do this for most other fonts, only
> when rendering a glyph. When assembling text, if the font is a PCL
> bitmap font, tehn after checking to see if we've already used it, check
> to see if there is a cache entry. If the PCL job has reused this character
> code with a different bitmap it will haev flushed the cache entry. If we
> font this has happened then capture the new glyph. NB if we are capturing
> a new definition (font->used[[] is valid) then we know this is a redefinition
> so capture into a different font using the old style 'default' implementation.
> gs/base/gdevpdtd.c
> gs/base/gdevpdte.c
> gs/base/gdevpdtf.c
> gs/base/gdevpdti.c
> gs/base/gdevpdts.c
> gs/base/gdevpdtt.c
> gs/base/gdevpdtw.c
> gs/base/gstext.c
> gs/base/gxchar.c
> gs/base/gxftype.h
> gs/base/gxpaint.c
> pcl/pgfont.c
> pl/plfont.c

2011-05-13 19:57:44 +0100
Ken Sharp
97fbf9fd981cdda1d6db80c2a808e3935b1809f3

> Apparently missed in previous commit. Update so that stick fonts are
> identified as such to pdfwrite.
> gs/base/gdevpdtd.c

2011-05-13 19:53:56 +0100
Ken Sharp
fa801aa476fc200d397f0c72c383462eaad88267

> Add a new font type 'ft_GL2_stick_user_defined' and use it as the FontType
> of the HP/GL2 stick font. Modify code throughout to treat it the same as
> 'ft_user_defined', ie a type 3 font.
> Allow pdfwrite to attach a type 3 'PDF font' to a stick font (normally the
> types are required to be the same).
> Alter the way we calculate the 'default' device matrix during stick font
> accumulation so that we get better stroke widhts.
> Now that we cna identify a stick font, check for anamorphic scaling before
> accumulating the glyphs. If anamorphic scaling, then *don't* treat this as
> a font. THis is because the stroke width will be inconsistent.
> gs/base/gdevpdte.c
> gs/base/gdevpdtf.c
> gs/base/gdevpdti.c
> gs/base/gdevpdts.c
> gs/base/gdevpdtt.c
> gs/base/gdevpdtw.c
> gs/base/gstext.c
> gs/base/gxchar.c
> gs/base/gxftype.h
> gs/base/gxpaint.c

2011-05-12 16:04:17 +0100
Ken Sharp
6a1c8f107029e92509dfbcaf4aaf1d691d27abe5

Alter the way we handle missing glyph names, use the saem code as for
composite fonts.
Don't assume the CharProc matrix will be upright when creating the dummy
'initial' matrix, copy and scale all the values.
gs/base/gdevpdtt.c

2011-05-11 15:46:23 +0100
Ken Sharp
d2ce995693b6c279ea207081728f6906a02e718a

More type 3 font madness
Use the device level 'PS_accumulator' flag in various places instead of
the more kludgy test against penuym->pte_default being NULL.
If we don't get a glyph name back from the interpreter (PCL) then invent
one instead of giving up with an error.
If we are not a type 3 accumulator, then don't undo the factor of 100
scaling applied to the device width and height, we only do that for PS.
Add a routine to return a special 'initial' matrix during the course of
type 3 accumulation. The PCL stick font uses this to set the line width
and we need to account for various PS/PDF scaling which will otherwise
be ignored.
Make sure we don't try and accumulate a charproc when its being run for a
charpath operation.
gs/base/gdevpdfb.h
gs/base/gdevpdfx.h
gs/base/gdevpdtt.c

2011-05-06 15:35:13 +0100
Ken Sharp
bc6a5bdd6329a0027d0c162e29eda277f85c2a8a

Type PCL fonts again.
Put back the matrix scaling in pdf_text_set_cache, even though the matrix
shoudl always be the identity here when running PCL. Best to be safe.
set_charproc_attrs emitted a 'd1' setcachedevice, but didn't check if
the glyph was flipped. For PCL this led to ury being less than lly, and
so the glyph was elided. Added check to make sure these are correct. This
required removal of 'const' from an arry as well.
gs/base/gdevpdfx.h
gs/base/gdevpdti.c
gs/base/gdevpdtt.c

2011-05-06 15:06:22 +0100
Ken Sharp
8730b9f1c3c1977805a9f0ad830b0268170343c4

More type 3 changes
Don't scale the CTM by 100 (done for FreeType) when handling PCL fonts
in install_charproc_accum, set the boolean to complete_charproc_accum so
that we don't 'undo' the factor of 100 scaling when the font is PCL.
Add code to set_charproc_attrs to determine whether this is a 'scale 100'
(ie PostScript) type 3 font or not, if its not then don't undo the scaling
by 100 of the CTM.
When accumulating a chraproc, before setting the CTM to identity matrix
also set the current point to 0,0, which ensures that that the current point
doesn't get baked into the character description. Also invalidate the
'char_tm' txy_fixed_valid member of the graphics state, this will force
a recalculation of char_tm using the new identity matrix.
gs/base/gdevpdfx.h
gs/base/gdevpdti.c
gs/base/gdevpdtt.c

2011-05-06 12:29:38 +0100
Ken Sharp
1b7695b7f2fe4dac0e228294b944b667e617e822

More PCL type 3 improvements
Add code to initialise the returned character code, so that the charproc
is assigned the correct character code. Further test for PCL fonts in
pdf_text_set_cache and don't try to use a show enumerator to get the
'output_char_code' when we are doing PCL, instead use the one from the
text enumerator 'returned' structure. Normally this would not be valid
yet as this is filled in after we've completed the 'show', but we
set this before startig the show, from the text string, so that it will be
valid.
gs/base/gdevpdtt.c

2011-05-06 11:49:19 +0100
Ken Sharp
3791899545ad61db983158e468d29de85153f94a

More type 3 PCL fonts
Attempt to get gsave/grestore counting correct by addig requied gs_gsave.
Add code to invalidate the char_ctm as we have altered the CTM to identity
for capture, and don't want to use the char_ctm (values are restored later).
gs/base/gdevpdtt.c

2011-05-05 15:26:17 +0100
Ken Sharp
1ccea133c3b21570c6400337dbe260791da8807d

Add in basic handling for PCL type 3 fonts. Now setss up the accumulator
patches the enumerator procs so that the pdfwrite set_cache is used when
setcachedevice is issued.
Text matrices are wrong in many places leading to empty output.
gs/base/gdevpdtt.c

2011-05-05 14:50:33 +0100
Ken Sharp
fa5cce2824ade8c280adf370686e20e661d0c3e3

Add handler for PCL type 3 fonts. For now this throws an error, just while
I make sure it doesn't break any PS/PDF files.
gs/base/gdevpdtt.c

2011-05-05 13:15:19 +0100
Ken Sharp
f5cc30c83a05acacfd9c2e18b72e7e716c38d024

File missed in previous commit
gs/base/gdevpdtt.c

2011-05-05 13:13:27 +0100
Ken Sharp
7838510e494245cc5e5349f2ea0d5ff9028c96d0

Add better PCL type 3 font handling, step 1
First, break all the code for starting and stopping accumulators
into procedures, because the existing code is too hard to read.
gs/base/gdevpdfb.c
gs/base/gdevpdfb.h
gs/base/gdevpdfx.h
gs/base/gdevpdti.c
gs/base/gdevpdtt.h

2011-04-29 16:42:30 +0100
Ken Sharp
947e90ad0229b6333d6eb61e7f54ac33b200ab28

initial changes for capturing PCL type 3 fonts in pdfwrite
Seems to be OK now with PS/PCL, does not crash any longer with PCL, but capture is incorrect.
gs/base/gdevpdfb.c
gs/base/gdevpdfb.h
gs/base/gdevpdfx.h
gs/base/gdevpdti.c
gs/base/gdevpdtt.c
gs/base/gdevpdtt.h

2011-05-20 18:22:37 +0100
Chris Liddell
1ab5da13a846b9fde15c2863b6b75ae5b28d22d8

Bug 692218: Incorrect CIDtoGIDMap length causing crash.
In pdfwrite's pdf_convert_truetype_font_descriptor() function,
the lengths of both the CIDtoGIDMap and the CIDSet were being set
to the number of in use CID's in the font, whereas they need to
be, and were being filled, as being LastChar + 1 entries long.
As well as memory corruption, the contents would have been wrong,
too.
No cluster differences expected.
gs/base/gdevpdtd.c

2011-05-20 12:46:09 +0000
Robin Watts
0805588e9bcaec02b4eef4582db6ab23ae8ea1b1

Fix Bug 692216. Remove zero height traps from shadings.
The simplified file in Bug 692216 shows a division by zero error when
filling a trapezoid with zero height. The fix is simply to update
the code not to draw zero height traps.
This should be safe as any fill adjustment is done well before this point.
The cluster shows just one difference. Looking at it in a bmpcmp it does
look suspicious, but it's not clear whether it's a progression or a
regression. Ken informs me he's seen the same differences before with
unrelated changes, so perhaps it's an indeterminism.
The code seems more sensible this way round anyway.
gs/base/gxshade6.c

2011-05-20 07:58:28 +0100
Chris Liddell
c6341648ed83b1a3dde948bdf8bcf54a2f275fe5

Reinstate x11alpha as the default device on Unix.
With the recent revisions to make transparency play nicely
with anti-aliased output, should now be safe to use as the
default device.
CLUSTER_UNTESTED
gs/base/Makefile.in

2011-05-19 14:55:52 -0600
Henry Stiles
9de72911de76b582f028c70564b1539f913b517c

Make directories silently.
The previous mkdir incantantation had unwanted warning messages if the
directory already existed. Thanks to Norbert Janssen for the patch.
CLUSTER_UNTESTED
common/msvc_top.mak

2011-05-18 19:04:26 -0600
Henry Stiles
413e6e5a1c7ccc3d86678a54e93130ca182f9e98

Simplify the svg device state.
Represent colors directly with color indices not strings.
This will address bug 691886 indirectly but wasn't the motivation
for changing the state value types.
gs/base/gdevsvg.c

2011-05-16 13:28:46 -0600
Henry Stiles
86da13321eaa87a01b804af3619d30f8a7263f5e

Decrease debugging verbosity.
Change default printing to be conditonal on high level device
debug flag '_'.
gs/base/gdevsvg.c

2011-05-19 18:32:07 +0100
Chris Liddell
4812b7189345fa94075445d8e8d5eef7eb04cdab

Explicitly disable libtiff's jbig code.
Add the --disable-jbig option to both Ghostscript and GhostPDL's
calls to the libtiff configure script, otherwise, if the build
system has libjbig installed, libtiff's jbig code is enabled,
and we don't want/need it.
Bug 692214.
Makefile
gs/base/configure.ac

2011-05-19 16:58:33 +0000
Robin Watts
8f4b7b96b14df2bef1564e00c72f087f72bb8f56

More Memento tweaks. Thanks to Dave Thomas.
Remove unused variables/unneeded inits.
CLUSTER_UNTESTED.
gs/base/memento.c

2011-05-19 15:26:05 +0000
Robin Watts
b35b5d610738a521cfe6374965a8f6c4d6b5d477

Correct memset prototype in memento.c. D'Oh.
CLUSTER_UNTESTED.
gs/base/memento.c

2011-05-19 15:34:31 +0100
Robin Watts
44e59fd123729ba05f8728f01d13406d3e283855

Merge branch 'patt_trans_clist'

2011-05-19 15:01:14 +0100
Robin Watts
3bf453e7987830459ca677c8fa1b93fbd6c4a7e3

Fix for icc profile refcounting.
Take new reference before discarding old one, lest we throw away the
last reference and then can't pick it up again.
This solves the SEGV with:
gs\debugbin\gswin32c.exe -sDEVICE=ppmraw -o out.ppm
-r300 ..\ghostpcl\tests_private\comparefiles\Bug689690.pdf
No cluster differences expected.
gs/base/gdevp14.c

2011-05-19 13:35:37 +0100
Robin Watts
bc9e69257a1605d67aca0cd121e167d7e0ae22be

Merge branch 'master' into patt_trans_clist
I expect this to leave me with all files working except for Bug689690.pdf
which has profile reference counting problems introduced from the trunk.
For example:
gs\debugbin\gswin32c.exe -sDEVICE=ppmraw -o out.ppm
-r300 ..\ghostpcl\tests_private\comparefiles\Bug689690.pdf
gs/base/gdevp14.c
gs/base/gsicc_manage.c
gs/base/gxclrast.c

2011-05-18 15:57:45 +0000
Robin Watts
5cff633dff1b8b91afb97925f8a4f7781db5a9b2

Fix SEGV in tile_rect_trans_simple.
If the left hand copy region started to the right of the subtile that was
actually populated, we would attempt a copy with a negative length. Simple
fix is to check for this case.
This should resolve the 5 xps SEGVs.
gs/base/gxp1fill.c

2011-05-17 23:37:56 +0000
Robin Watts
128650aac51fcf723428b8a902c4e3af7d1d058f

Fix SEGV in Bug691538.pdf.
Local testing with:
gs -dNOGC -Z@? -r300 -sDEVICE=pbmraw -dMaxBitmap=30000000 -o nul: ..\ghostpcl\tests_private\comparefiles\Bug691538.pdf
shows a SEGV on windows with a debug build. Removing the reference
decrement solves it and doesn't show any leaks.
Oddly the cluster doesn't show the SEGV any more, but it did previously.
gs/base/gxpcmap.c

2011-05-17 18:13:17 +0100
Robin Watts
6780bf7996f1d5a0be5b0dc55e89ea48bf89980e

Memento realloc fix.
Memento was filling the 'new' section of realloced blocks incorrectly,
resulting in memory overwrites.
gs/base/memento.c

2011-05-17 15:53:01 +0100
Robin Watts
ce8bddd7cef1f9e0d2c2ae28b82d513a6cfa9dce

Merge branch 'master' into patt_trans_clist
gs/base/gdevnfwd.c
gs/base/gdevp14.c
gs/base/gsicc.c
gs/base/gsicc_manage.c
gs/base/gstrans.c
gs/base/gxclrast.c
gs/base/gxdevice.h
gs/ghostscript.vcproj

2011-05-17 15:42:11 +0100
Robin Watts
1b7bf4222988019f17a454ce7a6b841d586c3d4d

Comment and error code handling tweaks to gdevp14.c
Correct a typo, update a comment, and avoid a SEGV in the case where
an allocation of an iccsmask fails.
No cluster differences expected.
gs/base/gdevp14.c

2011-05-17 15:38:38 +0100
Robin Watts
6283d613595f2c42a461d2cb8cfddb2e0a6fc168

Tiny tweak to leaks.tcl
Tweak leaks.tcl so it doesn't think the file is empty if 'memory allocated'
is on the first line of the log.
CLUSTER_UNTESTED.
gs/toolbin/leaks.tcl

2011-05-17 15:23:24 +0100
Robin Watts
4ec504eeddfd5e17ca5f1b4e58090fb0c1b15201

Rework colorspace ref counting of cmm_icc_profile_data.
Previously the code seemed to be trying to take one reference to
cmm_icc_profile_data for every reference taken to the colorspace. We rework
this here to only take a single reference to cmm_icc_profile_data for each
colorspace. This solves at least one SEGV.
gs/base/gscdevn.c
gs/base/gscscie.c
gs/base/gscspace.c
gs/base/gsicc.c
gs/base/gsicc_manage.c
gs/base/gxipixel.c
gs/base/gxshade.c
gs/psi/zicc.c

2011-05-12 17:49:46 +0100
Robin Watts
a0ac4ac2082132905463703ddd8b6db6fd95e4fb

Squash another warning; gdevp14.c.
Remove an unused variable definition (that is shadowed later on).
CLUSTER_UNTESTED.
gs/base/gdevp14.c

2011-05-12 17:41:17 +0100
Robin Watts
d40646d2f1c48c174fad480c03309707b16659c7

Squash warning.
Remove unused variable, left over from merge.
CLUSTER_UNTESTED
gs/base/gdevnfwd.c

2011-05-12 17:01:59 +0100
Robin Watts
6d910ef6207e3704f1050cd46c481ac81b681261

Fix SEGVs seen due to icc profile data being freed.
If we swap the ICC profile data for a colorspace due to starting/stopping
use of an smask, we must also adjust the reference counts. Hopefully this
will solve all the SEGVs we see. It does solve at least one.
gs/base/gdevp14.c

2011-05-12 15:26:56 +0100
Robin Watts
4d9eb7298700e0b4c484f164805d556c03c22b24

Merge branch 'master' into patt_trans_clist
Conflicts:
gs/base/gdevnfwd.c
gs/base/gxdevice.h
gs/toolbin/bmpcmp.c
All trivially resolved except for gdevnfwd.c where I backed out one of the
fixes from 8ae4342 on instruction from Michael.
gs/base/gdevnfwd.c
gs/base/gdevp14.c
gs/base/gsicc.c
gs/base/gstrans.c
gs/base/gxclip.c
gs/base/gxdevice.h
gs/base/gxpcmap.c

2011-05-04 20:00:50 +0100
Robin Watts
9d8dc0278374c7c5bb4868a1ed356b8b5f8ece8a

Whitespace fixes + Return from gx_forward_create_compositor.
Fix up some stray trailing whitespace.
Also, gx_forward_create_compositor was neglecting to return a value.
gs/base/gdevnfwd.c
gs/base/gdevp14.c

2011-05-03 20:36:49 -0700
Michael Vrhel
8ae4342084cbfc46782ca3fc23b4965f910f3c51

Fixes for 2 issues. If a clip device is inserted in front of a pdf14 compositor, the ICC profile of the clip device needs to be updated if the compositor action results in a device profile change. Also fix so that when the soft mask ICC profiles are swapped in or out the graphic state ICC profiles are also updated.
gs/base/gdevnfwd.c
gs/base/gdevp14.c

2011-05-03 17:30:58 +0100
Robin Watts
e0e5e5c874d7546805558a00bec9c54ebd0770e5

Backout strokeafterfill stuff, as it proved unnecessary.
Remove commit eaae298 as it turns out not to be required.
gs/base/gspaint.c
gs/base/gspath.h
gs/base/gxistate.h
gs/psi/zpaint.c

2011-05-02 19:39:22 +0000
Robin Watts
04eef3817a5a6d3fee054338629b1e50eaa4ee0f

Merge branch 'master' into patt_trans_clist

2011-05-02 19:28:39 +0000
Robin Watts
df2175e571369df32fc66e375357bc69976c5fed

Put back default map_rgb_color forwarding.
At some point around the creation of this branch (which corresponded to our
move from SVN to git) we lost a line in gdevnfwd.c that sets up a default
forwarding for map_rgb_color. We don't know why it went, so we're putting it
back in. This probably hasn't caused any problems as it's a deprecated
function now.
gs/base/gdevnfwd.c

2011-05-02 20:02:59 +0100
Robin Watts
8eed15b976995b889a2498b064b53397a7d164a1

Add gxdevsop.h to VS solution.
Don't know why this wasn't in before...
CLUSTER_UNTESTED.
gs/ghostscript.vcproj

2011-05-02 19:50:04 +0100
Robin Watts
8d52d58da97faadd2dcd009f9a5381e87182789d

Pacify valgrind (and improve performance?) with tiny change.
A tiny change to gxclrast.c where we initialise state_tile.size.{x,y}.
This stops valgrind giving warnings. While the code works OK without
this (I believe), it can cause various %, /, gcd operations. These are
all expensive operations and are neatly sidestepped by the simple
expedient of setting the variable to 0 to start with.
gs/base/gxclrast.c

2011-05-02 18:32:06 +0000
Robin Watts
4cd416d1e5f46c01ce9827b803035a939872e7f7

Fix clipping problems with composited pattern clists.
When using a clist to fill a clipped area with a pattern, the current
code can drop the clipping device out of the chain. This change solves that
problem.
When we create a new compositor, we generally want that compositor to become
the top device in the chain, so all new drawing commands go to it. In the
pattern clist case however, we don't create a new compositor - we reuse an
existing one. It's important in this case *not* to take this as our new
target, otherwise the higher devices in the chain (such as the clipper
device) are lost.
This was shown when rendering pattrans_big.pdf at 300dpi banded to the pkm
device.
gs/base/gxclrast.c

2011-05-02 11:21:50 -0700
Michael Vrhel
1d33714d197a3335ad34d21e70fc767cf42b369d

Fix for typo in pointer name during initialization of shape buffer during transparency pattern filling.
gs/base/gxp1fill.c

2011-05-02 18:53:00 +0100
Robin Watts
600aa9cc10d4439823de265d2805617154294ee7

Quiet valgrind warning, and remove misleading init.
When run with valgrind on:
gs -sDEVICE=pbmraw -r300 -dMaxBitmap=100000000 -o out.pbm Bug690189c.pdf
Valgrind complains that params.GrayBackground is used without being
initialised. We fix this here by amending gs_trans_mask_params_init.
In so doing, we note that in zbegintransparencymaskgroup we were setting
params.ColorSpace, only to call gs_trans_mask_params_init and have it
overwrite it. To avoid confusion we therefore remove this needless init.
No cluster differences seen in testing.
gs/base/gstrans.c
gs/psi/ztrans.c

2011-05-02 14:51:26 +0100
Robin Watts
1dbe20d53a4443a70692e9b7807cfb8a158229d0

Add support for cups (1bpp) files to bmpcmp.
gs/toolbin/bmpcmp.c

2011-04-30 17:55:42 +0100
Robin Watts
eaae298fcfe31efda0166786c5624ef8fefd0e12

Add new .strokeafterfill ps operator/graphics state bit.
We add a new .strokeafterfill ps operator that takes a bool, and sets it in
the graphics state. The intention is that this will allow us to spot the
case where we are executing the stroke part of a combined 'fill and stroke'
operation (as required by pdf). This should allow us to solve the
remaining problems with the pdf14/knockout group.
No cluster differences expected.
gs/base/gspaint.c
gs/base/gspath.h
gs/base/gxistate.h
gs/psi/zpaint.c

2011-04-29 19:41:50 +0100
Robin Watts
96339fd0f400d7c0534a8ff73c355787d7773297

Correct typo in comment. CLUSTER_UNTESTED.
gs/base/gxfillsl.h

2011-04-29 19:39:27 +0100
Robin Watts
6ac5520977be5b3ee198c155ef395c6406962db4

Whitespace fixes.
gs/base/gdevp14.c
gs/base/gsicc.c

2011-04-27 22:41:28 -0700
Michael Vrhel
c9de3e70e4027fb86dde6079a48b29cfd6825c72

Revert "MSVC changes plus gitignore for patt_trans_clist"
This reverts commit 01c9c2bd3dbd8be851b2e8dde68885413807e704.
.gitignore
gs/ghostscript.vcproj
win32/GhostPDL.sln
win32/GhostPDL.suo
win32/language_switch.vcproj
win32/language_switch.vcproj.michaelv-PC.michaelv.user
win32/pcl.vcproj
win32/pcl.vcproj.michaelv-PC.michaelv.user
win32/svg.vcproj
win32/svg.vcproj.michaelv-PC.michaelv.user
win32/xps.vcproj
win32/xps.vcproj.michaelv-PC.michaelv.user

2011-04-27 22:27:39 -0700
Michael Vrhel
4b191e99538574a67178a8a4df0e19f380d47403

Fix for reference counting issue of the compositor device at
the end of the clist playback. In most cases, the compositor rc
should be 1 at this point and so the device is closed and then
freed. The case, when it is not 1 is when we have a pattern
that has a transparency and is stored in a clist. In this case
the target for the pattern clist device is the main pdf14 device and
we increment the rc during this assignment. So, when the
playback completes, the rc of the compositor is 2. We do not
want to close and free the compositor, since it is part of the
main clist that we have going on. Instead we only want to
decrement the rc. The test file pattrans_big.pdf is now
handled correctly but has a rendering/tiling issue it appears.
gs/base/gxclrast.c

2011-04-27 22:20:56 -0700
Michael Vrhel
01c9c2bd3dbd8be851b2e8dde68885413807e704

MSVC changes plus gitignore for patt_trans_clist
.gitignore
gs/ghostscript.vcproj
win32/GhostPDL.sln
win32/GhostPDL.suo
win32/language_switch.vcproj
win32/language_switch.vcproj.michaelv-PC.michaelv.user
win32/pcl.vcproj
win32/pcl.vcproj.michaelv-PC.michaelv.user
win32/svg.vcproj
win32/svg.vcproj.michaelv-PC.michaelv.user
win32/xps.vcproj
win32/xps.vcproj.michaelv-PC.michaelv.user

2011-04-27 18:43:52 +0000
Robin Watts
82437e248e95c3e9830720feaf5030d37950b091

Whitespace fixups.
gs/base/gxpcmap.c

2011-04-27 18:42:10 +0000
Robin Watts
bdbb2b5da2ad758d07dfefc84b2a53c00ba091d4

Revert SVN commit 12934, ref count checking before free in gxclrast.c
A couple of weeks ago, I applied a wild stab in the dark to solve a problem
that I cannot now locate. Having discussed it with Michael it seems that this
was (at best) just masking another problem (the incorrect ref count
initialisation of compositors). This has been fixed, so my faulty attempt
can be backed out.
We leave a debug only check in there to catch this situation. This should be
replaced by an assert when we have such things.
gs/base/gxclrast.c

2011-04-27 15:25:22 +0100
Robin Watts
bdfb4cf85e6c7d78dbeecfb8c6dd06c1eed14714

Fix overflow in pattern tile size estimation code.
gs/base/gxpcmap.c

2011-04-27 10:46:22 +0000
Robin Watts
1540df197675f2935c6d743927ad25df0396dfff

Merge branch 'master' into patt_trans_clist
gs/base/gstrans.c

2011-04-26 13:23:00 -0700
Michael Vrhel
212d2dba16a53088ba6de69266603db847069ec7

Check to make sure an empty deviceN params member does not lead to an improper path during the device creation.
gs/base/gdevp14.c

2011-04-26 19:40:25 +0100
Robin Watts
696ee8153b72d20484e66f5da43b6ee6027fddc4

Remove partial merge left over from svn conversion.
gs/base/gsptype1.c

2011-02-09 21:38:24 +0000
mvrhel
ebf1da59669bb51701c3df9747ebe3f4fe9f6b26

Work on the pattern transparency clist code.
A squashed and rebased patch based on the following svn commits.
Author: robin
Date: Tue Apr 19 12:40:00 2011 +0000
Various fixes to the transparency clist branch to correctly use
just the subrectangle of transparency tiles that is actually present.
Getting this in before the Great Git Change this afternoon.
git-svn-id: http://svn.ghostscript.com/ghostscript/branches/patt_trans_clist_gs@12407 a1074d23-0009-0410-80fe-cf8c14f379e6
Author: ray
Date: Fri Apr 8 16:56:48 2011 +0000
A couple of minor fixes that help things along, get past compile errors.
git-svn-id: http://svn.ghostscript.com/ghostscript/branches/patt_trans_clist_gs@12379 a1074d23-0009-0410-80fe-cf8c14f379e6
Author: mvrhel
Date: Wed Feb 9 21:38:24 2011 +0000
Initial commit of work so far on getting the pattern transparency
clist code working. Much of this comes from work that Ray and I did
for customer 532. The remaining portion of the work is primarily
in pdf14_tile_pattern_fill in gdevp14.c, where we need to make
sure that the group that we are going to push is the intersection
with the rect from trans pattern since we only use the part that we
drew into in the pattern creation and not the whole group buffer. I
had not worked on this in a few weeks so I don't have more details
right now. I will spend a day on it this week to see exactly what
remains to be done.
git-svn-id: http://svn.ghostscript.com/ghostscript/branches/patt_trans_clist_gs@12137 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevnfwd.c
gs/base/gdevp14.c
gs/base/gdevp14.h
gs/base/gsptype1.c
gs/base/gsptype1.h
gs/base/gstrans.c
gs/base/gstrans.h
gs/base/gxclip.c
gs/base/gxdevice.h
gs/base/gxp1fill.c
gs/base/gxpcmap.c
gs/base/gxpcolor.h
gs/psi/zpcolor.c
gs/psi/ztrans.c
svg/svgdoc.c
xps/xpspage.c

2011-05-19 15:27:07 +0100
Robin Watts
e60ed1f615f7347dc9318b2c8e17851fb3a6199a

Address bug 692211; byteswap.h not present on FreeBSD.
After googling it seems like the correct thing to do is to use gcc builtin
intrinsics for byteswapping from 4.3 upwards, and to use byteswap.h
for all other versions of gcc >= 2.0. This should address the problem.
gs/base/gsropt.h

2011-05-19 12:28:06 +0000
Robin Watts
f66aa4e491ecff0a5787c4f4a8c8ace1cb7d3432

Minor tweaks to memento.
Improve debugging output, documentation. Fix the time at which the sequence
counter is incremented to give less confusing messages. Add Memento_inited
function to breakpoint on.
Not enabled in cluster so, CLUSTER_UNTESTED.
gs/base/lib.mak
gs/base/memento.c
gs/base/memento.h

2011-05-18 12:28:05 -0600
Henry Stiles
ef883a068ea54fca1569e5389f7ccfa6aa01e6a8

Merge branch 'pcl_documentation'

2011-05-14 15:15:32 -0600
Henry Stiles
21503ee8197c9707f8ced1c92593c4e279687ee2

Long overdue update of the PCL documentation.
doc/ghostpdl.pdf
doc/ghostpdl.tex
doc/ghostpdl.txt

2011-05-18 17:48:10 +0100
Robin Watts
62b57818e9117c1ebfe32894464ab12956826f7d

Workaround SEGV in clist with fillpage (Bug 692076).
This is a simple patch for the symptoms, not a proper cure, but it suffices
to get it out of regression test error lists.
gs/base/gxclrast.c

2011-05-18 15:05:28 +0100
Chris Liddell
1a7d4d447c2fc05240ab258f4eb232080fd1fb5f

Revise 64 bit build options for VS2010.
Mainly, there was come confusion between the WIN64 setting
for the type of build, and the BUILD_SYSTEM setting for
whether the system is 32 or 64 bit.
NOTE: 64 bit builds on 32 bit systems do not work, and
I do not intend to attempt to make them work.
Bug 692126
CLUSTER_UNTESTED
gs/psi/msvc.mak

2011-05-18 08:21:21 +0100
Chris Liddell
f9cf64f56577b593f424c7d661b5fb8ea7a53216

Reinstate the Mememto build rules.....
....that went AWOL with commit 447c1a791d28fb72b196f75356bc411ef45afbdd
No cluster differences expected.
gs/base/lib.mak

2011-05-17 23:43:14 -0700
Michael Vrhel
447c1a791d28fb72b196f75356bc411ef45afbdd

Fix for MT crashes in lcms
It turns out that lcms is can not safely share
profiles between threads when creating links. This
was fixed by placing a mutex lock around the profile
creation. It also turns out that lcms can not
use the same link to do transformations between threads.
This was solved by disabling the shared cache between
the threads. Finally there was a race condition in
reference counting the device ICC profile in the pdf14
device. Also, this commit includes a fix for a memory
leak in the pdf_mask object in gdevp14.
gs/base/gdevp14.c
gs/base/gscms.h
gs/base/gsicc_cache.c
gs/base/gsicc_lcms.c
gs/base/gsicc_manage.c
gs/base/gxcldev.h
gs/base/gxclthrd.c
gs/base/lib.mak

2011-05-17 22:33:15 +0100
Robin Watts
8d9bc767c0c59a7effa7652cbcbde14ab82de249

Make Memento work with valgrind, plus fix unix build issues.
Various fixes for Memento, most especially to ensure it works with
Valgrind (lots of valgrind calls to make memory readable/hide it again).
No cluster differences expected.
gs/base/lib.mak
gs/base/memento.c
gs/base/memento.h
gs/base/unix-aux.mak

2011-05-17 15:29:53 -0400
Alex Cherepanov
cbe9dcfc93812aae26ffd5c2bebbe5b2dc1a4623

Bug 692209: tolerate missing /Length in PDF stream.
Add branches that deal with a missing /Length attribute in the
PDF string directory. The sample file misspells /Length as /Lenght
but the patch addresses a more general problem.
gs/Resource/Init/pdf_base.ps

2011-05-17 11:28:50 -0700
Ray Johnston
784c8aa262a2a71659ce2d882c424e0254368a10

Fix ref counting for icc_array
Copy the icc_array BEFORE putdeviceparams so we don't end up creating extra ones, and bump the shared icc_array.
The finalize when the device is freed will decrement the ref count.
gs/base/gxclthrd.c

2011-05-17 18:13:17 +0100
Robin Watts
bc9c681b53babcab8d5e6bd102bfb0c51b8b7ed1

Memento realloc fix.
Memento was filling the 'new' section of realloced blocks incorrectly,
resulting in memory overwrites.
CLUSTER_UNTESTED as Memento is not enabled by default.
gs/base/memento.c

2011-05-17 12:03:33 +0000
Robin Watts
2b7e6a4174a58cf0c395e4950a428a722607f860

Initial commit of new Memento module (attempt #2)
Memento is a simple memory checking module; it helps to track memory
corruption and leaks. To use it, build with -DMEMENTO.
Still to do: Valgrind integration.
No cluster differences expected.
gs/base/lib.mak
gs/base/malloc_.h
gs/base/memento.c
gs/base/memento.h

2011-05-15 15:50:40 -0700
Michael Vrhel
1787ce3393956701e6241b8efc6f575887c3f5c1

Change in device ICC profile handling
This is the major portion of the code needed to achieve object dependent
color management. This fixes the problems that existed in the
previous code with the device parameters and introduces an array of
ICC profiles in the device structure. The code was cluster pushed and
showed some very minor differences in a couple files but they appear to be
OK with bmpcmp. I still need to do further testing to verify that all the
functionality is correct (e.g. make sure setting the text profile properly
affects the text only). In addition, the rendering intent options need to be
implemented.
I also need to check that nothing was broken with respect to MT
rendering and some of the devices that are not tested with cluster
pushing (e.g. the display device and the x11alpha device).
gs/base/devs.mak
gs/base/gdevbit.c
gs/base/gdevnfwd.c
gs/base/gdevp14.c
gs/base/gdevpdf.c
gs/base/gdevpdfk.c
gs/base/gdevpng.c
gs/base/gdevpsdi.c
gs/base/gdevtfnx.c
gs/base/gdevtsep.c
gs/base/gdevxini.c
gs/base/gscms.h
gs/base/gscsepr.c
gs/base/gsdevice.c
gs/base/gsdparam.c
gs/base/gsequivc.c
gs/base/gsicc.c
gs/base/gsicc_cache.c
gs/base/gsicc_manage.c
gs/base/gsicc_manage.h
gs/base/gstrans.c
gs/base/gxclrast.c
gs/base/gxclthrd.c
gs/base/gxcmap.c
gs/base/gxdevcli.h
gs/base/gxdevice.h
gs/base/gxi12bit.c
gs/base/gxicolor.c
gs/base/gximag3x.c
gs/base/gximono.c
gs/base/gxiscale.c
gs/base/lib.mak
gs/psi/zdevice.c
gs/psi/zusparam.c
pcl/pctop.c
psi/psi.mak
psi/psitop.c
pxl/pxpthr.c
pxl/pxtop.c
svg/svgtop.c
xps/xpstop.c

2011-05-13 10:52:18 -0700
Marcos H. Woehrmann
c622f66846aa6b8124b1dffed7dbdaedabedd93f

Modified clusterpush.pl to not rsync Makefiles
Modified clusterpush.pl to not rsync Makefiles and config.log files.
Also removed the various files that have been moved to the cluster.git
repository.
No expected cluster differences.
gs/toolbin/localcluster/bmps2html.pl
gs/toolbin/localcluster/build.pl
gs/toolbin/localcluster/cachearchive.pl
gs/toolbin/localcluster/checkSize.pl
gs/toolbin/localcluster/clustermaster.pl
gs/toolbin/localcluster/clustermonitor.cgi
gs/toolbin/localcluster/clustermonitor.pl
gs/toolbin/localcluster/clusterpull.sh
gs/toolbin/localcluster/clusterpush.pl
gs/toolbin/localcluster/compare.pl
gs/toolbin/localcluster/comparerevs.pl
gs/toolbin/localcluster/dashboard.html
gs/toolbin/localcluster/nightly.pl
gs/toolbin/localcluster/pngs2html.pl
gs/toolbin/localcluster/readlog.pl
gs/toolbin/localcluster/readme
gs/toolbin/localcluster/run.pl
gs/toolbin/localcluster/setupcluster
gs/toolbin/localcluster/weekly.sh

2011-05-13 09:42:41 -0700
Marcos H. Woehrmann
7dcc68ce753175a9c686021d53a061253e2787c3

Modified math_.h to use our hypot().
The system hypot() function gives slightly different results on Linux vs
Mac OS X systems for same input values. This minor difference results
in rendering variations in some files, confounding the regression
test system.
This revision changes math_.h to use our hypot() in all cases instead
of the system one (previously our function was used on those platforms
where there was no system hypot() function).
Testing by Robin shows that our function is faster than the system one,
so another reason to make this change.
Fixes Bug 692197.
Cluster differences on some nodes expected in:
tests_private__pcl__pcl5ccet__28-10.BIN ppmraw
tests_private__pcl__pcl5ccet__32-01.BIN pbmraw
tests_private__pcl__pcl5cfts__fts.2210a pbmraw
tests_private__pcl__pcl5efts__fts.1810 ppmraw
tests_private__pcl__pcl5efts__fts.2132 pbmraw
tests_private__pcl__pcl5efts__fts.2291 pbmraw
tests_private__pcl__pcl5efts__fts.2350 pbmraw
gs/base/math_.h

2011-05-13 09:33:29 +0000
Robin Watts
4bd5322f27e9b95716323bdd000e312418a59676

Further tweak to lcms cached transforms.
Use int comparisons rather than memcmp. No differences shown in cluster
testing.
gs/lcms/src/cmsxform.h

2011-05-12 23:14:47 +0000
Robin Watts
3767ee67758778d00c9c5c879ade41fc9f41c83b

Simplify LCMS cached transform template.
I'd overengineered the cached transform template code; the cache is
reset on every format change, so there is no need to check for that
in the transform function.
No expected performance increase, but the code is less complex. No
differences seen in cluster testing. CLUSTER_UNTESTED.
gs/lcms/src/cmsxform.h

2011-05-12 17:57:55 +0100
Robin Watts
8bcf5d9dd0c4088a811f85121addb238c9240478

Add new lcms source/header file to ghostscript.vcproj.
No cluster differences as this isn't tested. CLUSTER_UNTESTED.
gs/ghostscript.vcproj

2011-05-12 16:06:08 +0000
Robin Watts
d324305b11fd0bb399c868fe87b26cb768dc06c5

LCMS (v1) Optimisations for CachedXFORM etc.
Optimise CachedXFORM (and related functions) by using a 'template' header
file and repeatedly including it with different options to generate
different specific versions of the code.
This gives a 10% improvement on 568.40345_VO_nr_3_vpeSR18.xl (a file where
most of the time is spent in clipping).
No expected cluster differences. I've just done a full test with a bmpcmp
and it showed no differences, but in light of what happened last time I
committed this, I am not going to use the magic rune to stop the cluster
rechecking it on commit.
gs/base/lcms.mak
gs/lcms/include/lcms.h
gs/lcms/src/cmspack.c
gs/lcms/src/cmsxform.c
gs/lcms/src/cmsxform.h

2011-05-12 15:08:01 +0100
Robin Watts
e79fff7a2b215103c795b74d4abe162bf8ca3486

Change PSI so -Z! works by default in debug builds.
Previously, the -Z! option (to show the name of each PS operator as it is
executed) has only been available in DEBUG builds that specifically use
the DEBUG_TRACE_PS_OPERATORS option. This change ensures that it is available
in ALL debug builds, and in any release build where the
DEBUG_TRACE_PS_OPERATORS symbol is predefined.
The reason for historically having it as a separate option was because
checking for whether the ! debug flag was set on every operator was felt
to be too large an overhead. I have arranged the code so that this overhead
is minimised now - in debug builds we only get the extra overhead when
the -Z! is specified on the command line.
In normal release builds there is no change to the overhead. In release
builds with DEBUG_TRACE_PS_OPERATORS, the same overheads apply as in
DEBUG builds (that is a small additional overhead when -Z! is not used
and a larger one when it is).
No cluster differences expected.
gs/psi/iinit.c
gs/psi/iinit.h
gs/psi/interp.c

2011-05-11 15:39:06 -0600
Henry Stiles
7d77dabf5a1e24118455a5c0417ae75c5d5dcf60

Fixes bug #689870 - add proper big endian number accessors.
Previously only an unsigned accessor was provided and it was being
used to read both signed and unsigned quantities.
gs/jbig2dec/jbig2.c
gs/jbig2dec/jbig2_halftone.c
gs/jbig2dec/jbig2_page.c
gs/jbig2dec/jbig2_priv.h
gs/jbig2dec/jbig2_segment.c
gs/jbig2dec/jbig2_symbol_dict.c
gs/jbig2dec/jbig2_text.c

2011-05-11 15:18:11 -0600
Henry Stiles
7c309e8a33333da3c124732bb6b00b0701e85579

Fixes 690889, potential null dereference.
Prevent a theoretical (no test file) null dereference. There are
several of these cases identified by by static analysis. We believe
the authors intent was to pass the word stream if the arithmetic state
was not set, as in the other call of the same function.
gs/jbig2dec/jbig2_symbol_dict.c

2011-05-11 17:12:59 +0000
Robin Watts
2bde8dc655c36ef729964980aa373c26dbe873e5

Backout 6469f73 pending investigation of unexpected differences.
gs/base/lcms.mak
gs/lcms/include/lcms.h
gs/lcms/src/cmspack.c
gs/lcms/src/cmsxform.c

2011-05-11 16:17:05 +0000
Robin Watts
6469f738123e0c212473f11d38e88bb3650a9087

LCMS (v1) optimisations for CachedXFORM etc.
Optimise CachedXFORM (and related functions) by using a 'template' header
file and repeatedly including it with different options to generate
different specific versions of the code.
This gives a 10% improvement on 568.40345_VO_nr_3_vpeSR18.xl (a file where
most of the time is spent in clipping).
No expected cluster differences.
gs/base/lcms.mak
gs/lcms/include/lcms.h
gs/lcms/src/cmspack.c
gs/lcms/src/cmsxform.c
gs/lcms/src/cmsxform.h

2011-05-02 19:50:04 +0100
Robin Watts
1d07f53add51362ce5887b599f2dcb360f9cf348

Pacify valgrind (and improve performance?) with tiny change.
A tiny change to gxclrast.c where we initialise state_tile.size.{x,y}.
This stops valgrind giving warnings. While the code works OK without
this (I believe), it can cause various %, /, gcd operations. These are
all expensive operations and are neatly sidestepped by the simple
expedient of setting the variable to 0 to start with.
gs/base/gxclrast.c

2011-05-10 19:29:49 +0100
Robin Watts
f6f6de913f2f20914ed641a0331e405011d6565b

Add LAND_BITS define to landscape mono halftoning code.
The monochrome halftone thresholding code relies on collating incoming
scanline data into 'scancolumn' buffers. When we have 16 bytes in these
buffers, they halftoned and flushed through copy_mono.
copy_mono would prefer to work with longer than 16 byte runs, so we
remove the hardcoded 16s from throughout the code and replace it with
a #defined value. A side effect of this is that the code becomes
slightly clearer.
Sadly, it seems this doesn't give the expected speedups; testing here
indicates that both 32 and 128 run slower, possibly due to cache effects.
Nonetheless we commit the code in case inspiration strikes us later on.
No cluster differences expected.
gs/base/gsiparam.h
gs/base/gxht_thresh.c
gs/base/gximono.c

2011-05-10 19:24:55 +0100
Robin Watts
21cfb2e3b6c0d15c84b748586c51969daae58345

LCMS performance tweak; ToFixedDomain/FromFixedDomain.
Make ToFixedDomain/FromFixedDomains #defines rather than inline functions.
MSVC doesn't inline them, and they are used in speed critical areas.
No cluster differences expected.
gs/lcms/include/lcms.h

2011-05-02 18:53:00 +0100
Robin Watts
eef6a4d712a79a5f8d5f48f43c2572d5f002fc38

Quiet valgrind warning, and remove misleading init.
Cherry picked from patt_trans_clist branch to fix bug 692138.
When run with valgrind on:
gs -sDEVICE=pbmraw -r300 -dMaxBitmap=100000000 -o out.pbm Bug690189c.pdf
Valgrind complains that params.GrayBackground is used without being
initialised. We fix this here by amending gs_trans_mask_params_init.
In so doing, we note that in zbegintransparencymaskgroup we were setting
params.ColorSpace, only to call gs_trans_mask_params_init and have it
overwrite it. To avoid confusion we therefore remove this needless init.
No cluster differences seen in testing.
gs/base/gstrans.c
gs/psi/ztrans.c

2011-05-10 09:16:17 +0000
Robin Watts
b1cf87e28636a4922505e9c486b59e64c857717f

Optimisations for mem_mono_strip_copy_rop_dev.
Now that mem_mono_strip_copy_rop_dev is working reliably, cut out the
excess debugging code so we can see the wood for the trees.
To cope with situations where we get narrow texture tiles, reinstate the
old code (as rop_run relies on longer runs to get traction). Add new cases
for no-textures to avoid nested loops etc.
This all seems to help with the performance of cicero_call.
No cluster differences expected.
gs/base/gdevm1.c

2011-05-10 08:39:19 +0000
Robin Watts
2429ef51f12477d083bfcd3f15f97f90bb653b52

Optimisations to gximono.c; special case the spp_out == 1 case.
Simple optimisations to the hotspots in image_render_mono_ht.
No real differences seen in cluster testing.
gs/base/gximono.c

2011-05-09 23:46:09 +0000
Robin Watts
bf8d753f7346c0c97bd4109f0684993ab0a46041

New gxdda.h formulation.
Rejig the gxdda macros slightly. We store more 'natural' values internally
and get code that optimises slightly better.
No differences expected in cluster testing (1 SEGV shown in my testing, but
I think that's random).
gs/base/gxdda.h
gs/base/gxi12bit.c
gs/base/sidscale.c

2011-05-10 00:21:21 -0400
Alex Cherepanov
0f5928344123e31229d31eb81e3f09b528170e38

Execute linkdest procedure in a stopped context to trap errors caused
by out-of-range link destinations that can occur in an invalid files or
during processing of a page range. Bug 692200.
gs/Resource/Init/pdf_main.ps

2011-05-09 14:47:48 -0600
Henry Stiles
df4e669177f7757a5c054084f4990599bef5c355

Remove unused file should have been committed with e55d362f.
gs/base/gsnorop.c

2011-05-09 13:16:31 -0600
Henry Stiles
e55d362f3370b4bff0d72dc58c4b7a08b0dba71a

Incorporate raster operation library into the core graphics library.
We were going to fold the roblib in for simplicity, more recently
the graphics library code has been refactored such that the raster op
library is always required. For example operations previously done in
the copy_mono code are now done with the raster op code.
CLUSTER_UNTESTED
gs/base/Makefile.in
gs/base/lib.mak
gs/base/msvclib.mak
gs/base/ugcclib.mak
language_switch/pspcl6_gcc.mak
language_switch/pspcl6_msvc.mak
main/pcl6_gcc.mak
main/pcl6_msvc.mak

2011-05-05 16:16:22 +0100
Chris Liddell
60d4b088c6d314079643a92a3c4e983b116600a9

Use defined default page size for nullpage device.
The nullpage device previously used a 1"x1" default page size, this changes it
to use the same default setting as other page devices (this can be Letter or
A4, set in a makefile).
Also, add some lower bounds checking to gslp.ps so that it will error out if
the page size is too small to hold at least one line of text.
No cluster difference expected.
gs/base/gdevnfwd.c
gs/lib/gslp.ps

2011-05-08 11:26:15 -0700
Michael Vrhel
c677c48f278aba56d45bf2601ed5d152287540f1

Fix for compiler warning
gs/base/gsdevice.c

2011-05-07 23:21:38 -0700
Michael Vrhel
b1d311f06250a07d4c360e67369980d199722694

Significant change in how the device profile is handled in ghostscript. This
change adds in a new device procedure called get_profile, which is going to
typically be set to gx_forward_get_profile or gx_default_get_profile. Most
internal devices like the pattern accumulator, the clip device, memory devices,
will use the gx_forward_get_profile procedure. In this way, the profile is
typically only maintained by the the target device. The gdevp14 device is the significant internal device that takes special handling due to the way that it
can change its ICC profile based upon the current transparency group color space. The get_profile procedure also passes along information about the object
type so that we will be able to easily add in the device dependent color
management. The rendering intent, which can also be object dependent is also returned by the call. This change has been cluster tested and showed no differences.
gs/base/gdevbit.c
gs/base/gdevdflt.c
gs/base/gdevmem.c
gs/base/gdevnfwd.c
gs/base/gdevp14.c
gs/base/gdevprn.c
gs/base/gdevrops.c
gs/base/gscms.h
gs/base/gscsepr.c
gs/base/gsdevice.c
gs/base/gsequivc.c
gs/base/gsicc.c
gs/base/gsicc_cache.c
gs/base/gstrans.c
gs/base/gxccman.c
gs/base/gxclip.c
gs/base/gxclipm.c
gs/base/gxclist.c
gs/base/gxcmap.c
gs/base/gxcmap.h
gs/base/gxdevcli.h
gs/base/gxdevice.h
gs/base/gxi12bit.c
gs/base/gxicolor.c
gs/base/gximag3x.c
gs/base/gximono.c
gs/base/gxiscale.c
gs/base/gxpcmap.c
gs/contrib/opvp/gdevopvp.c

2011-05-06 08:57:07 -0400
Alex Cherepanov
a065765cd3529d17ba687954d8f4deacd8319247

Add a missing check of the return value from runarg(). Bug 692189.
gs/psi/imainarg.c

2011-05-06 01:13:51 -0400
Alex Cherepanov
2822d8a9f4186aa14f3913258841b74ff87309cf

Check the type of /File and /Length attributes during XForm identification
to avoud confusion with appearance subdictionary, which can include any
attributes (including /File or /Length) pointing to a dictionary. Bug 692192.
gs/Resource/Init/pdf_draw.ps

2011-05-04 15:38:22 +0000
Robin Watts
2756e4d6160f73af7bf5ed913af207914aeee588

Invert bmpcmps reading of cups files.
I had black <-> white. Easy fix.
gs/toolbin/bmpcmp.c

2011-05-04 15:08:36 +0100
Robin Watts
e97bf09450c5a08b591e0fca4ef59a21fb78b6ef

Fix bmpcmp to read cups colorspace=0 files too.
CLUSTER_UNTESTED.
gs/toolbin/bmpcmp.c

2011-05-04 00:45:28 -0400
Alex Cherepanov
2f0b609805f1abf42b4b10dd721d9fef3001a847

Accept and skip any number of whitespace characters (including
just spaces) after the entry count in the xref table. Remove /lineeq
and /linene procedures that are no longer used. Bug 692177.
gs/Resource/Init/pdf_main.ps

2011-05-03 08:58:18 -0600
Henry Stiles
af70515f6dcd1ffae90250697325fee224182e17

Retain or bias the reference count of the rop texture device.
The image code was using the rop texture device without any reference
counting, explicitly freeing the device when it was done. That was
fine if the device was the only device in the chain, however, linking
in other devices could lead indirectly to unintended freeing of the
rop device. A crash was seen in the the XL test file C705.BIN but
only with halftoning at particular resolutions like 72 dpi. We did
not study why the crash was limited to particular resolutions and
devices.
gs/base/gxipixel.c

2011-05-03 17:45:45 +0100
Robin Watts
afcbace446526e29bae11ce53bac5769a409e56f

Add gx_device_dump debugging function.
In DEBUG builds gx_device_dump(gx_device *dev, char *text); prints a
recursive listing of devices, their refcounts and names, and targets.
If anyone spots a forwarding device this doesn't work with, please let me
know.
No cluster differences expected.
gs/base/gdevnfwd.c
gs/base/gdevp14.c
gs/base/gxdevcli.h
gs/base/gxdevsop.h

2011-05-03 16:39:13 +0000
Robin Watts
6d5e2bde4fe7a42bdd631fb0756f4fafc460ec41

Fix copy_plane; was always copying into plane 0.
When writing copy_plane, I had neglected to offset into the data
according to the plane required.
CLUSTER_UNTESTED.
gs/base/gdevmpla.c

2011-05-02 14:51:26 +0100
Robin Watts
a78476dd0be85f69885f2614be5ab614b03c9168

Add support for cups (1bpp) files to bmpcmp.
gs/toolbin/bmpcmp.c

2011-05-02 20:41:12 +0100
Robin Watts
cc3562ce331bc45a89cebd49c91e10149b5a90b2

Solve windows debug build crash on exit with cups device.
It seems that the cups device takes it upon itself to close the output file
rather than leaving it for the ghostscript core to close as every other
device does. This upsets the windows DLL file handling.
The solution is simply to remove the lines that close the file. I've
checked both with Till and Ken, and they concur. Thanks.
No cluster differences expected.
gs/cups/gdevcups.c

2011-05-02 14:32:18 +0100
Chris Liddell
e784a5443d0bee380d1ad32055ad3075e3aa0995

Change error return to remove confusion over meaning.
When we encounter a font whose charstring has been replaced with a PS
procedure, we were returning FT_Err_Invalid_File_Format, and using that
as a hint we should try to execute it as a PS procedure. This
turns out to be problematic as it is also the error return generated by
Freetype for an invalid charstring. In the case of an invalid charstring
we should fall back to the notdef, not attempt to execute the object as
Postscript.
So, change the error return value that *we* generate, and subsequently
check for, to FT_Err_Unknown_File_Format, which FT should never,
normally, generate during glyph interpretation. This means, in this
case, we correctly identify a failed attempt to interpret a charstring,
and use the notdef fallback - instead of, eventually, throwing an
error.
Bug 692176.
No cluster differences expected.
gs/psi/fapi_ft.c

2011-04-30 19:01:53 +0100
Robin Watts
5091054103f3b07bbae8ab2fc75e6c6cc3fd7a86

Remove unused variable.
gs/base/gdevpng.c

2011-04-30 18:11:47 +0100
Robin Watts
dcae57315a683272c799545783694c43545b6fe0

Fix PNG device error when no downscale specified.
When I introduced the downscaling to selected png devices, I neglected to
set a sensible default value for downscale factor. This means that if you
attempt to set any device parameters, without specifying -dDownScaleFactor
then you get a rangecheck error. This commit fixes that.
No cluster changes expected.
gs/base/gdevpng.c

2011-04-30 08:38:31 -0400
Alex Cherepanov
c98ade33d2b8fbc0ca6579c6d9e0ceb425374b0c

Normalize pattern /BBox in PDF interpreter before passing it to PS
to avoid a /rangecheck error. Bug 692174.
gs/Resource/Init/pdf_draw.ps

2011-04-27 22:27:39 -0700
Michael Vrhel
b128a1424550b3462348bd40ecd768356cdb08ae

Fix for reference counting issue of the compositor device at
the end of the clist playback. In most cases, the compositor rc
should be 1 at this point and so the device is closed and then
freed. The case, when it is not 1 is when we have a pattern
that has a transparency and is stored in a clist. In this case
the target for the pattern clist device is the main pdf14 device and
we increment the rc during this assignment. So, when the
playback completes, the rc of the compositor is 2. We do not
want to close and free the compositor, since it is part of the
main clist that we have going on. Instead we only want to
decrement the rc. The test file pattrans_big.pdf is now
handled correctly but has a rendering/tiling issue it appears.
This commit (from the patt_trans_clist_branch) has been cherry-picked
to the trunk to solve the SEGV in bug #692160. This leaves pdf14
compositors leaking though.
gs/base/gxclrast.c

2011-04-28 20:23:29 +0100
Robin Watts
1553ea878b414b4ac389f7cec4c2076bc52be966

Stop compiler turning for loop into memset in halftoning code.
The msvc compiler cleverly spots that a for loop can be turned
into a memset. Unfortunately it can't know that the values for
which the loop is called are normally so small that the calling
of the function costs more than simply doing the stores.
The fix is to cast the pointer to which we are storing to be
volatile. This saves a significant chunk of runtime for:
pcl6.exe -sDEVICE=bit -r600 -o null: -dLeadingEdge=3
cicero_call_CRF03-all-in_adobe-8_358p_xNuv288.xl
No cluster differences expected.
gs/base/gxht_thresh.c

2011-04-28 17:19:14 +0100
Chris Liddell
dd0ead1acfd2cf2fea4e417afdd4b52b06d8c3ad

Ensure optimization flags get propogated for lcms
An inconcistency between definitions in the Unix and Windows builds meant
that on Windows several compiler flags (including that for optimization)
was not being used when buliding the lcms source files. The confusion
stems from Ghostscript requiring /Za to compile, and lcms failing to
compile with /Za.
Bug 692173.
No cluster differences expected.
gs/base/msvccmd.mak

2011-04-28 16:20:38 +0100
Robin Watts
98a891175a74e4fdbdd2b5dc10a7fa60b9f75e16

Add special case runrops for rops 0xF0 and CC (copy S and copy T).
This is in response to Norberts complaints about the speed of 9.02 with
cicero_call_CRF03-all-in_adobe-8_358p_xNuv288.xl and others.
gs/base/gsroprun.c

2011-04-28 09:01:05 +0100
Chris Liddell
26e55117205eaf76dfa6011c29e287f84ec99799

Change to include psi/ierrors.h.
psitop.c previously included the deprecated header file base/errors.h
which has now been removed. psi/ierrors.h is the correct header to
include.
No cluster differences expected.
psi/psitop.c

2011-04-28 08:10:39 +0100
Chris Liddell
7132af8bb76824feb241374cf152349995b6cc10

Remove the deprecated errors.h file.
Related to Bug 692151 in that it rendered the bug invalid.
No cluster differences expected.
gs/base/errors.h

2011-04-25 18:58:52 -0600
Henry Stiles
0361e41b57f8f4d798eb42e6320e6e96c355169d

PJL filesystem commands can be made static.
Warning cleanup - make local functions static.
Use %s if the argument is not literal to address the warning "format
not a string literal and no format arguments".
Presumably a format specifier could appear in the character array
resulting in an argument mismatch.
pl/pjparse.c
pl/pjparsei.c
pl/plmain.c
pxl/pxtop.c

2011-04-25 17:53:50 -0600
Henry Stiles
732dc98f92f2132f21811cf8b2612c1091e65050

Partially refactor image api so it can be shared between pcl and pxl,
also to move away from using the obsolete image api.
pl/pldraw.c
pl/pldraw.h
pxl/pximage.c
pxl/pxink.c

2011-04-26 19:20:25 +0100
Robin Watts
262c866a71d08c1709484d95ffb3639f53156078

Fix for bug 692081. Antialiasing patterns results in white holes.
gx_default_copy_alpha simulates alpha by weighted average of RGB values.
When the alpha value is zero, the current implementation reads the current
background value, and just writes it back. This has the effect of making
any device that watches what devices get written to think that that pixel
is solid. (One such device is the pattern tile device where it collects what
pixels have been marked, and what haven't).
The CORRECT way to do this is to stop the line accumulation at that point,
flush everything to there, then start again a pixel later.
Doing this solves the bug, and causes no cluster changes.
gs/base/gdevdbit.c
gs/base/gxcindex.h

2011-04-26 12:37:14 +0100
Robin Watts
11b5fb512393a6e9d9bdf6c076dc388ebd8c7c3f

Fix warnings (unused variables and missing cases in switches).
gs/base/gdevddrw.c
gs/base/gstrans.c
gs/base/gxblend1.c
gs/base/gxiscale.c
gs/base/gxstroke.c
gs/psi/zicc.c

2011-04-26 10:34:46 +0100
Robin Watts
a349c53ca01df5e425f25d1fa14d38c43d95b60c

Removed unused variables to quiet warnings.
gs/base/gdevtifs.c
gs/base/gxdownscale.c

2011-04-25 22:56:41 -0700
Michael Vrhel
79e14a10307ba37bcf00af1b05c1c52875d9774a

Fix for multithreaded rendering crash that can occur due to race conditions between threads with the increment and decrement of the icc link cache object during the rendering of the bands. Fix involved place a lock around the operations. Thanks to Ray for helping with this.
gs/base/gxclrast.c
gs/base/gxclthrd.c

2011-04-25 17:37:09 -0700
Michael Vrhel
03cb94a9da2cddd2b7055e8565dd797c67bf56f4

Fix for memory leak in gdevp14 device. This involved making sure the overprint compositor was initialized retained with a ref count of 1 like the pdf14 device.
gs/base/gsovrc.c
gs/base/gxclrast.c

2011-04-26 00:53:07 +0100
Robin Watts
16789dc892db636719383c2542aa9cec04092e4d

Fix memory overwrite in png devices.
In my fiddling with the png devices the other day to add downscaling, I
omitted to extend the size of two of them (png16m and png48). This meant
that png16m was overwriting 8 bytes of memory after its device structure.
Fix this to solve a SEGV when DownScaleFactor is used.
gs/base/gdevpng.c

2011-04-24 20:35:45 -0400
Alex Cherepanov
f5a6de969ae67a2318115c5e8e6e2b3b06fc58f3

Split large beginbfrange..endbfrange blocks in ToUnicode CMaps into
smaller blocks to stay within the limits of various PS constricts and
speed up operand stack manipulation, esp. "counttomark -3 roll". Bug 691908.
gs/Resource/Init/pdf_font.ps

2011-04-25 09:31:32 -0600
Henry Stiles
3b66709cafd05910f2442250e12d1918f239c34b

The new custom paper size implementation introduced a bug in
passthrough mode requiring additional state setup when we switch from
PXL to PCL state.
pcl/pcpage.c
pxl/pxpthr.c

2011-04-22 15:40:50 -0600
henrys
460ff495a31f8a87d0ed677eed2660fca79369fc

Revision 43a5362 modified a global variable. We address that by
making the page table a dynamic member of the pcl state.
pcl/pcommand.c
pcl/pcpage.c
pcl/pcstate.h
pcl/pcxfmst.h

2011-04-20 23:25:50 -0600
henrys
e5a9f968265abc47a85811e620c79bedf87b1da0

Josef Hinteregger's patch to implement custom paper sizes in PJL and PCL,
bug #691587.
pcl/pcpage.c
pl/pjparse.c

2011-04-20 23:20:34 -0700
Michael Vrhel
4ddefa258ee17e359429c901ef8a0a8f3b234083

Fix to stop reset of ICC profile directory to the default directory (which is the romfs) when there is a VMreclaim. Previously if the VMreclaim happens while we are still in the process of initializing the icc manager this can cause a crash. This was the source of the crash with the tiffsep device when COMPILE_INITS=0.
gs/base/gsicc_manage.c

2011-04-22 18:08:10 +0100
Robin Watts
1b3908faa01c7ef6197374a27b1a5861f0a383fe

Extend downscaling to png devices too (from tiffscaled).
Extract the code to do downscaling/min feature size from tiffscaled{,8,24}
into a new gx_downscaler class. Make tiffscaled{,8,24} call this new class
with no change in functionality.
Make png devices call this new code. Only png16m and pnggray are actually
affected by downscaling though. Add a new pngmonod device to do grayscale
rendering internally and to downscale/min_feature_size/error diffuse to
monochrome.
gs/base/devs.mak
gs/base/gdevpng.c
gs/base/gdevprn.c
gs/base/gdevtifs.c
gs/base/gxdownscale.c
gs/base/gxdownscale.h
gs/base/lib.mak
gs/base/macos-mcp.mak
gs/base/macosx.mak
gs/base/openvms.mak
gs/base/unix-gcc.mak
gs/base/unixansi.mak
gs/doc/Devices.htm
gs/ghostscript.vcproj
gs/psi/msvc.mak
gs/psi/os2.mak
main/pcl6_gcc.mak
main/pcl6_msvc.mak

2011-04-20 10:40:58 -0700
Marcos H. Woehrmann
8a203b909d59f8aa649492c23fa570afe3a61565

Revert of a4c4877b35b6782ef64b382713eaa6bcd4eca8d6 since we decided to rename the directories back to their before svn => git transition names.
gs/toolbin/localcluster/clusterpush.pl

2011-04-20 09:17:25 -0700
mvrhel
20b6c78ff6fb123bc11a068ca329a96d2452b529

Fix for issue when creating ICC profiles from DEF/G structures. As a few progressions and fixes bug 692156 and likely bug 691977
gs/base/gsicc_create.c

2011-04-19 21:23:01 -0700
Marcos H. Woehrmann
a4c4877b35b6782ef64b382713eaa6bcd4eca8d6

Modified clusterpush.pl to account for the new directory structure introduced with the svn => git transition.
gs/toolbin/localcluster/clusterpush.pl

2011-04-20 14:56:12 +0100
Robin Watts
0f57eacebce435c7da518b2d17638036a3ae5a40

Add bin directories to .gitignore file.
Also add some comments with useful lines that people might want to copy
to their local .git/info/exclude file.
.gitignore

2011-04-20 14:46:26 +0100
Robin Watts
c10532c1b2e63dd6d6d95f1a0b578eb865ff4d9a

New tiffscaled8 and tiffscaled24 devices.
Add new tiffscaled8 and tiffscaled24 devices, copied and modified from
tiffscaled. These output greyscale and 24bit rgb instead of tiffscaleds
mono output. MinFeatureSize is ignored for these devices as it's meaningless
for contone output.
Error Diffusion is still done, but is almost certainly a waste of time - it
was just simpler to make the code work this way. If performance is an issue,
we can remove that later.
gs/base/configure.ac
gs/base/devs.mak
gs/base/gdevtifs.c
gs/base/gdevtifs.h
gs/base/gdevtsep.c
gs/base/macos-mcp.mak
gs/base/openvms.mak
gs/base/unix-gcc.mak
gs/base/unixansi.mak
gs/doc/Devices.htm
gs/psi/msvc.mak
main/pcl6_gcc.mak
main/pcl6_msvc.mak

2011-04-20 00:00:45 +0200
Tor Andersson
f6e8c8d24c4a2f66b45ce04ab544aaf8b305a0d1

Change GS_PRODUCTFAMILY to say GIT instead of SVN PRERELEASE.
gs/base/gscdef.c

2011-04-19 23:58:23 +0200
Tor Andersson
c91007a224a533fb7582646d98b6bf1721f4f297

Clean up file permissions.
COPYING.AFPL
gs/examples/golfer.eps
gs/examples/tiger.eps
gs/ghostscript-ufst.vcproj
gs/ghostscript.vcproj
gs/psi/winint.mak
tools/Acrobat2Tiff/Acrobat2Tiff.sln
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff.vb
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff.vbproj
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Application.Designer.vb
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Application.myapp
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/AssemblyInfo.vb
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Resources.Designer.vb
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Resources.resx
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Settings.Designer.vb
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Settings.settings
tools/Acrobat2Tiff/Acrobat2Tiff/bin/Release/Acrobat2Tiff.xml
tools/Acrobat2Tiff/Acrobat2Tiff/bin/Release/Interop.Acrobat.dll
tools/cmpi/cmpi.bkl
tools/cmpi/cmpi.cpp
tools/cmpi/cmpi.dsp
tools/cmpi/cmpi.dsw
tools/cmpi/cmpi.pro
tools/cmpi/cmpi.rc
tools/cmpi/cmpi.sln
tools/cmpi/cmpi.suo
tools/cmpi/cmpi.vcp
tools/cmpi/cmpi.vcproj
tools/cmpi/cmpi.vcw
tools/cmpi/descrip.mms
tools/cmpi/makefile.bcc
tools/cmpi/makefile.dmc
tools/cmpi/makefile.dms
tools/cmpi/makefile.dos
tools/cmpi/makefile.gcc
tools/cmpi/makefile.sc
tools/cmpi/makefile.unx
tools/cmpi/makefile.va
tools/cmpi/makefile.vc
tools/cmpi/makefile.wat
tools/tiger.svg
tools/xps2tiff/README
tools/xps2tiff/xps2tiff.sln
tools/xps2tiff/xps2tiff/AssemblyInfo.cpp
tools/xps2tiff/xps2tiff/stdafx.cpp
tools/xps2tiff/xps2tiff/xps2tiff.cpp
tools/xps2tiff/xps2tiff/xps2tiff.vcproj
win32/GhostPDL.sln
win32/ReadMe.txt
win32/language_switch.vcproj
win32/pcl.vcproj
win32/svg.vcproj
win32/xps.vcproj

2011-04-19 23:49:56 +0200
Tor Andersson
781969994b5381ba4bed03beef217f9bde6e7c58

Indent with spaces and strip trailing whitespace.
gs/Resource/Init/gs_agl.ps
gs/Resource/Init/gs_btokn.ps
gs/Resource/Init/gs_cet.ps
gs/Resource/Init/gs_cff.ps
gs/Resource/Init/gs_cidcm.ps
gs/Resource/Init/gs_ciddc.ps
gs/Resource/Init/gs_cidfm.ps
gs/Resource/Init/gs_cidfn.ps
gs/Resource/Init/gs_cidtt.ps
gs/Resource/Init/gs_cmap.ps
gs/Resource/Init/gs_cspace.ps
gs/Resource/Init/gs_css_e.ps
gs/Resource/Init/gs_dbt_e.ps
gs/Resource/Init/gs_diskf.ps
gs/Resource/Init/gs_diskn.ps
gs/Resource/Init/gs_dpnxt.ps
gs/Resource/Init/gs_dps.ps
gs/Resource/Init/gs_dps1.ps
gs/Resource/Init/gs_dps2.ps
gs/Resource/Init/gs_dscp.ps
gs/Resource/Init/gs_epsf.ps
gs/Resource/Init/gs_fapi.ps
gs/Resource/Init/gs_fntem.ps
gs/Resource/Init/gs_fonts.ps
gs/Resource/Init/gs_frsd.ps
gs/Resource/Init/gs_icc.ps
gs/Resource/Init/gs_il1_e.ps
gs/Resource/Init/gs_img.ps
gs/Resource/Init/gs_init.ps
gs/Resource/Init/gs_l2img.ps
gs/Resource/Init/gs_lev2.ps
gs/Resource/Init/gs_ll3.ps
gs/Resource/Init/gs_mex_e.ps
gs/Resource/Init/gs_mgl_e.ps
gs/Resource/Init/gs_mro_e.ps
gs/Resource/Init/gs_pdf_e.ps
gs/Resource/Init/gs_pdfwr.ps
gs/Resource/Init/gs_res.ps
gs/Resource/Init/gs_resmp.ps
gs/Resource/Init/gs_setpd.ps
gs/Resource/Init/gs_statd.ps
gs/Resource/Init/gs_std_e.ps
gs/Resource/Init/gs_sym_e.ps
gs/Resource/Init/gs_trap.ps
gs/Resource/Init/gs_ttf.ps
gs/Resource/Init/gs_typ32.ps
gs/Resource/Init/gs_typ42.ps
gs/Resource/Init/gs_type1.ps
gs/Resource/Init/gs_wan_e.ps
gs/Resource/Init/pdf_base.ps
gs/Resource/Init/pdf_cslayer.ps
gs/Resource/Init/pdf_draw.ps
gs/Resource/Init/pdf_font.ps
gs/Resource/Init/pdf_main.ps
gs/Resource/Init/pdf_ops.ps
gs/Resource/Init/pdf_rbld.ps
gs/Resource/Init/pdf_sec.ps
gs/base/ConvertUTF.c
gs/base/ConvertUTF.h
gs/base/aes.c
gs/base/aes.h
gs/base/assert_.h
gs/base/ctype_.h
gs/base/dirent_.h
gs/base/dos_.h
gs/base/echogs.c
gs/base/errno_.h
gs/base/errors.h
gs/base/fcntl_.h
gs/base/gconf.c
gs/base/gconf.h
gs/base/gdebug.h
gs/base/gdev3852.c
gs/base/gdev3b1.c
gs/base/gdev4081.c
gs/base/gdev4693.c
gs/base/gdev8510.c
gs/base/gdev8bcm.c
gs/base/gdev8bcm.h
gs/base/gdevabuf.c
gs/base/gdevadmp.c
gs/base/gdevatx.c
gs/base/gdevbbox.c
gs/base/gdevbbox.h
gs/base/gdevbit.c
gs/base/gdevbj10.c
gs/base/gdevbjc.h
gs/base/gdevbjcl.c
gs/base/gdevbjcl.h
gs/base/gdevbmp.c
gs/base/gdevbmp.h
gs/base/gdevbmpa.c
gs/base/gdevbmpc.c
gs/base/gdevccr.c
gs/base/gdevcdj.c
gs/base/gdevcfax.c
gs/base/gdevcgm.c
gs/base/gdevcgml.c
gs/base/gdevcgml.h
gs/base/gdevcgmx.h
gs/base/gdevcif.c
gs/base/gdevclj.c
gs/base/gdevcljc.c
gs/base/gdevcp50.c
gs/base/gdevcslw.c
gs/base/gdevdbit.c
gs/base/gdevdcrd.c
gs/base/gdevdcrd.h
gs/base/gdevddrw.c
gs/base/gdevddrw.h
gs/base/gdevdevn.c
gs/base/gdevdevn.h
gs/base/gdevdfax.c
gs/base/gdevdflt.c
gs/base/gdevdgbr.c
gs/base/gdevdjet.c
gs/base/gdevdjtc.c
gs/base/gdevdljm.c
gs/base/gdevdljm.h
gs/base/gdevdm24.c
gs/base/gdevdsha.c
gs/base/gdevdsp.c
gs/base/gdevdsp.h
gs/base/gdevdsp2.h
gs/base/gdevemap.c
gs/base/gdevepsc.c
gs/base/gdevepsn.c
gs/base/gdevescp.c
gs/base/gdevevga.c
gs/base/gdevfax.c
gs/base/gdevfax.h
gs/base/gdevherc.c
gs/base/gdevhit.c
gs/base/gdevhl7x.c
gs/base/gdevifno.c
gs/base/gdevijs.c
gs/base/gdevimdi.c
gs/base/gdevimgn.c
gs/base/gdevjbig2.c
gs/base/gdevjpeg.c
gs/base/gdevjpx.c
gs/base/gdevl256.c
gs/base/gdevl31s.c
gs/base/gdevlbp8.c
gs/base/gdevlj56.c
gs/base/gdevlp8k.c
gs/base/gdevlxm.c
gs/base/gdevm1.c
gs/base/gdevm16.c
gs/base/gdevm2.c
gs/base/gdevm24.c
gs/base/gdevm32.c
gs/base/gdevm4.c
gs/base/gdevm40.c
gs/base/gdevm48.c
gs/base/gdevm56.c
gs/base/gdevm64.c
gs/base/gdevmac.c
gs/base/gdevmac.h
gs/base/gdevmacpictop.h
gs/base/gdevmacttf.h
gs/base/gdevmacxf.c
gs/base/gdevmeds.c
gs/base/gdevmeds.h
gs/base/gdevmem.c
gs/base/gdevmem.h
gs/base/gdevmgr.c
gs/base/gdevmgr.h
gs/base/gdevmiff.c
gs/base/gdevmpla.h
gs/base/gdevmr1.c
gs/base/gdevmr2n.c
gs/base/gdevmrop.h
gs/base/gdevmrun.c
gs/base/gdevmrun.h
gs/base/gdevmswn.c
gs/base/gdevmswn.h
gs/base/gdevmsxf.c
gs/base/gdevn533.c
gs/base/gdevnfwd.c
gs/base/gdevo182.c
gs/base/gdevokii.c
gs/base/gdevos2p.c
gs/base/gdevp14.c
gs/base/gdevp14.h
gs/base/gdevp2up.c
gs/base/gdevpbm.c
gs/base/gdevpccm.c
gs/base/gdevpccm.h
gs/base/gdevpcfb.c
gs/base/gdevpcfb.h
gs/base/gdevpcl.c
gs/base/gdevpcl.h
gs/base/gdevpcx.c
gs/base/gdevpdf.c
gs/base/gdevpdfb.c
gs/base/gdevpdfb.h
gs/base/gdevpdfc.c
gs/base/gdevpdfc.h
gs/base/gdevpdfd.c
gs/base/gdevpdfe.c
gs/base/gdevpdfg.c
gs/base/gdevpdfg.h
gs/base/gdevpdfi.c
gs/base/gdevpdfj.c
gs/base/gdevpdfk.c
gs/base/gdevpdfm.c
gs/base/gdevpdfo.c
gs/base/gdevpdfo.h
gs/base/gdevpdfp.c
gs/base/gdevpdfr.c
gs/base/gdevpdft.c
gs/base/gdevpdfu.c
gs/base/gdevpdfv.c
gs/base/gdevpdfx.h
gs/base/gdevpdt.c
gs/base/gdevpdt.h
gs/base/gdevpdtb.c
gs/base/gdevpdtb.h
gs/base/gdevpdtc.c
gs/base/gdevpdtd.c
gs/base/gdevpdtd.h
gs/base/gdevpdte.c
gs/base/gdevpdtf.c
gs/base/gdevpdtf.h
gs/base/gdevpdti.c
gs/base/gdevpdti.h
gs/base/gdevpdts.c
gs/base/gdevpdts.h
gs/base/gdevpdtt.c
gs/base/gdevpdtt.h
gs/base/gdevpdtv.c
gs/base/gdevpdtv.h
gs/base/gdevpdtw.c
gs/base/gdevpdtw.h
gs/base/gdevpdtx.h
gs/base/gdevpe.c
gs/base/gdevperm.c
gs/base/gdevphex.c
gs/base/gdevpipe.c
gs/base/gdevpjet.c
gs/base/gdevplib.c
gs/base/gdevplnx.c
gs/base/gdevplnx.h
gs/base/gdevpm.h
gs/base/gdevpng.c
gs/base/gdevppla.c
gs/base/gdevppla.h
gs/base/gdevprn.c
gs/base/gdevprn.h
gs/base/gdevprna.c
gs/base/gdevprna.h
gs/base/gdevps.c
gs/base/gdevpsd.c
gs/base/gdevpsdf.h
gs/base/gdevpsdi.c
gs/base/gdevpsdp.c
gs/base/gdevpsds.c
gs/base/gdevpsds.h
gs/base/gdevpsdu.c
gs/base/gdevpsf.h
gs/base/gdevpsf1.c
gs/base/gdevpsf2.c
gs/base/gdevpsfm.c
gs/base/gdevpsft.c
gs/base/gdevpsfu.c
gs/base/gdevpsfx.c
gs/base/gdevpsim.c
gs/base/gdevpsu.c
gs/base/gdevpsu.h
gs/base/gdevpx.c
gs/base/gdevpxen.h
gs/base/gdevpxop.h
gs/base/gdevpxut.c
gs/base/gdevpxut.h
gs/base/gdevrinkj.c
gs/base/gdevrops.c
gs/base/gdevs3ga.c
gs/base/gdevsco.c
gs/base/gdevsgi.c
gs/base/gdevsgi.h
gs/base/gdevsj48.c
gs/base/gdevsnfb.c
gs/base/gdevsppr.c
gs/base/gdevstc.c
gs/base/gdevstc.h
gs/base/gdevstc1.c
gs/base/gdevstc2.c
gs/base/gdevstc3.c
gs/base/gdevstc4.c
gs/base/gdevsun.c
gs/base/gdevsunr.c
gs/base/gdevsvg.c
gs/base/gdevsvga.c
gs/base/gdevsvga.h
gs/base/gdevtfax.c
gs/base/gdevtfax.h
gs/base/gdevtfnx.c
gs/base/gdevtifs.c
gs/base/gdevtifs.h
gs/base/gdevtknk.c
gs/base/gdevtrac.c
gs/base/gdevtsep.c
gs/base/gdevtxtw.c
gs/base/gdevupd.c
gs/base/gdevvec.c
gs/base/gdevvec.h
gs/base/gdevvglb.c
gs/base/gdevwddb.c
gs/base/gdevwdib.c
gs/base/gdevwpr2.c
gs/base/gdevwprn.c
gs/base/gdevwts.c
gs/base/gdevx.c
gs/base/gdevx.h
gs/base/gdevxalt.c
gs/base/gdevxcf.c
gs/base/gdevxcmp.c
gs/base/gdevxcmp.h
gs/base/gdevxini.c
gs/base/gdevxres.c
gs/base/gdevxxf.c
gs/base/genarch.c
gs/base/genconf.c
gs/base/gendev.c
gs/base/genht.c
gs/base/gp.h
gs/base/gp_dosfe.c
gs/base/gp_dosfs.c
gs/base/gp_dvx.c
gs/base/gp_getnv.c
gs/base/gp_mac.c
gs/base/gp_mac.h
gs/base/gp_macio.c
gs/base/gp_macpoll.c
gs/base/gp_mktmp.c
gs/base/gp_msdll.c
gs/base/gp_msdos.c
gs/base/gp_mshdl.c
gs/base/gp_mslib.c
gs/base/gp_mspol.c
gs/base/gp_msprn.c
gs/base/gp_mswin.c
gs/base/gp_mswin.h
gs/base/gp_nsync.c
gs/base/gp_ntfs.c
gs/base/gp_os2.c
gs/base/gp_os2.h
gs/base/gp_os2fs.c
gs/base/gp_os2pr.c
gs/base/gp_os9.c
gs/base/gp_paper.c
gs/base/gp_psync.c
gs/base/gp_stdia.c
gs/base/gp_stdin.c
gs/base/gp_strdl.c
gs/base/gp_sysv.c
gs/base/gp_unix.c
gs/base/gp_unix_cache.c
gs/base/gp_upapr.c
gs/base/gp_vms.c
gs/base/gp_wgetv.c
gs/base/gp_win32.c
gs/base/gp_wpapr.c
gs/base/gp_wsync.c
gs/base/gpcheck.h
gs/base/gpgetenv.h
gs/base/gpmisc.c
gs/base/gpmisc.h
gs/base/gs_agl.h
gs/base/gs_dll_call.h
gs/base/gs_mgl_e.h
gs/base/gs_mro_e.h
gs/base/gsalloc.c
gs/base/gsalloc.h
gs/base/gsalpha.c
gs/base/gsalpha.h
gs/base/gsalphac.c
gs/base/gsalphac.h
gs/base/gsargs.c
gs/base/gsargs.h
gs/base/gsbitcom.c
gs/base/gsbitmap.h
gs/base/gsbitops.c
gs/base/gsbittab.c
gs/base/gsbittab.h
gs/base/gsccode.h
gs/base/gsccolor.h
gs/base/gscdef.c
gs/base/gscdefs.h
gs/base/gscdevn.c
gs/base/gscdevn.h
gs/base/gscedata.c
gs/base/gscedata.h
gs/base/gscencs.c
gs/base/gscencs.h
gs/base/gschar.c
gs/base/gschar.h
gs/base/gschar0.c
gs/base/gscicach.c
gs/base/gscicach.h
gs/base/gscie.c
gs/base/gscie.h
gs/base/gsciemap.c
gs/base/gscindex.h
gs/base/gsclipsr.c
gs/base/gsclipsr.h
gs/base/gscms.h
gs/base/gscolor.c
gs/base/gscolor.h
gs/base/gscolor1.c
gs/base/gscolor1.h
gs/base/gscolor2.c
gs/base/gscolor2.h
gs/base/gscolor3.c
gs/base/gscolor3.h
gs/base/gscolorbuffer.c
gs/base/gscolorbuffer.h
gs/base/gscompt.h
gs/base/gscoord.c
gs/base/gscoord.h
gs/base/gscparam.c
gs/base/gscpixel.c
gs/base/gscpixel.h
gs/base/gscpm.h
gs/base/gscrd.c
gs/base/gscrd.h
gs/base/gscrdp.c
gs/base/gscrdp.h
gs/base/gscrypt1.c
gs/base/gscrypt1.h
gs/base/gscscie.c
gs/base/gscsel.h
gs/base/gscsepr.c
gs/base/gscsepr.h
gs/base/gscspace.c
gs/base/gscspace.h
gs/base/gscssub.c
gs/base/gscssub.h
gs/base/gsdcolor.h
gs/base/gsdevice.c
gs/base/gsdevice.h
gs/base/gsdevmem.c
gs/base/gsdfilt.c
gs/base/gsdfilt.h
gs/base/gsdll.h
gs/base/gsdllwin.h
gs/base/gsdparam.c
gs/base/gsdpnext.h
gs/base/gsdps.c
gs/base/gsdps.h
gs/base/gsdps1.c
gs/base/gsdsrc.c
gs/base/gsdsrc.h
gs/base/gsequivc.c
gs/base/gsequivc.h
gs/base/gserror.h
gs/base/gserrors.h
gs/base/gsexit.h
gs/base/gsfcid.c
gs/base/gsfcid2.c
gs/base/gsfcmap.c
gs/base/gsfcmap.h
gs/base/gsfcmap1.c
gs/base/gsflip.c
gs/base/gsflip.h
gs/base/gsfname.c
gs/base/gsfname.h
gs/base/gsfont.c
gs/base/gsfont.h
gs/base/gsfont0.c
gs/base/gsfont0c.c
gs/base/gsfunc.c
gs/base/gsfunc.h
gs/base/gsfunc0.c
gs/base/gsfunc0.h
gs/base/gsfunc3.c
gs/base/gsfunc3.h
gs/base/gsfunc4.c
gs/base/gsfunc4.h
gs/base/gsgc.h
gs/base/gsgcache.c
gs/base/gsgcache.h
gs/base/gsgdata.c
gs/base/gsgdata.h
gs/base/gshsb.c
gs/base/gshsb.h
gs/base/gsht.c
gs/base/gsht.h
gs/base/gsht1.c
gs/base/gsht1.h
gs/base/gshtscr.c
gs/base/gshtx.c
gs/base/gshtx.h
gs/base/gsicc.c
gs/base/gsicc.h
gs/base/gsicc_cache.c
gs/base/gsicc_cache.h
gs/base/gsicc_cms.h
gs/base/gsicc_create.c
gs/base/gsicc_create.h
gs/base/gsicc_lcms.c
gs/base/gsicc_lcms2.c
gs/base/gsicc_manage.c
gs/base/gsicc_manage.h
gs/base/gsicc_profilecache.c
gs/base/gsicc_profilecache.h
gs/base/gsimage.c
gs/base/gsimage.h
gs/base/gsimpath.c
gs/base/gsinit.c
gs/base/gsio.h
gs/base/gsiodev.c
gs/base/gsiodevs.c
gs/base/gsiodisk.c
gs/base/gsiomacres.c
gs/base/gsiorom.c
gs/base/gsiorom.h
gs/base/gsipar3x.h
gs/base/gsiparam.h
gs/base/gsiparm2.h
gs/base/gsiparm3.h
gs/base/gsiparm4.h
gs/base/gsistate.c
gs/base/gsjconf.h
gs/base/gsjmorec.h
gs/base/gslib.c
gs/base/gslib.h
gs/base/gslibctx.c
gs/base/gslibctx.h
gs/base/gsline.c
gs/base/gsline.h
gs/base/gslparam.h
gs/base/gsmalloc.c
gs/base/gsmalloc.h
gs/base/gsmatrix.c
gs/base/gsmatrix.h
gs/base/gsmchunk.c
gs/base/gsmchunk.h
gs/base/gsmdebug.h
gs/base/gsmemlok.c
gs/base/gsmemlok.h
gs/base/gsmemory.c
gs/base/gsmemory.h
gs/base/gsmemraw.h
gs/base/gsmemret.c
gs/base/gsmemret.h
gs/base/gsmisc.c
gs/base/gsnamecl.c
gs/base/gsnamecl.h
gs/base/gsncdummy.c
gs/base/gsncdummy.h
gs/base/gsnogc.c
gs/base/gsnogc.h
gs/base/gsnorop.c
gs/base/gsnotify.c
gs/base/gsnotify.h
gs/base/gsovrc.c
gs/base/gsovrc.h
gs/base/gspaint.c
gs/base/gspaint.h
gs/base/gsparam.c
gs/base/gsparam.h
gs/base/gsparam2.c
gs/base/gsparams.c
gs/base/gsparams.h
gs/base/gsparamx.c
gs/base/gsparamx.h
gs/base/gspath.c
gs/base/gspath.h
gs/base/gspath1.c
gs/base/gspath2.h
gs/base/gspcolor.c
gs/base/gspcolor.h
gs/base/gspenum.h
gs/base/gspmdrv.c
gs/base/gspmdrv.h
gs/base/gsptype1.c
gs/base/gsptype1.h
gs/base/gsptype2.c
gs/base/gsptype2.h
gs/base/gsrect.h
gs/base/gsrefct.h
gs/base/gsromfs0.c
gs/base/gsrop.c
gs/base/gsrop.h
gs/base/gsroprun.c
gs/base/gsropt.h
gs/base/gsroptab.c
gs/base/gsserial.c
gs/base/gsserial.h
gs/base/gsshade.c
gs/base/gsshade.h
gs/base/gsstate.c
gs/base/gsstate.h
gs/base/gsstruct.h
gs/base/gsstype.h
gs/base/gstext.c
gs/base/gstext.h
gs/base/gstparam.h
gs/base/gstrans.c
gs/base/gstrans.h
gs/base/gstrap.c
gs/base/gstrap.h
gs/base/gstype1.c
gs/base/gstype1.h
gs/base/gstype2.c
gs/base/gstype42.c
gs/base/gstypes.h
gs/base/gsuid.h
gs/base/gsutil.c
gs/base/gsutil.h
gs/base/gswts.c
gs/base/gswts.h
gs/base/gsxfont.h
gs/base/gx.h
gs/base/gxacpath.c
gs/base/gxalloc.h
gs/base/gxalpha.h
gs/base/gxarith.h
gs/base/gxband.h
gs/base/gxbcache.c
gs/base/gxbcache.h
gs/base/gxbitfmt.h
gs/base/gxbitmap.h
gs/base/gxbitops.h
gs/base/gxblend.c
gs/base/gxblend.h
gs/base/gxblend1.c
gs/base/gxccache.c
gs/base/gxccman.c
gs/base/gxcdevn.h
gs/base/gxchar.h
gs/base/gxchrout.c
gs/base/gxchrout.h
gs/base/gxcht.c
gs/base/gxcid.h
gs/base/gxcie.h
gs/base/gxcindex.h
gs/base/gxclbits.c
gs/base/gxcldev.h
gs/base/gxclfile.c
gs/base/gxclimag.c
gs/base/gxclio.h
gs/base/gxclip.c
gs/base/gxclip.h
gs/base/gxclip2.c
gs/base/gxclip2.h
gs/base/gxclipm.c
gs/base/gxclipm.h
gs/base/gxclipsr.h
gs/base/gxclist.c
gs/base/gxclist.h
gs/base/gxcllzw.c
gs/base/gxclmem.c
gs/base/gxclmem.h
gs/base/gxclpage.c
gs/base/gxclpage.h
gs/base/gxclpath.c
gs/base/gxclpath.h
gs/base/gxclrast.c
gs/base/gxclread.c
gs/base/gxclrect.c
gs/base/gxclthrd.c
gs/base/gxclthrd.h
gs/base/gxclutil.c
gs/base/gxcmap.c
gs/base/gxcmap.h
gs/base/gxcolor2.h
gs/base/gxcomp.h
gs/base/gxcoord.h
gs/base/gxcpath.c
gs/base/gxcpath.h
gs/base/gxcspace.h
gs/base/gxctable.c
gs/base/gxctable.h
gs/base/gxcvalue.h
gs/base/gxdcconv.c
gs/base/gxdcconv.h
gs/base/gxdcolor.c
gs/base/gxdcolor.h
gs/base/gxdda.h
gs/base/gxdevbuf.h
gs/base/gxdevcli.h
gs/base/gxdevmem.h
gs/base/gxdevndi.c
gs/base/gxdevndi.h
gs/base/gxdevrop.h
gs/base/gxdevsop.h
gs/base/gxdht.h
gs/base/gxdhtres.h
gs/base/gxdhtserial.c
gs/base/gxdhtserial.h
gs/base/gxdither.h
gs/base/gxdtfill.h
gs/base/gxfapiu.c
gs/base/gxfapiu.h
gs/base/gxfarith.h
gs/base/gxfcache.h
gs/base/gxfcid.h
gs/base/gxfcmap.h
gs/base/gxfcmap1.h
gs/base/gxfcopy.c
gs/base/gxfcopy.h
gs/base/gxfdrop.c
gs/base/gxfdrop.h
gs/base/gxfill.c
gs/base/gxfill.h
gs/base/gxfillsl.h
gs/base/gxfilltr.h
gs/base/gxfillts.h
gs/base/gxfixed.h
gs/base/gxfmap.h
gs/base/gxfont.h
gs/base/gxfont0.h
gs/base/gxfont0c.h
gs/base/gxfont1.h
gs/base/gxfont42.h
gs/base/gxfrac.h
gs/base/gxftype.h
gs/base/gxfunc.h
gs/base/gxgetbit.h
gs/base/gxhintn.c
gs/base/gxhintn.h
gs/base/gxhintn1.c
gs/base/gxhldevc.c
gs/base/gxhldevc.h
gs/base/gxht.c
gs/base/gxht.h
gs/base/gxht_thresh.c
gs/base/gxht_thresh.h
gs/base/gxhtbit.c
gs/base/gxhttile.h
gs/base/gxhttype.h
gs/base/gxi12bit.c
gs/base/gxi16bit.c
gs/base/gxiclass.h
gs/base/gxicolor.c
gs/base/gxidata.c
gs/base/gxifast.c
gs/base/gximag3x.c
gs/base/gximag3x.h
gs/base/gximage.c
gs/base/gximage.h
gs/base/gximage1.c
gs/base/gximage2.c
gs/base/gximage3.c
gs/base/gximage3.h
gs/base/gximage4.c
gs/base/gximask.c
gs/base/gximask.h
gs/base/gximono.c
gs/base/gxino12b.c
gs/base/gxino16b.c
gs/base/gxiodev.h
gs/base/gxiparam.h
gs/base/gxipixel.c
gs/base/gxiscale.c
gs/base/gxistate.h
gs/base/gxline.h
gs/base/gxlum.h
gs/base/gxmatrix.h
gs/base/gxmclip.c
gs/base/gxmclip.h
gs/base/gxobj.h
gs/base/gxoprect.c
gs/base/gxoprect.h
gs/base/gxp1fill.c
gs/base/gxp1impl.h
gs/base/gxpageq.c
gs/base/gxpageq.h
gs/base/gxpaint.c
gs/base/gxpaint.h
gs/base/gxpath.c
gs/base/gxpath.h
gs/base/gxpath2.c
gs/base/gxpcache.h
gs/base/gxpcmap.c
gs/base/gxpcolor.h
gs/base/gxpcopy.c
gs/base/gxpdash.c
gs/base/gxpflat.c
gs/base/gxrplane.h
gs/base/gxsample.c
gs/base/gxsample.h
gs/base/gxsamplp.h
gs/base/gxshade.c
gs/base/gxshade.h
gs/base/gxshade1.c
gs/base/gxshade4.c
gs/base/gxshade4.h
gs/base/gxshade6.c
gs/base/gxstate.h
gs/base/gxstdio.h
gs/base/gxstroke.c
gs/base/gxsync.c
gs/base/gxsync.h
gs/base/gxtext.h
gs/base/gxtmap.h
gs/base/gxttf.h
gs/base/gxttfb.c
gs/base/gxttfb.h
gs/base/gxtype1.c
gs/base/gxtype1.h
gs/base/gxwts.c
gs/base/gxwts.h
gs/base/gxxfont.h
gs/base/gzacpath.h
gs/base/gzcpath.h
gs/base/gzht.h
gs/base/gzline.h
gs/base/gzpath.h
gs/base/gzspotan.c
gs/base/gzspotan.h
gs/base/gzstate.h
gs/base/jerror_.h
gs/base/locale_.h
gs/base/macos_carbon_d_pre.h
gs/base/macos_carbon_pre.h
gs/base/macos_classic_d_pre.h
gs/base/macsystypes.h
gs/base/malloc_.h
gs/base/math_.h
gs/base/md5.c
gs/base/md5.h
gs/base/md5main.c
gs/base/memory_.h
gs/base/minftrsz.c
gs/base/mkromfs.c
gs/base/opdfread.h
gs/base/pipe_.h
gs/base/png_.h
gs/base/rinkj/evenbetter-rll.c
gs/base/rinkj/evenbetter-rll.h
gs/base/rinkj/rinkj-byte-stream.c
gs/base/rinkj/rinkj-byte-stream.h
gs/base/rinkj/rinkj-config.c
gs/base/rinkj/rinkj-config.h
gs/base/rinkj/rinkj-device.c
gs/base/rinkj/rinkj-device.h
gs/base/rinkj/rinkj-dither.c
gs/base/rinkj/rinkj-dither.h
gs/base/rinkj/rinkj-epson870.c
gs/base/rinkj/rinkj-epson870.h
gs/base/rinkj/rinkj-screen-eb.c
gs/base/rinkj/rinkj-screen-eb.h
gs/base/sa85d.c
gs/base/sa85d.h
gs/base/sa85x.h
gs/base/saes.c
gs/base/saes.h
gs/base/sarc4.c
gs/base/sarc4.h
gs/base/sbcp.c
gs/base/sbcp.h
gs/base/sbhc.c
gs/base/sbhc.h
gs/base/sbtx.h
gs/base/sbwbs.c
gs/base/sbwbs.h
gs/base/scanchar.h
gs/base/scantab.c
gs/base/scf.h
gs/base/scfd.c
gs/base/scfdgen.c
gs/base/scfdtab.c
gs/base/scfe.c
gs/base/scfetab.c
gs/base/scfparam.c
gs/base/scfx.h
gs/base/scommon.h
gs/base/sdcparam.c
gs/base/sdcparam.h
gs/base/sdct.h
gs/base/sdctd.c
gs/base/sdcte.c
gs/base/sddparam.c
gs/base/sdeparam.c
gs/base/seexec.c
gs/base/setjmp_.h
gs/base/sfilter.h
gs/base/sfilter2.c
gs/base/sfxboth.c
gs/base/sfxcommon.c
gs/base/sfxfd.c
gs/base/sfxstdio.c
gs/base/sha2.c
gs/base/sha2.h
gs/base/shc.c
gs/base/shc.h
gs/base/shcgen.c
gs/base/shcgen.h
gs/base/sidscale.c
gs/base/sidscale.h
gs/base/siinterp.c
gs/base/siinterp.h
gs/base/simscale.c
gs/base/simscale.h
gs/base/siscale.c
gs/base/siscale.h
gs/base/sisparam.h
gs/base/sjbig2.c
gs/base/sjbig2.h
gs/base/sjbig2_luratech.c
gs/base/sjbig2_luratech.h
gs/base/sjpeg.h
gs/base/sjpegc.c
gs/base/sjpegd.c
gs/base/sjpege.c
gs/base/sjpx.c
gs/base/sjpx_luratech.c
gs/base/sjpx_luratech.h
gs/base/slzwc.c
gs/base/slzwd.c
gs/base/slzwe.c
gs/base/slzwx.h
gs/base/smd5.c
gs/base/smd5.h
gs/base/smtf.c
gs/base/smtf.h
gs/base/spdiff.c
gs/base/spdiffx.h
gs/base/spngp.c
gs/base/spngpx.h
gs/base/spprint.c
gs/base/spprint.h
gs/base/spsdf.c
gs/base/spsdf.h
gs/base/srdline.h
gs/base/srld.c
gs/base/srle.c
gs/base/srlx.h
gs/base/ssha2.c
gs/base/sstring.c
gs/base/sstring.h
gs/base/stat_.h
gs/base/std.h
gs/base/stdint_.h
gs/base/stdio_.h
gs/base/stdpn.h
gs/base/stdpre.h
gs/base/stream.c
gs/base/stream.h
gs/base/strimpl.h
gs/base/string_.h
gs/base/strmio.h
gs/base/szlibc.c
gs/base/szlibe.c
gs/base/szlibx.h
gs/base/szlibxx.h
gs/base/time_.h
gs/base/ttcalc.c
gs/base/ttcalc.h
gs/base/ttcommon.h
gs/base/ttconf.h
gs/base/ttconfig.h
gs/base/ttfinp.c
gs/base/ttfinp.h
gs/base/ttfmain.c
gs/base/ttfmemd.c
gs/base/ttfmemd.h
gs/base/ttfoutl.h
gs/base/ttfsfnt.h
gs/base/ttinterp.c
gs/base/ttinterp.h
gs/base/ttload.c
gs/base/ttload.h
gs/base/ttmisc.h
gs/base/ttobjs.c
gs/base/ttobjs.h
gs/base/tttables.h
gs/base/tttype.h
gs/base/tttypes.h
gs/base/unistd_.h
gs/base/valgrind.h
gs/base/vdtrace.c
gs/base/vdtrace.h
gs/base/vms_x_fix.h
gs/base/vmsmath.h
gs/base/whitelst.c
gs/base/whitelst.h
gs/base/windows_.h
gs/base/wtsimdi.c
gs/base/x_.h
gs/contrib/defs.h
gs/contrib/eplaser/gdevescv.c
gs/contrib/eplaser/gdevescv.h
gs/contrib/gdevbjc_.c
gs/contrib/gdevbjc_.h
gs/contrib/gdevbjca.c
gs/contrib/gdevcd8.c
gs/contrib/gdevdj9.c
gs/contrib/gdevgdi.c
gs/contrib/gdevhl12.c
gs/contrib/gdevln03.c
gs/contrib/gdevlx32.c
gs/contrib/gdevlx50.c
gs/contrib/gdevlx7.c
gs/contrib/gdevmd2k.c
gs/contrib/gdevop4w.c
gs/contrib/gdevxes.c
gs/contrib/gomni.c
gs/contrib/japanese/dviprlib.c
gs/contrib/japanese/dviprlib.h
gs/contrib/japanese/gdev10v.c
gs/contrib/japanese/gdevalps.c
gs/contrib/japanese/gdevdmpr.c
gs/contrib/japanese/gdevespg.c
gs/contrib/japanese/gdevfmlbp.c
gs/contrib/japanese/gdevfmpr.c
gs/contrib/japanese/gdevj100.c
gs/contrib/japanese/gdevlbp3.c
gs/contrib/japanese/gdevmag.c
gs/contrib/japanese/gdevmjc.c
gs/contrib/japanese/gdevmjc.h
gs/contrib/japanese/gdevml6.c
gs/contrib/japanese/gdevnpdl.c
gs/contrib/japanese/gdevp201.c
gs/contrib/japanese/gdevrpdl.c
gs/contrib/lips4/gdevl4r.c
gs/contrib/lips4/gdevl4v.c
gs/contrib/lips4/gdevlips.c
gs/contrib/lips4/gdevlips.h
gs/contrib/lips4/gdevlprn.c
gs/contrib/lips4/gdevlprn.h
gs/contrib/opvp/gdevopvp.c
gs/contrib/opvp/opvp.h
gs/contrib/opvp/opvp_0_2_0.h
gs/contrib/opvp/opvp_common.h
gs/contrib/pcl3/eprn/eprnfs.c
gs/contrib/pcl3/eprn/eprnparm.c
gs/contrib/pcl3/eprn/eprnrend.c
gs/contrib/pcl3/eprn/gdeveprn.h
gs/contrib/pcl3/eprn/mediasize.c
gs/contrib/pcl3/eprn/mediasize.h
gs/contrib/pcl3/eprn/pagecount.c
gs/contrib/pcl3/ps/calign.ps
gs/contrib/pcl3/ps/levels-test.ps
gs/contrib/pcl3/src/pcl3opts.c
gs/contrib/pcl3/src/pclcap.c
gs/contrib/pcl3/src/pclcomp.c
gs/contrib/pcl3/src/pclgen.c
gs/contrib/pcl3/src/pclgen.h
gs/contrib/pcl3/src/pclscan.c
gs/contrib/pcl3/src/pclscan.h
gs/contrib/pcl3/src/pclsize.c
gs/contrib/pcl3/src/pclsize.h
gs/contrib/pscolor/black.ps
gs/contrib/pscolor/color.ps
gs/contrib/pscolor/input.ps
gs/contrib/pscolor/test.c
gs/icclib/icc.c
gs/icclib/icc.h
gs/icclib/icc9809.h
gs/ijs/ijs.c
gs/ijs/ijs_client.c
gs/ijs/ijs_client.h
gs/ijs/ijs_client_example.c
gs/ijs/ijs_exec_unix.c
gs/ijs/ijs_exec_win.c
gs/ijs/ijs_server.c
gs/ijs/ijs_server.h
gs/ijs/ijs_server_example.c
gs/ijs/ijs_spec.ps
gs/imdi/arch.h
gs/imdi/cctiff.c
gs/imdi/cgen.c
gs/imdi/config.h
gs/imdi/copyright.h
gs/imdi/imdi.c
gs/imdi/imdi.h
gs/imdi/imdi_gen.c
gs/imdi/imdi_gen.h
gs/imdi/imdi_imp.h
gs/imdi/imdi_k.c
gs/imdi/imdi_k.h
gs/imdi/imdi_tab.c
gs/imdi/imdi_tab.h
gs/lib/EndOfTask.ps
gs/lib/PDFA_def.ps
gs/lib/PDFX_def.ps
gs/lib/acctest.ps
gs/lib/addxchar.ps
gs/lib/align.ps
gs/lib/bdftops.ps
gs/lib/caption.ps
gs/lib/cat.ps
gs/lib/cid2code.ps
gs/lib/docie.ps
gs/lib/dumphint.ps
gs/lib/font2c.ps
gs/lib/font2pcl.ps
gs/lib/gs_ce_e.ps
gs/lib/gs_cmdl.ps
gs/lib/gs_fform.ps
gs/lib/gs_il2_e.ps
gs/lib/gs_kanji.ps
gs/lib/gs_ksb_e.ps
gs/lib/gs_lgo_e.ps
gs/lib/gs_lgx_e.ps
gs/lib/gs_pfile.ps
gs/lib/gs_rdlin.ps
gs/lib/gs_wl1_e.ps
gs/lib/gs_wl2_e.ps
gs/lib/gs_wl5_e.ps
gs/lib/gslp.ps
gs/lib/gsnup.ps
gs/lib/image-qa.ps
gs/lib/impath.ps
gs/lib/jispaper.ps
gs/lib/landscap.ps
gs/lib/lines.ps
gs/lib/markhint.ps
gs/lib/markpath.ps
gs/lib/mkcidfm.ps
gs/lib/opdfread.ps
gs/lib/packfile.ps
gs/lib/pcharstr.ps
gs/lib/pdf2dsc.ps
gs/lib/pdfopt.ps
gs/lib/pdfwrite.ps
gs/lib/pf2afm.ps
gs/lib/pfbtopfa.ps
gs/lib/ppath.ps
gs/lib/pphs.ps
gs/lib/prfont.ps
gs/lib/printafm.ps
gs/lib/ps2ai.ps
gs/lib/ps2ascii.ps
gs/lib/ps2epsi.ps
gs/lib/rollconv.ps
gs/lib/showchar.ps
gs/lib/stcinfo.ps
gs/lib/stcolor.ps
gs/lib/stocht.ps
gs/lib/traceimg.ps
gs/lib/traceop.ps
gs/lib/type1enc.ps
gs/lib/type1ops.ps
gs/lib/uninfo.ps
gs/lib/unprot.ps
gs/lib/viewcmyk.ps
gs/lib/viewgif.ps
gs/lib/viewjpeg.ps
gs/lib/viewmiff.ps
gs/lib/viewpbm.ps
gs/lib/viewpcx.ps
gs/lib/viewps2a.ps
gs/lib/viewrgb.ps
gs/lib/wftopfa.ps
gs/lib/winmaps.ps
gs/lib/wrfont.ps
gs/lib/zeroline.ps
gs/psi/bfont.h
gs/psi/btoken.h
gs/psi/dmmain.c
gs/psi/dpmain.c
gs/psi/dscparse.c
gs/psi/dscparse.h
gs/psi/dstack.h
gs/psi/dwdll.c
gs/psi/dwdll.h
gs/psi/dwimg.c
gs/psi/dwimg.h
gs/psi/dwinst.h
gs/psi/dwmain.c
gs/psi/dwmainc.c
gs/psi/dwnodll.c
gs/psi/dwreg.c
gs/psi/dwreg.h
gs/psi/dwres.h
gs/psi/dwsetup.h
gs/psi/dwtext.c
gs/psi/dwtext.h
gs/psi/dwtrace.c
gs/psi/dwtrace.h
gs/psi/dwuninst.h
gs/psi/dxmain.c
gs/psi/dxmainc.c
gs/psi/estack.h
gs/psi/fapi_ft.c
gs/psi/fapibstm.c
gs/psi/fapiufst.c
gs/psi/files.h
gs/psi/ghost.h
gs/psi/gs.c
gs/psi/gsdll.c
gs/psi/gserver.c
gs/psi/ialloc.c
gs/psi/ialloc.h
gs/psi/iapi.c
gs/psi/iapi.h
gs/psi/iastate.h
gs/psi/iastruct.h
gs/psi/ibnum.c
gs/psi/ibnum.h
gs/psi/ichar.h
gs/psi/ichar1.h
gs/psi/icharout.h
gs/psi/icid.h
gs/psi/icie.h
gs/psi/icolor.h
gs/psi/iconf.c
gs/psi/iconf.h
gs/psi/icontext.c
gs/psi/icontext.h
gs/psi/icremap.h
gs/psi/icsmap.h
gs/psi/icstate.h
gs/psi/iddict.h
gs/psi/iddstack.h
gs/psi/idebug.c
gs/psi/idebug.h
gs/psi/idict.c
gs/psi/idict.h
gs/psi/idictdef.h
gs/psi/idicttpl.h
gs/psi/idisp.c
gs/psi/idisp.h
gs/psi/idosave.h
gs/psi/idparam.c
gs/psi/idparam.h
gs/psi/idsdata.h
gs/psi/idstack.c
gs/psi/idstack.h
gs/psi/ierrors.h
gs/psi/iesdata.h
gs/psi/iestack.h
gs/psi/ifapi.h
gs/psi/ifcid.h
gs/psi/ifilter.h
gs/psi/ifilter2.h
gs/psi/ifont.h
gs/psi/ifont1.h
gs/psi/ifont2.h
gs/psi/ifont42.h
gs/psi/ifrpred.h
gs/psi/ifunc.h
gs/psi/ifwpred.h
gs/psi/igc.c
gs/psi/igc.h
gs/psi/igcref.c
gs/psi/igcstr.c
gs/psi/igcstr.h
gs/psi/igstate.h
gs/psi/iht.h
gs/psi/iimage.h
gs/psi/iimage2.h
gs/psi/iinit.c
gs/psi/iinit.h
gs/psi/ilevel.h
gs/psi/ilocate.c
gs/psi/imain.c
gs/psi/imain.h
gs/psi/imainarg.h
gs/psi/imemory.h
gs/psi/iminst.h
gs/psi/iname.c
gs/psi/iname.h
gs/psi/inamedef.h
gs/psi/inameidx.h
gs/psi/inames.h
gs/psi/inamestr.h
gs/psi/inobtokn.c
gs/psi/inouparm.c
gs/psi/interp.h
gs/psi/iosdata.h
gs/psi/iostack.h
gs/psi/ipacked.h
gs/psi/iparam.c
gs/psi/iparam.h
gs/psi/iparray.h
gs/psi/ipcolor.h
gs/psi/iplugin.c
gs/psi/iplugin.h
gs/psi/ireclaim.c
gs/psi/iref.h
gs/psi/isave.c
gs/psi/isave.h
gs/psi/iscanbin.c
gs/psi/iscanbin.h
gs/psi/iscannum.c
gs/psi/iscannum.h
gs/psi/isdata.h
gs/psi/isstate.h
gs/psi/istack.c
gs/psi/istack.h
gs/psi/istkparm.h
gs/psi/istream.h
gs/psi/istruct.h
gs/psi/iutil.c
gs/psi/iutil.h
gs/psi/iutil2.c
gs/psi/iutil2.h
gs/psi/ivmem2.h
gs/psi/ivmspace.h
gs/psi/main.h
gs/psi/oparc.h
gs/psi/opcheck.h
gs/psi/opdef.h
gs/psi/oper.h
gs/psi/opextern.h
gs/psi/ostack.h
gs/psi/sfilter1.c
gs/psi/store.h
gs/psi/wrfont.c
gs/psi/wrfont.h
gs/psi/write_t1.c
gs/psi/write_t1.h
gs/psi/write_t2.c
gs/psi/write_t2.h
gs/psi/zalg.c
gs/psi/zarith.c
gs/psi/zarray.c
gs/psi/zbfont.c
gs/psi/zbseq.c
gs/psi/zcfont.c
gs/psi/zchar.c
gs/psi/zchar1.c
gs/psi/zchar2.c
gs/psi/zchar32.c
gs/psi/zchar42.c
gs/psi/zchar42.h
gs/psi/zcharout.c
gs/psi/zcharx.c
gs/psi/zcid.c
gs/psi/zcidtest.c
gs/psi/zcie.c
gs/psi/zcie.h
gs/psi/zcolor.c
gs/psi/zcolor.h
gs/psi/zcolor1.c
gs/psi/zcolor2.c
gs/psi/zcolor3.c
gs/psi/zcontext.c
gs/psi/zcontrol.c
gs/psi/zcrd.c
gs/psi/zcsdevn.c
gs/psi/zcsindex.c
gs/psi/zcspixel.c
gs/psi/zcssepr.c
gs/psi/zdevcal.c
gs/psi/zdevice.c
gs/psi/zdevice2.c
gs/psi/zdfilter.c
gs/psi/zdict.c
gs/psi/zdosio.c
gs/psi/zdouble.c
gs/psi/zdpnext.c
gs/psi/zdps.c
gs/psi/zdps1.c
gs/psi/zdscpars.c
gs/psi/zfaes.c
gs/psi/zfapi.c
gs/psi/zfarc4.c
gs/psi/zfbcp.c
gs/psi/zfcid.c
gs/psi/zfcid0.c
gs/psi/zfcid1.c
gs/psi/zfcmap.c
gs/psi/zfdctd.c
gs/psi/zfdcte.c
gs/psi/zfdecode.c
gs/psi/zfile.c
gs/psi/zfile.h
gs/psi/zfile1.c
gs/psi/zfileio.c
gs/psi/zfilter.c
gs/psi/zfilter2.c
gs/psi/zfilterx.c
gs/psi/zfimscale.c
gs/psi/zfjbig2.c
gs/psi/zfjpx.c
gs/psi/zfmd5.c
gs/psi/zfont.c
gs/psi/zfont0.c
gs/psi/zfont1.c
gs/psi/zfont2.c
gs/psi/zfont32.c
gs/psi/zfont42.c
gs/psi/zfontenum.c
gs/psi/zfproc.c
gs/psi/zfrsd.c
gs/psi/zfrsd.h
gs/psi/zfsample.c
gs/psi/zfunc.c
gs/psi/zfunc.h
gs/psi/zfunc0.c
gs/psi/zfunc3.c
gs/psi/zfunc4.c
gs/psi/zfzlib.c
gs/psi/zgeneric.c
gs/psi/zgstate.c
gs/psi/zhsb.c
gs/psi/zht.c
gs/psi/zht1.c
gs/psi/zht2.c
gs/psi/zht2.h
gs/psi/zicc.c
gs/psi/zicc.h
gs/psi/zimage.c
gs/psi/zimage2.c
gs/psi/zimage3.c
gs/psi/ziodev2.c
gs/psi/ziodevs.c
gs/psi/ziodevsc.c
gs/psi/zmath.c
gs/psi/zmatrix.c
gs/psi/zmedia2.c
gs/psi/zmisc.c
gs/psi/zmisc1.c
gs/psi/zmisc2.c
gs/psi/zmisc3.c
gs/psi/zncdummy.c
gs/psi/zpacked.c
gs/psi/zpaint.c
gs/psi/zpath.c
gs/psi/zpath1.c
gs/psi/zpcolor.c
gs/psi/zpdfops.c
gs/psi/zrelbit.c
gs/psi/zrop.c
gs/psi/zshade.c
gs/psi/zstack.c
gs/psi/zstring.c
gs/psi/zsysvm.c
gs/psi/ztrans.c
gs/psi/ztrap.c
gs/psi/zupath.c
gs/psi/zusparam.c
gs/psi/zutf8.c
gs/psi/zvmem.c
gs/psi/zvmem2.c
gs/psi/zwinutf8.c
gs/toolbin/GenSubstCID.ps
gs/toolbin/bmpcmp.c
gs/toolbin/color/halftone/halfttoning/halftone.c
gs/toolbin/color/icc_creator/ICC_Creator/CIELAB.h
gs/toolbin/color/icc_creator/ICC_Creator/ICC_Creator.h
gs/toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.h
gs/toolbin/color/icc_creator/ICC_Creator/icc34.h
gs/toolbin/color/icc_creator/ICC_Creator/icc_create.h
gs/toolbin/color/icc_creator/ICC_Creator/resource.h
gs/toolbin/color/icc_creator/ICC_Creator/stdafx.h
gs/toolbin/color/icc_creator/ICC_Creator/targetver.h
gs/toolbin/drawafm.ps
gs/toolbin/encs2c.ps
gs/toolbin/extractFonts.ps
gs/toolbin/extractICCprofiles.ps
gs/toolbin/genfontmap.ps
gs/toolbin/jpxtopdf.c
gs/toolbin/pdf_info.ps
gs/toolbin/pdfinflt.ps
gs/toolbin/tests/fuzzy.c
pcl/pcbiptrn.c
pcl/pccid.c
pcl/pccolor.c
pcl/pccprint.c
pcl/pccrd.c
pcl/pccrd.h
pcl/pccsbase.c
pcl/pccsbase.h
pcl/pcdict.h
pcl/pcdraw.c
pcl/pcfont.c
pcl/pcfont.h
pcl/pcfontpg.c
pcl/pcfrgrnd.c
pcl/pcfrgrnd.h
pcl/pcfsel.c
pcl/pcfsel.h
pcl/pcht.c
pcl/pcht.h
pcl/pcimpl.c
pcl/pcindxed.c
pcl/pcindxed.h
pcl/pcjob.c
pcl/pclookup.c
pcl/pclookup.h
pcl/pcmacros.c
pcl/pcmisc.c
pcl/pcmtx3.c
pcl/pcmtx3.h
pcl/pcommand.c
pcl/pcommand.h
pcl/pcpage.c
pcl/pcpalet.c
pcl/pcpalet.h
pcl/pcparse.c
pcl/pcparse.h
pcl/pcpatrn.c
pcl/pcpatrn.h
pcl/pcpattyp.h
pcl/pcpatxfm.c
pcl/pcpatxfm.h
pcl/pcrect.c
pcl/pcsfont.c
pcl/pcstate.h
pcl/pcstatus.c
pcl/pcsymbol.c
pcl/pcsymbol.h
pcl/pctext.c
pcl/pctop.c
pcl/pctop.h
pcl/pctpm.h
pcl/pcuptrn.c
pcl/pcursor.c
pcl/pcwhtidx.c
pcl/pcxfmst.h
pcl/pgchar.c
pcl/pgcolor.c
pcl/pgconfig.c
pcl/pgdraw.c
pcl/pgdraw.h
pcl/pgfdata.c
pcl/pgfdata.h
pcl/pgfont.c
pcl/pgframe.c
pcl/pggeom.c
pcl/pggeom.h
pcl/pglabel.c
pcl/pglfill.c
pcl/pgmisc.c
pcl/pgmisc.h
pcl/pgparse.c
pcl/pgpoly.c
pcl/pgstate.h
pcl/rtgmode.c
pcl/rtgmode.h
pcl/rtmisc.c
pcl/rtraster.c
pcl/rtrstcmp.c
pcl/rtrstcmp.h
pcl/rtrstst.h
pl/dwimg.c
pl/dwimg.h
pl/dwmainc.c
pl/dwreg.c
pl/dwreg.h
pl/dwres.h
pl/pjparse.c
pl/pjparse.h
pl/pjparsei.c
pl/pjtop.c
pl/pjtop.h
pl/plalloc.c
pl/plalloc.h
pl/plapi.h
pl/plchar.c
pl/pldict.c
pl/pldict.h
pl/pldraw.c
pl/plfont.c
pl/plfont.h
pl/plftable.c
pl/plht.c
pl/plimpl.c
pl/pllfont.c
pl/plmain.c
pl/plplatf.c
pl/plplatf.h
pl/plplatfps.c
pl/plsrgb.c
pl/plsymbol.c
pl/plsymbol.h
pl/pltop.c
pl/pltop.h
pl/pltoputl.c
pl/pltoputl.h
pl/pluchar.c
pl/plufont.c
pl/plulfont.c
pl/plvocab.c
psi/psitop.c
pxl/pxasm.ps
pxl/pxbfont.c
pxl/pxbfont.ps
pxl/pxerrors.h
pxl/pxffont.c
pxl/pxfont.c
pxl/pxgstate.c
pxl/pxgstate.h
pxl/pximage.c
pxl/pximpl.c
pxl/pxink.c
pxl/pxoper.h
pxl/pxpaint.c
pxl/pxparse.c
pxl/pxparse.h
pxl/pxpthr.c
pxl/pxsessio.c
pxl/pxstate.c
pxl/pxstate.h
pxl/pxstream.c
pxl/pxsymbol.ps
pxl/pxtop.c
pxl/pxvalue.c
pxl/pxvalue.h
svg/ghostsvg.h
svg/svgcolor.c
svg/svgdoc.c
svg/svgshapes.c
svg/svgtop.c
svg/svgtransform.c
svg/svgtypes.c
svg/svgxml.c
tools/GOT/detag.c
tools/GOT/tagimage.c
tools/gslite/gslt.h
tools/gslite/gslt_alloc.c
tools/gslite/gslt_alloc.h
tools/gslite/gslt_font.h
tools/gslite/gslt_font_api.c
tools/gslite/gslt_font_api.h
tools/gslite/gslt_font_api_test.c
tools/gslite/gslt_font_cache.c
tools/gslite/gslt_font_cff.c
tools/gslite/gslt_font_encoding.c
tools/gslite/gslt_font_glyph.c
tools/gslite/gslt_font_int.h
tools/gslite/gslt_font_test.c
tools/gslite/gslt_font_ttf.c
tools/gslite/gslt_image.c
tools/gslite/gslt_image.h
tools/gslite/gslt_image_jpeg.c
tools/gslite/gslt_image_png.c
tools/gslite/gslt_image_test.c
tools/gslite/gslt_image_threads_test.c
tools/gslite/gslt_image_tiff.c
tools/gslite/gslt_init.c
tools/gslite/gslt_test.c
tools/tt2pcl.c
tools/xps2tiff/xps2tiff/stdafx.h
xps/xpsgradient.c

2011-04-19 23:40:49 +0200
Tor Andersson
0b17959f31afe3baffbc328e7f92e88e634ad8b8

Introduce end-of-line normalization.
.gitattributes
.gitignore
COPYING.AFPL
gs/.gitignore
gs/Resource/Init/FAPIcidfmap
gs/Resource/Init/FAPIconfig
gs/Resource/Init/FAPIfontmap
gs/Resource/Init/gs_agl.ps
gs/Resource/Init/gs_mgl_e.ps
gs/Resource/Init/gs_mro_e.ps
gs/base/gdevplib.c
gs/base/gs_agl.h
gs/base/gs_mgl_e.h
gs/base/gs_mro_e.h
gs/base/gsicc_lcms2.c
gs/base/gxht_thresh.c
gs/base/gxht_thresh.h
gs/base/lcups.mak
gs/base/lcupsi.mak
gs/base/opdfread.h
gs/base/whitelst.c
gs/base/whitelst.h
gs/cups/libs/filter/image-colorspace.c
gs/doc/Details9.htm
gs/doc/GS9_Color_Management.tex
gs/doc/History9.htm
gs/doc/figures/Overview.eps
gs/expat/examples/elements.dsp
gs/expat/examples/outline.dsp
gs/expat/expat.dsw
gs/expat/lib/expat.dsp
gs/expat/lib/expat_static.dsp
gs/expat/lib/expatw.dsp
gs/expat/lib/expatw_static.dsp
gs/expat/tests/benchmark/benchmark.dsp
gs/expat/tests/benchmark/benchmark.dsw
gs/expat/xmlwf/xmlwf.dsp
gs/freetype/builds/win32/vc2005/freetype.sln
gs/freetype/builds/win32/vc2005/freetype.vcproj
gs/freetype/builds/win32/vc2008/freetype.sln
gs/freetype/builds/win32/vc2008/freetype.vcproj
gs/freetype/builds/win32/visualc/freetype.dsp
gs/freetype/builds/win32/visualc/freetype.dsw
gs/freetype/builds/win32/visualc/freetype.sln
gs/freetype/builds/win32/visualc/freetype.vcproj
gs/freetype/builds/win32/visualce/freetype.dsp
gs/freetype/builds/win32/visualce/freetype.dsw
gs/freetype/builds/win32/visualce/freetype.vcproj
gs/freetype/builds/wince/vc2005-ce/freetype.sln
gs/freetype/builds/wince/vc2005-ce/freetype.vcproj
gs/freetype/builds/wince/vc2008-ce/freetype.sln
gs/freetype/builds/wince/vc2008-ce/freetype.vcproj
gs/ghostscript-ufst.vcproj
gs/ghostscript.vcproj
gs/jasper/src/msvc/imgcmp.dsp
gs/jasper/src/msvc/imginfo.dsp
gs/jasper/src/msvc/jasper.dsp
gs/jasper/src/msvc/jasper.dsw
gs/jasper/src/msvc/jiv.dsp
gs/jasper/src/msvc/libjasper.dsp
gs/jpegxr/APP.rc
gs/jpegxr/APP.vcproj
gs/jpegxr/DLL.rc
gs/jpegxr/DLL.vcproj
gs/jpegxr/JPEG-XR.sln
gs/lcms/Delphi/Samples/MAKETEST.BAT
gs/lcms/Delphi/Samples/gamutchk.pas
gs/lcms/Projects/BorlandC_5.5/lcms.rc
gs/lcms/Projects/BorlandC_5.5/lcmsdll.lk
gs/lcms/Projects/BorlandC_5.5/lcmsdll.lst
gs/lcms/Projects/BorlandC_5.5/mklcmsdll.bat
gs/lcms/Projects/VC2005/Python.vcproj
gs/lcms/Projects/VC2005/Testbed.vcproj
gs/lcms/Projects/VC2005/icc2ps.vcproj
gs/lcms/Projects/VC2005/icclink.vcproj
gs/lcms/Projects/VC2005/icctrans.vcproj
gs/lcms/Projects/VC2005/jpegicc.vcproj
gs/lcms/Projects/VC2005/lcms.rc
gs/lcms/Projects/VC2005/lcms.sln
gs/lcms/Projects/VC2005/lcms.vcproj
gs/lcms/Projects/VC2005/lcmsdll.vcproj
gs/lcms/Projects/VC2005/tiffdiff.vcproj
gs/lcms/Projects/VC2005/tifficc.vcproj
gs/lcms/Projects/VC2008/Python.vcproj
gs/lcms/Projects/VC2008/Testbed.vcproj
gs/lcms/Projects/VC2008/icc2ps.vcproj
gs/lcms/Projects/VC2008/icclink.vcproj
gs/lcms/Projects/VC2008/icctrans.vcproj
gs/lcms/Projects/VC2008/jpegicc.vcproj
gs/lcms/Projects/VC2008/lcms.rc
gs/lcms/Projects/VC2008/lcms.sln
gs/lcms/Projects/VC2008/lcms.vcproj
gs/lcms/Projects/VC2008/lcmsdll.vcproj
gs/lcms/Projects/VC2008/tiffdiff.vcproj
gs/lcms/Projects/VC2008/tifficc.vcproj
gs/lcms/Projects/VC6/Python.dsp
gs/lcms/Projects/VC6/Python.plg
gs/lcms/Projects/VC6/Testbed.dsp
gs/lcms/Projects/VC6/Testbed.plg
gs/lcms/Projects/VC6/icc2ps.dsp
gs/lcms/Projects/VC6/icclink.dsp
gs/lcms/Projects/VC6/icctrans.dsp
gs/lcms/Projects/VC6/jpegicc.dsp
gs/lcms/Projects/VC6/lcms.dsp
gs/lcms/Projects/VC6/lcms.dsw
gs/lcms/Projects/VC6/lcms.rc
gs/lcms/Projects/VC6/lcmsdll.dsp
gs/lcms/Projects/VC6/tifficc.dsp
gs/lcms/Projects/VC7/Python.vcproj
gs/lcms/Projects/VC7/Testbed.vcproj
gs/lcms/Projects/VC7/icc2ps.vcproj
gs/lcms/Projects/VC7/icclink.vcproj
gs/lcms/Projects/VC7/icctrans.vcproj
gs/lcms/Projects/VC7/jpegicc.vcproj
gs/lcms/Projects/VC7/lcms.rc
gs/lcms/Projects/VC7/lcms.sln
gs/lcms/Projects/VC7/lcms.vcproj
gs/lcms/Projects/VC7/lcmsdll.vcproj
gs/lcms/Projects/VC7/tiffdiff.vcproj
gs/lcms/Projects/VC7/tifficc.vcproj
gs/lcms2/Projects/VC2010/lcms2_static/lcms2_static.vcxproj
gs/lcms2/utils/delphi/delphidemo.dpr
gs/lcms2/utils/delphi/delphidemo.dproj
gs/lcms2/utils/delphi/demo1.pas
gs/lcms2/utils/delphi/lcms2dll.pas
gs/lcms2/utils/matlab/icctrans.c
gs/lib/opdfread.ps
gs/libpng/contrib/visupng/VisualPng.dsp
gs/libpng/contrib/visupng/VisualPng.dsw
gs/libpng/contrib/visupng/VisualPng.rc
gs/libpng/projects/cbuilder5/libpng.bpf
gs/libpng/projects/cbuilder5/libpng.bpg
gs/libpng/projects/cbuilder5/libpng.bpr
gs/libpng/projects/cbuilder5/libpng.cpp
gs/libpng/projects/cbuilder5/libpngstat.bpf
gs/libpng/projects/cbuilder5/libpngstat.bpr
gs/libpng/projects/visualc6/libpng.dsp
gs/libpng/projects/visualc6/libpng.dsw
gs/libpng/projects/visualc6/pngtest.dsp
gs/libpng/projects/visualc71/libpng.sln
gs/libpng/projects/visualc71/libpng.vcproj
gs/libpng/projects/visualc71/pngtest.vcproj
gs/libpng/projects/visualc71/zlib.vcproj
gs/psi/dw64c.def
gs/psi/dwmain64.def
gs/psi/gsdll64.def
gs/psi/msvc.mak
gs/psi/msvc64.mak
gs/psi/nsisinst.nsi
gs/tiff/man/tiffcrop.1
gs/toolbin/color/halftone/README
gs/toolbin/color/halftone/halfttoning.sln
gs/toolbin/color/halftone/halfttoning/halftone.c
gs/toolbin/color/halftone/halfttoning/halfttoning.vcproj
gs/toolbin/color/icc_creator/ICC_Creator.sln
gs/toolbin/color/icc_creator/ICC_Creator/ICC_Creator.rc
gs/toolbin/color/icc_creator/ICC_Creator/ICC_Creator.vcproj
gs/toolbin/color/icc_creator/ucr_bg.txt
gs/toolbin/gen_ldf_jb2.py
gs/toolbin/pdf_info.ps
gs/zlib/contrib/dotzlib/DotZLib.build
gs/zlib/contrib/dotzlib/DotZLib.sln
gs/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs
gs/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs
gs/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs
gs/zlib/contrib/dotzlib/DotZLib/CodecBase.cs
gs/zlib/contrib/dotzlib/DotZLib/Deflater.cs
gs/zlib/contrib/dotzlib/DotZLib/DotZLib.cs
gs/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj
gs/zlib/contrib/dotzlib/DotZLib/GZipStream.cs
gs/zlib/contrib/dotzlib/DotZLib/Inflater.cs
gs/zlib/contrib/dotzlib/DotZLib/UnitTests.cs
gs/zlib/contrib/masm686/match.asm
gs/zlib/contrib/masmx64/bld_ml64.bat
gs/zlib/contrib/masmx64/gvmat64.asm
gs/zlib/contrib/masmx64/inffas8664.c
gs/zlib/contrib/masmx64/inffasx64.asm
gs/zlib/contrib/masmx86/bld_ml32.bat
gs/zlib/contrib/masmx86/gvmat32.asm
gs/zlib/contrib/masmx86/gvmat32c.c
gs/zlib/contrib/masmx86/inffas32.asm
gs/zlib/contrib/masmx86/mkasm.bat
gs/zlib/contrib/vstudio/vc7/miniunz.vcproj
gs/zlib/contrib/vstudio/vc7/minizip.vcproj
gs/zlib/contrib/vstudio/vc7/testzlib.vcproj
gs/zlib/contrib/vstudio/vc7/zlib.rc
gs/zlib/contrib/vstudio/vc7/zlibstat.vcproj
gs/zlib/contrib/vstudio/vc7/zlibvc.def
gs/zlib/contrib/vstudio/vc7/zlibvc.sln
gs/zlib/contrib/vstudio/vc7/zlibvc.vcproj
gs/zlib/contrib/vstudio/vc8/miniunz.vcproj
gs/zlib/contrib/vstudio/vc8/minizip.vcproj
gs/zlib/contrib/vstudio/vc8/testzlib.vcproj
gs/zlib/contrib/vstudio/vc8/testzlibdll.vcproj
gs/zlib/contrib/vstudio/vc8/zlib.rc
gs/zlib/contrib/vstudio/vc8/zlibstat.vcproj
gs/zlib/contrib/vstudio/vc8/zlibvc.def
gs/zlib/contrib/vstudio/vc8/zlibvc.sln
gs/zlib/contrib/vstudio/vc8/zlibvc.vcproj
gs/zlib/projects/visualc6/example.dsp
gs/zlib/projects/visualc6/minigzip.dsp
gs/zlib/projects/visualc6/zlib.dsp
gs/zlib/projects/visualc6/zlib.dsw
pl/dwimg.c
pl/dwimg.h
pl/dwmainc.c
pl/dwreg.c
pl/dwreg.h
pl/dwres.h
tools/Acrobat2Tiff/Acrobat2Tiff.sln
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff.vb
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff.vbproj
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Application.Designer.vb
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Application.myapp
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/AssemblyInfo.vb
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Resources.Designer.vb
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Resources.resx
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Settings.Designer.vb
tools/Acrobat2Tiff/Acrobat2Tiff/Acrobat2Tiff/Settings.settings
tools/Acrobat2Tiff/Acrobat2Tiff/bin/Release/Acrobat2Tiff.xml
tools/GOT/detag.c
tools/GOT/tagimage.c
tools/cmpi/cmpi.bkl
tools/cmpi/cmpi.cpp
tools/cmpi/cmpi.dsp
tools/cmpi/cmpi.dsw
tools/cmpi/cmpi.pro
tools/cmpi/cmpi.rc
tools/cmpi/cmpi.sln
tools/cmpi/cmpi.vcp
tools/cmpi/cmpi.vcproj
tools/cmpi/cmpi.vcw
tools/cmpi/descrip.mms
tools/cmpi/makefile.bcc
tools/cmpi/makefile.dmc
tools/cmpi/makefile.dms
tools/cmpi/makefile.dos
tools/cmpi/makefile.gcc
tools/cmpi/makefile.sc
tools/cmpi/makefile.unx
tools/cmpi/makefile.va
tools/cmpi/makefile.vc
tools/cmpi/makefile.wat
tools/xps2tiff/README
tools/xps2tiff/xps2tiff.sln
tools/xps2tiff/xps2tiff/AssemblyInfo.cpp
tools/xps2tiff/xps2tiff/stdafx.cpp
tools/xps2tiff/xps2tiff/stdafx.h
tools/xps2tiff/xps2tiff/xps2tiff.cpp
tools/xps2tiff/xps2tiff/xps2tiff.vcproj
win32/GhostPDL.sln
win32/language_switch.vcproj
win32/pcl.vcproj
win32/svg.vcproj
win32/xps.vcproj

2011-04-19 14:01:55 +0000
Robin Watts
1eadba53383fad842dbc5e72ca137914a83b63e6

Changes to localcluster code to attempt to implement bmpcmphead. This certainly
doesn't break anything, but I don't actually ever seem to get any differences
out when running bmpcmphead.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12408 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/localcluster/build.pl
gs/toolbin/localcluster/clustermaster.pl
gs/toolbin/localcluster/run.pl

2011-04-19 10:06:23 +0000
Robin Watts
c9e506d7e910f6560c97a81de704296236a782cb

Fix for bug 692152.
We 'bend' the size of pattern tiles, against the spec, ostensibly to better
match Acrobat. The fix here is simply to avoid such bending in the case where
TilingType is 2. According to the spec, TilingType 2 says specifically not
to use the same device pixel size for every repeat of the pattern, and that
is exactly what we were doing.
This cures the original bug, and produces 464 changes in the cluster tests.
Some (like ps3cet/18-02B.PS) are clear progressions. Others are less obviously
improvements, but comparison with Acrobat (and discussion with Ken/Chris)
shows that it's no worse than before, just 'different'.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12405 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gsptype1.c

2011-04-18 22:58:18 +0000
Alex Cherepanov
a05ab8a88d5bc33c068a8e05ecba5f1adf3f3645

Fix reading of an embedded ICC profile from DSC comments and a
potential SEGV when the value of /N exceeds 8. Bug 692156.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12404 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/Resource/Init/gs_icc.ps
gs/psi/zcolor.c

2011-04-18 20:34:34 +0000
Michael Vrhel
64bfc773be69bd422c95bca132c47782a421dc3a

Further movement toward getting fast thresholding operations working for CMYK output devices. Addition of special op to detect if a device is a planar type, creation of threshold screen for all the planes and spatial resampling of color input to output resolution for portrait case. A commit to get things in trunk before we convert from SVN to git.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12403 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevdflt.c
gs/base/gdevplib.c
gs/base/gxdevsop.h
gs/base/gxht_thresh.c
gs/base/gxicolor.c
gs/base/lib.mak

2011-04-18 18:41:26 +0000
Alex Cherepanov
25152b1f7b5317ef1c3efd438a4d5ce26bcca5ba

Consider any xref entry with 0 offset as a free entry. Earlier revisions
rebuilt the xref table when offset == 0 but generation != 0.
However, rebuilding is an unreliable process and should be avoided if
possible. Bug 692159.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12402 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/Resource/Init/pdf_main.ps

2011-04-18 07:58:13 +0000
Chris Liddell
7169dc6a5af38e1955c660813ed6e62392dc0deb

Add a fallback check for libpaper support.
Older versions of autogen appear to have a bug which causes the AC_CHECK_LIB
macro to mis-identify the libpaper development library as being present when
it is not.
So add a second check check based on the presence of paper.h using
AC_CHECK_HEADER().
No cluster differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12401 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/configure.ac

2011-04-16 14:21:57 +0000
Alex Cherepanov
848275e2554bb57ebf2e12dabc47fc2922e7b877

Instead of searching for %%EOF marker (which is often damaged) and browsing the
file backwards, search for 'startxref' and take the next token as an xref
position. Besides fixing the reported bug, this greatly simplifies the search
for xref position. Bug 692153.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12400 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/Resource/Init/pdf_base.ps
gs/Resource/Init/pdf_main.ps

2011-04-14 20:59:18 +0000
Michael Vrhel
3be81f880b7f0a31d3c213ad4245d0bbfeb0b5ef

code to support rendering color source images to a mono device using thresholding. The code is currently disabled pending additional testing.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12397 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gxicolor.c

2011-04-13 22:17:12 +0000
Michael Vrhel
4a3666ee2833e877a26ef75fece00fd6fad14c93

Reorganization of thresholding code to make it easier to get the threshold operation working for color images as input as well as the case when we go to a cmyk planar device.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12396 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gxht_thresh.c
gs/base/gxht_thresh.h
gs/base/gxicolor.c
gs/base/gximono.c
gs/base/lib.mak

2011-04-13 16:21:07 +0000
Robin Watts
3791878570227c7f5f1c07891c066fab3db2e5d3

Fix reference counting of compositors in clist rendering; previously
the code assumed that it was the only claimant of a compositor and
closed/freed the device regardless of the reference count.
Cluster testing shows no differences.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12394 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gxclrast.c

2011-04-13 13:30:03 +0000
Ken Sharp
29ff2a6f7d27ac9b19887ecc9243a6a8bc6aa9b8

Fix (pdfwrite) : Restore TT->CIDFOnt conversion
When creating PDF/A output, the Acrobat pre-flight tool throws out subset TrueType fonts
which are symbolic. Its not clear why, since the spec says that subset TrueType fonts
are permitted and does not require any additional information (such as /CharSet for
type 1 fonts).
If we instead create a CIDFont with a CIDSet, then the pre-flight tool is happy (and
also, usefully, doesn't complain about multiple CMAP subtables), so here we spot
that there is no preferred Encoding (always the case with Symbolic fonts) and make
the conversion.
No differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12393 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevpdtf.c

2011-04-13 04:47:52 +0000
Ray Johnston
124ab469aa0ad450a46d909e99c1b5d7072e646b

Fix for PCL when NumRenderingThreads > 0. PCL uses a memory allocator that is
not thread safe (chunk memory) but the mt rendering needs a thread safe base
allocator since the main thread may be allocating as well as the rendering
threads. This problem was seen with a couple of 'performance' documents, but
could fail on any document. Bug 692111 for customer #661.
cluster testing showed no regressions, as expected since it didn't use MT
rendering.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12392 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gsalloc.c
gs/base/gsmalloc.c
gs/base/gsmchunk.c
gs/base/gsmemlok.c
gs/base/gsmemory.h
gs/base/gsmemret.c
gs/base/gxclread.c
gs/base/gxclthrd.c

2011-04-12 20:08:59 +0000
Ray Johnston
fdac37730cb0f86e8cd1efad2c49243c5ea5ec0b

Add some more useful stuff to pdf_info.ps: Default dumps Media paramters and
fonts that are needed, but not embedded and standard fonts. Media parameters
now include Rotate value and states if the page has transparency.
Also allow this to be used more conveniently with the -- syntax:
gs {-q} -- toolbin/pdf_info.ps inputfile.pdf
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12391 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/pdf_info.ps

2011-04-12 15:19:15 +0000
Ken Sharp
78bb9a6585153e2cf0cbcc689706cd89d68b5b7b

Fix PostScript colour handling
Bug #692116 "gs crash while executing stop operator"
The problem was caused by a mismatch between the graphics library and the PostScript
interpreter. When executing setcachedevice the graphcis library can set the colour
space to DeviceGray. Because it is unaware of the 'higher level' members of the graphics
state which belong to the PostScript interpreter it does not, and cannot, set the
*PostScript* graphics state colour space to the same space.
Normally this does not matter, because after the glyph is complete the colour space is
restored. However, if a currentgray/currentrgb/currentcmyk operator is executed after
the graphics library has set the space to DeviceGray, but before it has restored the
space, then the PostScript space will be incorrect. This leads to the PostScript
handling trying to access more elements from the stack than 'currentcolor' put there
(currentcolor uses the underlying space, not the PostScript space), and causes errors.
There isn't a really good way to handle this, because we can't put information about
the PostScript state into the graphics library. So I've chosen to check the underlying
colour space when processing currentgray etc, and if the space in the graphics
library is DeviceGray and does not match the expected PostScript space, then instead
of raising an error we proceed as if the PostScript space had been DeviceGray all
along.
No differences expected
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12389 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/psi/zcolor.c

2011-04-12 09:12:59 +0000
Chris Liddell
1b48fe7a0a2bd2aa49cd6cbf0ec5de3abcab7c89

Fix the GS_LIB registry value.
The GS_LIB registry entry was missing the "lib" directory.
Also, tidy up some of the uninstall rules.
No cluster differences.
Bug 692140
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12388 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/psi/nsisinst.nsi

2011-04-12 06:44:27 +0000
Michael Vrhel
f0a9ab32440ecade2d301187489805284cbf1a9d

Forgot to save the readme
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12387 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/color/icc_creator/README.txt

2011-04-12 06:38:17 +0000
Michael Vrhel
d90c248c90cb8e12c6613d32b347846a64f91ca6

Addition of one more profile, which is a CMYK profile but which only outputs in the K channel and a ifdef in the code to generate this thing.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12386 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/color/icc_creator/ICC Profiles/cmyk_k_ouput_only.icc
gs/toolbin/color/icc_creator/ICC_Creator/icc_create.cpp

2011-04-12 06:17:59 +0000
Michael Vrhel
a031163dc9ada140b6e606582c29c9515fc7d839

Fix for an issue related to white point for the cmyk profile also fix for when UCR/BG is used in the profile creation.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12385 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/color/icc_creator/ICC Profiles/ps_emulate_cmyk.icc
gs/toolbin/color/icc_creator/ICC_Creator/icc_create.cpp

2011-04-12 05:11:30 +0000
Michael Vrhel
6acec66087ba2de2d99c42c9e1d33cdb89473089

Addition of ICC profiles that properly emulate the PS color mappings
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12384 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/color/icc_creator/ICC Profiles/ps_emulate_cmyk.icc
gs/toolbin/color/icc_creator/ICC Profiles/ps_emulate_gray.icc
gs/toolbin/color/icc_creator/ICC Profiles/ps_emulate_rgb.icc

2011-04-12 05:02:03 +0000
Michael Vrhel
151535c554165c2f03fbe07098cc45fb0b341f67

Fix for bugs in ICC creator tool related primarily to the CMYK profile for simulating PS color conversions. Added in a option so that we do the CPSI like conversion and also added in the ability to define UCR/BG and pack those mappings into ICC profiles. These fixes were needed to take care of an issue found by customer 850.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12383 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/color/halftone/README
gs/toolbin/color/icc_creator/ICC_Creator/CIELAB.h
gs/toolbin/color/icc_creator/ICC_Creator/ICC_Creator.rc
gs/toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.cpp
gs/toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.h
gs/toolbin/color/icc_creator/ICC_Creator/icc_create.cpp
gs/toolbin/color/icc_creator/ICC_Creator/icc_create.h
gs/toolbin/color/icc_creator/ICC_Creator/resource.h
gs/toolbin/color/icc_creator/README.txt
gs/toolbin/color/icc_creator/ucr_bg.txt

2011-04-11 15:59:22 +0000
Ken Sharp
4509a49f66c24f3a5590aadaaee30325676df877

Fix (colour handling) : crash when executing 'stop'
This is part of the fix for bug #692116. The crash in that report is caused because the
continuation procedures for the colour handling are sometimes pushed with a
push_mark_estack where the opproc has a value of 0. This is not valid and I always
intended to fix it, but forgot.
This changes all uses of push_mark_estack so that the opproc is set to a valid routine
which does nothing, thus solving the crash and exposing the real problem. The only
reason we get a crash is because we are executing stop as part of the error handler,
because currentgray returned an error.
No differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12382 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/psi/zcolor.c

2011-04-09 07:06:43 +0000
Alex Cherepanov
6cb2c7110447967b01f19415ae0ff0f8dd1a251b

Add special processing for a broken PDF file that uses bare stream
dictionaries instead of ICCBased color space arrays. Bug 692213.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12381 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/Resource/Init/pdf_draw.ps

2011-04-08 17:03:54 +0000
Michael Vrhel
0791cc859ad38053ab3d3eef50169ac259f771cb

Fix for x11alpha device when the source file has transparency. Two issues existed. One, found by henry, was that the target device of the x11alpha device was not inheriting the icc profile of the x11alpha device. The other was that the x11alpha device was using the bbox compositor procedure, which has some operations in it related to checking if the device has a target and the pdf14 device will target the target of the bbox device. This is not what we want for the x11alpha device. This should fix a lot of the x11alpha bugs Basically any source files that had transparency would have failed prior to this fix.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12380 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevxini.c

2011-04-08 13:34:53 +0000
Robin Watts
507cbee1403b20b2c3fec692f746f41d9d985566

Fix Bug 692129. If an image is scaled to zero height and interpolation
is on, we end up mallocing a zero byte buffer and then overrunning it.
The fix is to detect this scaling, and still allocate a 1 pixel high
buffer.
No cluster differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12378 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/siscale.c

2011-04-08 08:48:17 +0000
Ken Sharp
1b6c7591e0f62007e4cf690d2f2fcbb56be9f989

Fix GSLite : update to changes in decode_glyph method
Revision 12374 altered the decode_glyph font method to take an additional parameter,
the character code. This commit updates the GSLite code routines to take the extra
parameter
No differences expected, I don't think this is tested (or even compiled)
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12377 a1074d23-0009-0410-80fe-cf8c14f379e6
tools/gslite/gslt_font_api.c
tools/gslite/gslt_font_cff.c
tools/gslite/gslt_font_ttf.c
tools/gslite/gslt_test.c

2011-04-08 08:36:35 +0000
Ken Sharp
cc053e229b4a2dd03ff83673bfb819be51e970c3

Fix XPS and PCL interpreters : Change to decode_glyph routine
The decode_glyph font method was changed to pass in the character code in revision
12374, but I missed the fact that these methods also exist in the XPS and PCL
interpreters.
This revision simply updates the methods with the additional parameter.
No differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12376 a1074d23-0009-0410-80fe-cf8c14f379e6
pl/plfont.c
xps/xpscff.c
xps/xpsttf.c

2011-04-07 15:52:45 +0000
Chris Liddell
a69dfc3caebd4f16ab8ba7f1c888bdbed6e5dbce

Resolve a path problem when running mkcidfm.ps.
mkcidfm.ps did not handle the path to the Windows
font directory using back slash directory delimiters
so the nsis script now replaces all the back slash
delimiters with forward slash, with which mkcidfm.ps
works correctly.
Bug 691511
No cluster differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12375 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/psi/nsisinst.nsi

2011-04-07 15:48:21 +0000
Ken Sharp
24c562b9bcedcd9e6bd1d63a06c09eba52a24cbd

Fix (pdfwrite) : Not using ToUnicode CMaps under some conditions
Bug #692119 "Cannot copy text from Ghostscript generated PDF/A document"
The PDF interpreter converts ToUnicode CMaps into GlyphNames2Unicode dictionaries, to
do this it uses the Encoding to convert the character codes into glyph names. Of course
for CIDFonts we don't want to do this, and so when there is no Encoding we instead
put the Unicode value directly into the dictionary using the CID as an index.
If the font has no Encoding (which is optional in PDF) then we do the same for a
regular font. However, by the time pdfwrite sees the font we have had to add an Encoding
as its not valid for us to define a regular font with no Encoding.
So pdfwrite converts the character code into a (bogus) glyph name, and then tries to
look up that glyph name in the GlyphNames2Unicode dictionary. Obviously this fails.
I've extended the 'decode_glyph' call so that it takes both the glyph name and the
character code, for CID fonts the character code is always -1. If the glyph name can't
be found in the GlyphNames2Unicode dictionary then we try to use the character code
instead.
This works for this test case, and I don't think its likely to produce worse results
than the old code. Regression tests show no differences, but since they don't test
ToUnicode CMaps they weren't expected to. My own tests seem to be OK but I can't say
I'm terribly sure about this one.
Expected Differences
None
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12374 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevpdtc.c
gs/base/gdevpdte.c
gs/base/gsfont.c
gs/base/gxfont.h
gs/psi/bfont.h
gs/psi/zbfont.c

2011-04-07 03:30:16 +0000
Michael Vrhel
8170bf69742a320e7e28bffa58cbf0f0f14f2eb0

Fix for 692123. It was necessary to make sure that the blending state of the pdf14 device is updated when we have the alpha buffer device installed in front of the pdf14 device.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12373 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevdflt.c
gs/base/gdevp14.c
gs/base/gspaint.c
gs/base/gstrans.c
gs/base/gstrans.h
gs/base/gxdevsop.h
gs/base/lib.mak

2011-04-06 18:33:27 +0000
Robin Watts
c03e320614893bb304b6c63e02a597d0153df031

Change lcms2 memory handling and update lib.
As of this commit, we can (and do) run a completely unchanged library.
This includes our tiny tweak to be able to get the input/output formats for
a given transform. Also update our interface code so that we use the plugin
mechanism to redirect malloc/free etc through us rather than hacking the
code direct. Thanks to Marti Maria for both of these.
No cluster changes as this code is not tested. CLUSTER_UNTESTED.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12372 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gsicc_lcms2.c
gs/lcms2/AUTHORS
gs/lcms2/ChangeLog
gs/lcms2/Makefile.in
gs/lcms2/configure
gs/lcms2/configure.ac
gs/lcms2/doc/LittleCMS2.1 API.pdf
gs/lcms2/include/Makefile.in
gs/lcms2/include/lcms2.h
gs/lcms2/src/Makefile.in
gs/lcms2/src/cmscnvrt.c
gs/lcms2/src/cmserr.c
gs/lcms2/src/cmsxform.c
gs/lcms2/src/lcms2_internal.h
gs/lcms2/testbed/Makefile.in
gs/lcms2/utils/jpgicc/Makefile.in
gs/lcms2/utils/linkicc/Makefile.in
gs/lcms2/utils/linkicc/linkicc.1
gs/lcms2/utils/linkicc/linkicc.c
gs/lcms2/utils/psicc/Makefile.in
gs/lcms2/utils/tificc/Makefile.in
gs/lcms2/utils/transicc/Makefile.in

2011-04-06 17:41:50 +0000
Chris Liddell
a54df2d2b0e78777a037ceacfba76dd47d9993d3

Resolve a crash to due an unexpected CMap object type.
The code was not checking that the CMap object was a string or an array (of
strings) before trying read bytes from it. If the CMap actually turned out
to be an unexpected object, such as an integer, it would cause a crash.
Credit to Ken Sharp for the patch.
Bug 692124
No cluster differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12371 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/psi/zfapi.c

2011-04-06 12:13:55 +0000
Ken Sharp
d97f8c354d97c8ec941c2d4b702b7d17ab0e03b3

Fix (ps2write/pdfwrite) : bitmapped font problem
When producing an inline image representing a glyph which could not be embedded as text,
the code emitted the matrix setup for the image before opening the context. If there
was (for example) a pending text operation this caused the matrix setup to appear in
the text context instead of the image context, leading to the image disappearing.
Opening the image context before emitting the matrix solves the problem.
Expected Differences
The output from ps2write (resolution = 300 dpi) with the file
'metrics_no_bbox.ps'
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12370 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevpdfb.c

2011-04-05 15:01:49 +0000
Chris Liddell
2d72418b094cb62501d6af82a845848d01134119

The FAPI code was relying on the result of gx_compute_text_oversampling()
to ascertain whether anti-aliasing is in force.
This is insufficient, as it turns out, and we actually need to base the
decision on the alpha bits as requested by the device.
No cluster differences expected.
Bug 692120.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12369 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/psi/zfapi.c

2011-04-04 16:33:13 +0000
Robin Watts
f4a6e441bbe26758d4d3d9c62c369fde2b0e9643

Squash some warnings in the lcms v2 interface code. No expected differences.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12368 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gsicc_lcms2.c

2011-04-04 14:42:57 +0000
Robin Watts
b359a954d93cd140b3e000c107854b021ccd9189

Squash 4 warnings in the lcmvs v1 stuff.
No cluster differences expected (and testing shows none, so CLUSTER_UNTESTED).
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12367 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gsicc_cms.h
gs/base/gsicc_manage.c

2011-04-04 07:40:55 +0000
Ken Sharp
1f92f1449bf208c8f7a878c8f149ca67cd62ab49

Alter the generation of Decode array entries for images using Indexed colour spaces by
using bit shifting instead of simple 'exp' operator.
No differences expected, code is equivalent.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12366 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/opdfread.h
gs/lib/opdfread.ps

2011-04-03 20:40:27 +0000
Gheorghe Savulescu
b58247cecc1fd272e12adc26890d912346dd92c5

Bug 689093 #21/ HTML compatibility
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12365 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/Drivers.htm

2011-04-03 20:39:48 +0000
Gheorghe Savulescu
d52ff94dea3bb3db0dc4c9ee1c8e89d48b1fb7ed

Bug 689093 #20/ HTML compatibility
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12364 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/API.htm
gs/doc/C-style.htm
gs/doc/Changes.htm
gs/doc/Commprod.htm
gs/doc/DLL.htm
gs/doc/Deprecated.htm
gs/doc/Develop.htm
gs/doc/Devices.htm
gs/doc/Drivers.htm
gs/doc/Fonts.htm
gs/doc/Helpers.htm
gs/doc/Hershey.htm
gs/doc/History1.htm
gs/doc/History2.htm
gs/doc/History3.htm
gs/doc/History4.htm
gs/doc/History5.htm
gs/doc/History6.htm
gs/doc/History7.htm
gs/doc/Install.htm
gs/doc/Issues.htm
gs/doc/Language.htm
gs/doc/Lib.htm
gs/doc/Make.htm
gs/doc/News.htm
gs/doc/Projects.htm
gs/doc/Ps-style.htm
gs/doc/Ps2epsi.htm
gs/doc/Ps2pdf.htm
gs/doc/Ps2ps2.htm
gs/doc/Psfiles.htm
gs/doc/Readme.htm
gs/doc/Release.htm
gs/doc/Source.htm
gs/doc/Unix-lpr.htm
gs/doc/Use.htm
gs/doc/Xfonts.htm
gs/doc/index.html

2011-04-03 20:39:13 +0000
Gheorghe Savulescu
591b83fa9500a99ff8d24ddd7aa8962bd44312d6

Bug 689093 #19/ CSS conformance:
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12363 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/gs.css

2011-04-03 20:39:01 +0000
Gheorghe Savulescu
464ee97310cd5c003d3683f2a2ceb16691394813

Bug 689093 #18bis/ SVN damage:
Replace ijs\ijs_spec.pdf, with a good copy.
This file is currently damaged in the SVN Repository. The damage seem to have
happened during the conversion of the Repository from CVS to Subversion. This copy
of the file comes from the last CVS version available; the copy in the 1st SVN
checkout I have is already damaged. Note the "/CreationDate" inside the pdf is the
same as in the current (damaged) version and the last change to this file is very
old, so this file's substantive content did not change after the migration to SVN.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12362 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/ijs/ijs_spec.pdf

2011-04-03 20:38:09 +0000
Gheorghe Savulescu
bbb639d51f543398c6e318075656af4857ad58b5

Bug 689093 #18/ SVN damage
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12361 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/scfdgen.c
gs/doc/C-style.htm
gs/doc/Deprecated.htm
gs/doc/Details.htm
gs/doc/Details8.htm
gs/doc/Details9.htm
gs/doc/Develop.htm
gs/doc/Devices.htm
gs/doc/Drivers.htm
gs/doc/Hershey.htm
gs/doc/History1.htm
gs/doc/History2.htm
gs/doc/History3.htm
gs/doc/History4.htm
gs/doc/History5.htm
gs/doc/History6.htm
gs/doc/History7.htm
gs/doc/History8.htm
gs/doc/History9.htm
gs/doc/Install.htm
gs/doc/Issues.htm
gs/doc/Make.htm
gs/doc/Ps-style.htm
gs/doc/Release.htm
gs/doc/Use.htm
gs/toolbin/gen_ldf_jb2.py
gs/toolbin/split_changelog.py

2011-04-03 20:27:35 +0000
Gheorghe Savulescu
5ff3a16a18372eff2b65054ced9b0cd283ad1ea9

Bug 689093 #17/ SVN damage
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12360 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/split_changelog.py

2011-04-03 20:25:28 +0000
Gheorghe Savulescu
5b7d759adc6fb7f5ab85b72c195aaa4cc8a9882b

Bug 689093 #16/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12359 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/Details.htm
gs/doc/Details8.htm
gs/doc/Details9.htm
gs/doc/History8.htm
gs/doc/History9.htm
gs/toolbin/split_changelog.py

2011-04-03 20:25:06 +0000
Gheorghe Savulescu
399081713e3314b04fa4404e870434f0bacb4590

Bug 689093 #15 (note: there's no #14)/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12358 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/Language.htm
gs/doc/Make.htm
gs/doc/Ps2pdf.htm

2011-04-03 20:24:56 +0000
Gheorghe Savulescu
ce833816683f46ec1acd966c4c86a01a33b2f687

Bug 689093 #13/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12357 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/Deprecated.htm

2011-04-03 20:24:48 +0000
Gheorghe Savulescu
394631da0981713367ca2472be75445bd0fb0d56

Bug 689093 #12 (note: there's no #11)/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12356 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/Changes.htm
gs/doc/Deprecated.htm
gs/doc/Details9.htm
gs/doc/Devices.htm
gs/doc/Drivers.htm
gs/doc/History9.htm
gs/doc/Make.htm
gs/doc/News.htm

2011-04-03 20:24:30 +0000
Gheorghe Savulescu
a17d948ba8edffee3d5cdd710ed495da93d72bda

Bug 689093 #10/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12355 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/API.htm
gs/doc/DLL.htm
gs/doc/Deprecated.htm
gs/doc/Devices.htm
gs/doc/Drivers.htm
gs/doc/Fonts.htm
gs/doc/Helpers.htm
gs/doc/Install.htm
gs/doc/Language.htm
gs/doc/Lib.htm
gs/doc/Make.htm
gs/doc/Projects.htm
gs/doc/Ps-style.htm
gs/doc/Ps2epsi.htm
gs/doc/Ps2pdf.htm
gs/doc/Ps2ps2.htm
gs/doc/Psfiles.htm
gs/doc/Release.htm
gs/doc/Source.htm
gs/doc/Unix-lpr.htm
gs/doc/Use.htm
gs/doc/Xfonts.htm

2011-04-03 20:24:19 +0000
Gheorghe Savulescu
01a5f1374998c9d24e021ee8851ae36cb58a8230

Bug 689093 #09/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12354 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/History6.htm
gs/doc/History7.htm

2011-04-03 20:24:04 +0000
Gheorghe Savulescu
2692aa2af43e7f1d3655fabad728ceca9157f9b5

Bug 689093 #08/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12353 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/Details8.htm
gs/doc/History8.htm

2011-04-03 20:23:39 +0000
Gheorghe Savulescu
7215a52b4ae31ceb807da776b2c06f368dc9e275

Bug 689093 #07/ HTML conformance
gs/doc/Details.htm

2011-04-03 20:22:54 +0000
Gheorghe Savulescu
9be02f9987043d2f1c4ea6bb1da403e9bbeaa535

Bug 689093 #06/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12351 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/split_changelog.py

2011-04-03 20:22:27 +0000
Gheorghe Savulescu
33674899f2fca8b2ed947862131bc57eb99c749a

Bug 689093 #05/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12350 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/API.htm
gs/doc/C-style.htm
gs/doc/Deprecated.htm
gs/doc/Details8.htm
gs/doc/Develop.htm
gs/doc/Devices.htm
gs/doc/Drivers.htm
gs/doc/History5.htm
gs/doc/History6.htm
gs/doc/History7.htm
gs/doc/History8.htm
gs/doc/Issues.htm
gs/doc/Language.htm
gs/doc/Make.htm
gs/doc/Ps-style.htm
gs/doc/Release.htm
gs/doc/Use.htm

2011-04-03 20:21:59 +0000
Gheorghe Savulescu
6b853264c8be1ce8efdf0f511889647d2e3251fa

Bug 689093 #04/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12349 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/Details8.htm
gs/doc/History8.htm

2011-04-03 20:21:48 +0000
Gheorghe Savulescu
24d88fd4b1c8c57e01ba295de69b6ff8a7c3431b

Bug 689093 #03/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12348 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/split_changelog.py

2011-04-03 20:20:32 +0000
Gheorghe Savulescu
81cda2e93b17532409bdea39168db92bf2552919

Bug 689093 #02/ HTML conformance:
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12347 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/API.htm
gs/doc/C-style.htm
gs/doc/Commprod.htm
gs/doc/DLL.htm
gs/doc/Deprecated.htm
gs/doc/Details8.htm
gs/doc/Details9.htm
gs/doc/Develop.htm
gs/doc/Devices.htm
gs/doc/Drivers.htm
gs/doc/Fonts.htm
gs/doc/Helpers.htm
gs/doc/History1.htm
gs/doc/History2.htm
gs/doc/History3.htm
gs/doc/History4.htm
gs/doc/History5.htm
gs/doc/History6.htm
gs/doc/History7.htm
gs/doc/History8.htm
gs/doc/History9.htm
gs/doc/Install.htm
gs/doc/Issues.htm
gs/doc/Language.htm
gs/doc/Lib.htm
gs/doc/Make.htm
gs/doc/News.htm
gs/doc/Projects.htm
gs/doc/Ps-style.htm
gs/doc/Ps2epsi.htm
gs/doc/Ps2pdf.htm
gs/doc/Ps2ps2.htm
gs/doc/Psfiles.htm
gs/doc/Readme.htm
gs/doc/Release.htm
gs/doc/Source.htm
gs/doc/Unix-lpr.htm
gs/doc/Use.htm
gs/doc/Xfonts.htm

2011-04-03 20:19:46 +0000
Gheorghe Savulescu
a5a20b7b8c0443ac5fd8c88bdb3af37390e4bf5c

Bug 689093 #01/ HTML conformance
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12346 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/toolbin/makehist.tcl

2011-04-01 23:17:22 +0000
Henry Stiles
2674c673a3f4f29c9ca1620c36a97e0bd89c0e18

Remove temporary development definition used to identify the graphics
library supported the new ICC code.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12345 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gsicc_manage.h
pcl/pctop.c
pxl/pxgstate.c
pxl/pxpthr.c
pxl/pxtop.c
xps/xpstop.c

2011-04-01 22:58:42 +0000
Henry Stiles
ad470fdd8c23d7597260ec1c068da69075e1d7f8

Fixes 691870 where the banding code was using an ICC color and the
full page was not. For color spaces in images we never actually call
"setcolorspace" so the image type was not being set to icc, we do this
now explicitly in the PCL/XL code now.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12344 a1074d23-0009-0410-80fe-cf8c14f379e6
pxl/pxgstate.c

2011-04-01 18:42:42 +0000
Robin Watts
a51bd3e408207936f0e795280a71253695a9d57e

Add 2 files missed in commit 12341. These ones WILL have mattered.
Apoligies for this. A combination of git svn eating my first attempt
at committing it, and my own base level of incompetence caused this.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12343 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gsicc_cms.h
gs/base/gsicc_lcms.c
gs/base/lcms2.mak

2011-04-01 18:38:52 +0000
Robin Watts
b3ce17fce356461895d536c65d39defdb0137b06

Add file that somehow got missed in the lcms2 commit (r12340).
Not enabled by default so CLUSTER_UNTESTED.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12342 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gsicc_lcms2.c

2011-04-01 18:05:33 +0000
Michael Vrhel
b3703b36cb5544d9defd00780d814caed4eae5b4

Fix so that we have proper antialiasing with softmasks. Fixes bug 687674
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12341 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevp14.c

2011-04-01 18:00:12 +0000
Robin Watts
50ecc84d5463bd013f794a9dd53254c2e295a85e

Initial import of LittleCMS v2.1 into the Ghostscript/GhostPDL
build, with simple integration. LittleCMS version 1 is still used by default,
so no cluster differences expected.
The version of little cms imported was taken from the lcms git repository,
commit 314bc7201d340ab303b36a0ade2c37cf40b83a3b, and then a couple of
small tweaks were applied:
* lcms2 currently offers no way to get the input/output format for a
transform, so I add 2 functions (cmsGetTransformInputFormat and
cmsGetTransformOutputFormat) to do this.
* lcms2 currently offers no easy way to redirect malloc/free operations
away from it's internal implementation, so we add a define (LCMS_USER_ALLOC)
to allow us to be able to define our own functions. This mirrors the
work done in lcms1 by Michael, I believe.
The choice of which version of lcms to build with is made by the WHICH_CMS
define option in the makefile. Currently this is set to lcms by default,
but can be changed to lcms2 to allow lcms2 to be used instead.
To make this work, various small tweaks have been required. Firstly, we
rename gsicc_littlecms.h to gsicc_cms.h, reflecting the fact that this is
not littlecms specific - rather, it defines the interface that any cms
would have to provide in order to work with Ghostscript/GhostPDL.
Secondly, we rename gsicc_littlecms.c to gsicc_lcms.c to make the makefile
macros easier.
We add a gsicc_lcms2.c file (derived from copying and editing gsicc_lcms.c)
that interfaces with lcms2.
Currently lcms2 builds and appears to run without crashing, but gives
differing results in some cases. This will need to be solved before we can
swap over to using lcms2 by default.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12340 a1074d23-0009-0410-80fe-cf8c14f379e6
common/msvc_top.mak
common/ugcc_top.mak
gs/base/Makefile.in
gs/base/configure.ac
gs/base/gs.mak
gs/base/gsicc.c
gs/base/gsicc_cache.c
gs/base/gsicc_littlecms.c
gs/base/gsicc_littlecms.h
gs/base/gsicc_manage.h
gs/base/gxi12bit.c
gs/base/gxicolor.c
gs/base/gximono.c
gs/base/gxipixel.c
gs/base/lcms.mak
gs/base/lib.mak
gs/base/macos-mcp.mak
gs/base/macosx.mak
gs/base/msvclib.mak
gs/base/openvms.mak
gs/base/ugcclib.mak
gs/base/unix-gcc.mak
gs/base/unixansi.mak
gs/base/winlib.mak
gs/ghostscript.vcproj
gs/lcms2/AUTHORS
gs/lcms2/COPYING
gs/lcms2/ChangeLog
gs/lcms2/INSTALL
gs/lcms2/Lib/BC/BC.txt
gs/lcms2/Lib/MS/MS.TXT
gs/lcms2/Makefile.am
gs/lcms2/Makefile.in
gs/lcms2/NEWS
gs/lcms2/Projects/BorlandC_5.5/lcms2.rc
gs/lcms2/Projects/BorlandC_5.5/lcmsdll.lk
gs/lcms2/Projects/BorlandC_5.5/lcmsdll.lst
gs/lcms2/Projects/BorlandC_5.5/mklcmsdll.bat
gs/lcms2/Projects/VC2008/jpegicc/jpegicc.vcproj
gs/lcms2/Projects/VC2008/lcms2.rc
gs/lcms2/Projects/VC2008/lcms2.sln
gs/lcms2/Projects/VC2008/lcms2_DLL/lcms2_DLL.vcproj
gs/lcms2/Projects/VC2008/lcms2_static/lcms2_static.vcproj
gs/lcms2/Projects/VC2008/linkicc/linkicc.vcproj
gs/lcms2/Projects/VC2008/psicc/psicc.vcproj
gs/lcms2/Projects/VC2008/resource.h
gs/lcms2/Projects/VC2008/testbed/testbed.vcproj
gs/lcms2/Projects/VC2008/tiffdiff/tiffdiff.vcproj
gs/lcms2/Projects/VC2008/tifficc/tifficc.vcproj
gs/lcms2/Projects/VC2008/transicc/transicc.vcproj
gs/lcms2/Projects/VC2010/jpegicc/jpegicc.vcproj
gs/lcms2/Projects/VC2010/jpegicc/jpegicc.vcxproj
gs/lcms2/Projects/VC2010/jpegicc/jpegicc.vcxproj.filters
gs/lcms2/Projects/VC2010/lcms2.rc
gs/lcms2/Projects/VC2010/lcms2.sln
gs/lcms2/Projects/VC2010/lcms2_DLL/lcms2_DLL.vcproj
gs/lcms2/Projects/VC2010/lcms2_DLL/lcms2_DLL.vcxproj
gs/lcms2/Projects/VC2010/lcms2_DLL/lcms2_DLL.vcxproj.filters
gs/lcms2/Projects/VC2010/lcms2_static/lcms2_static.vcproj
gs/lcms2/Projects/VC2010/lcms2_static/lcms2_static.vcxproj
gs/lcms2/Projects/VC2010/lcms2_static/lcms2_static.vcxproj.filters
gs/lcms2/Projects/VC2010/linkicc/linkicc.vcproj
gs/lcms2/Projects/VC2010/linkicc/linkicc.vcxproj
gs/lcms2/Projects/VC2010/linkicc/linkicc.vcxproj.filters
gs/lcms2/Projects/VC2010/psicc/psicc.vcproj
gs/lcms2/Projects/VC2010/psicc/psicc.vcxproj
gs/lcms2/Projects/VC2010/psicc/psicc.vcxproj.filters
gs/lcms2/Projects/VC2010/resource.h
gs/lcms2/Projects/VC2010/testbed/testbed.vcproj
gs/lcms2/Projects/VC2010/testbed/testbed.vcxproj
gs/lcms2/Projects/VC2010/testbed/testbed.vcxproj.filters
gs/lcms2/Projects/VC2010/tiffdiff/tiffdiff.vcproj
gs/lcms2/Projects/VC2010/tiffdiff/tiffdiff.vcxproj
gs/lcms2/Projects/VC2010/tiffdiff/tiffdiff.vcxproj.filters
gs/lcms2/Projects/VC2010/tifficc/tifficc.vcproj
gs/lcms2/Projects/VC2010/tifficc/tifficc.vcxproj
gs/lcms2/Projects/VC2010/tifficc/tifficc.vcxproj.filters
gs/lcms2/Projects/VC2010/transicc/transicc.vcproj
gs/lcms2/Projects/VC2010/transicc/transicc.vcxproj
gs/lcms2/Projects/VC2010/transicc/transicc.vcxproj.filters
gs/lcms2/Projects/mac/._.DS_Store
gs/lcms2/Projects/mac/LittleCMS/._.DS_Store
gs/lcms2/Projects/mac/LittleCMS/English.lproj/InfoPlist.strings
gs/lcms2/Projects/mac/LittleCMS/Info.plist
gs/lcms2/Projects/mac/LittleCMS/LittleCMS.xcodeproj/mariama.mode1v3
gs/lcms2/Projects/mac/LittleCMS/LittleCMS.xcodeproj/mariama.pbxuser
gs/lcms2/Projects/mac/LittleCMS/LittleCMS.xcodeproj/project.pbxproj
gs/lcms2/Projects/mac/LittleCMS/LittleCMS_Prefix.pch
gs/lcms2/Projects/mac/LittleCMS/TestBed-Info.plist
gs/lcms2/README.1ST
gs/lcms2/aclocal.m4
gs/lcms2/autogen.sh
gs/lcms2/bin/Bin.txt
gs/lcms2/bin/Thumbs.db
gs/lcms2/config.guess
gs/lcms2/config.sub
gs/lcms2/configure
gs/lcms2/configure.ac
gs/lcms2/depcomp
gs/lcms2/doc/LittleCMS2.0 API.pdf
gs/lcms2/doc/LittleCMS2.0 Plugin API.pdf
gs/lcms2/doc/LittleCMS2.0 tutorial.pdf
gs/lcms2/doc/LittleCMS2.1 API.pdf
gs/lcms2/doc/LittleCMS2.1 Plugin API.pdf
gs/lcms2/doc/LittleCMS2.1 tutorial.pdf
gs/lcms2/include/Makefile.am
gs/lcms2/include/Makefile.in
gs/lcms2/include/icc34.h
gs/lcms2/include/lcms2.h
gs/lcms2/include/lcms2_plugin.h
gs/lcms2/install-sh
gs/lcms2/lcms2.pc.in
gs/lcms2/ltmain.sh
gs/lcms2/missing
gs/lcms2/src/Makefile.am
gs/lcms2/src/Makefile.in
gs/lcms2/src/cmscam02.c
gs/lcms2/src/cmscgats.c
gs/lcms2/src/cmscnvrt.c
gs/lcms2/src/cmserr.c
gs/lcms2/src/cmsgamma.c
gs/lcms2/src/cmsgmt.c
gs/lcms2/src/cmsintrp.c
gs/lcms2/src/cmsio0.c
gs/lcms2/src/cmsio1.c
gs/lcms2/src/cmslut.c
gs/lcms2/src/cmsmd5.c
gs/lcms2/src/cmsmtrx.c
gs/lcms2/src/cmsnamed.c
gs/lcms2/src/cmsopt.c
gs/lcms2/src/cmspack.c
gs/lcms2/src/cmspcs.c
gs/lcms2/src/cmsplugin.c
gs/lcms2/src/cmsps2.c
gs/lcms2/src/cmssamp.c
gs/lcms2/src/cmssm.c
gs/lcms2/src/cmstypes.c
gs/lcms2/src/cmsvirt.c
gs/lcms2/src/cmswtpnt.c
gs/lcms2/src/cmsxform.c
gs/lcms2/src/lcms2.def
gs/lcms2/src/lcms2_internal.h
gs/lcms2/testbed/Makefile.am
gs/lcms2/testbed/Makefile.in
gs/lcms2/testbed/USWebCoatedSWOP.icc
gs/lcms2/testbed/UncoatedFOGRA29.icc
gs/lcms2/testbed/bad.icc
gs/lcms2/testbed/sRGBSpac.icm
gs/lcms2/testbed/sRGB_Color_Space_Profile.icm
gs/lcms2/testbed/sRGB_v4_ICC_preference.icc
gs/lcms2/testbed/testcms2.c
gs/lcms2/testbed/testthread.cpp
gs/lcms2/testbed/toosmall.icc
gs/lcms2/utils/common/utils.h
gs/lcms2/utils/common/vprf.c
gs/lcms2/utils/common/xgetopt.c
gs/lcms2/utils/delphi/delphidemo.dpr
gs/lcms2/utils/delphi/delphidemo.dproj
gs/lcms2/utils/delphi/delphidemo.res
gs/lcms2/utils/delphi/demo1.dfm
gs/lcms2/utils/delphi/demo1.pas
gs/lcms2/utils/delphi/lcms2dll.pas
gs/lcms2/utils/jpgicc/Makefile.am
gs/lcms2/utils/jpgicc/Makefile.in
gs/lcms2/utils/jpgicc/iccjpeg.c
gs/lcms2/utils/jpgicc/iccjpeg.h
gs/lcms2/utils/jpgicc/jpgicc.1
gs/lcms2/utils/jpgicc/jpgicc.c
gs/lcms2/utils/linkicc/Makefile.am
gs/lcms2/utils/linkicc/Makefile.in
gs/lcms2/utils/linkicc/linkicc.1
gs/lcms2/utils/linkicc/linkicc.c
gs/lcms2/utils/matlab/icctrans.c
gs/lcms2/utils/matlab/lcms_rsp
gs/lcms2/utils/psicc/Makefile.am
gs/lcms2/utils/psicc/Makefile.in
gs/lcms2/utils/psicc/psicc.1
gs/lcms2/utils/psicc/psicc.c
gs/lcms2/utils/samples/Makefile.am
gs/lcms2/utils/samples/Makefile.in
gs/lcms2/utils/samples/itufax.c
gs/lcms2/utils/samples/mkcmy.c
gs/lcms2/utils/samples/mkgrayer.c
gs/lcms2/utils/samples/mktiff8.c
gs/lcms2/utils/samples/roundtrip.c
gs/lcms2/utils/samples/vericc.c
gs/lcms2/utils/samples/wtpt.1
gs/lcms2/utils/samples/wtpt.c
gs/lcms2/utils/tificc/Makefile.am
gs/lcms2/utils/tificc/Makefile.in
gs/lcms2/utils/tificc/tifdiff.c
gs/lcms2/utils/tificc/tificc.1
gs/lcms2/utils/tificc/tificc.c
gs/lcms2/utils/transicc/Makefile.am
gs/lcms2/utils/transicc/Makefile.in
gs/lcms2/utils/transicc/transicc.1
gs/lcms2/utils/transicc/transicc.c
gs/psi/int.mak
gs/psi/msvc.mak
gs/psi/os2.mak
main/pcl6_gcc.mak
main/pcl6_msvc.mak

2011-04-01 16:44:50 +0000
Michael Vrhel
b960ff15c895dbe5a7d6baf470ad8a12949ad054

Fix for mistaken double allocation of threshold array object. Thanks to ray for finding this.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12339 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gsht.c

2011-04-01 16:39:59 +0000
Michael Vrhel
66adf73f5cbaa010b6a7ee730384c3a58752bff3

Fix so that anti-aliasing works when the source file contains transparency. This involved the addition of a copy_alpha procedure for the gdevp14 device. In addition, the anti-aliasing parameters for the target device are passed along to the gdevp14 device. The gdevp14 clist device uses the forward copy alpha operation, so that we end up using the clist_copy_alpha operation. Then during the clist reading phase we use the gdevp14 device's copy_alpha command.
There are two things that I do need to do in relation to this commit. One is that the operation that actually computes and applies the alpha associated with the transparency needs to be optimized so that we are not doing floating point math. Also, support needs to be added for knockout fills. However, for the vast majority of files with transparency we should now have support with -dGraphicAlphaBits and -dTextAlphaBits.
I will open a bug on the two outstanding issues so that I don't forget.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12338 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevnfwd.c
gs/base/gdevp14.c

2011-03-31 17:30:58 +0000
Henry Stiles
7825ac4552256609c8060b5af13bb168170db6eb

Bug #692100, padding was being treated inconsistently within 2
procedures resulting in UMR's and incorrect results. I'm afraid we
still don't understand the details of HP's seemingly bug-ridden
padding implementation but this fix at least makes the code internally
consistent.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12337 a1074d23-0009-0410-80fe-cf8c14f379e6
pxl/pximage.c

2011-03-31 17:22:23 +0000
Henry Stiles
91b7f320484904d60e8cf017611f5a8da4a6c685

Fixes 692109, the "no argument case" of the HPGL/2 INPUT RELATIVE
command did not properly initialized the operands to their defaults.
Only likely to be seen in unusual test cases. Fixes indeterminacy
in CET 32-07.BIN reported in the regression tests.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12336 a1074d23-0009-0410-80fe-cf8c14f379e6
pcl/pgconfig.c

2011-03-31 15:36:32 +0000
Chris Liddell
65ea9547d5760284c68da6b6b413d335e4e68ed1

The last of Hintak's (usable) improvements to the nsis installer
script, plus a tweak or two.
Make the cidfmap generation a tickbox option on the final page.
Add a link to the uninstaller from the Start Menu group.
No cluster differences
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12335 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/psi/nsisinst.nsi

2011-03-30 15:33:28 +0000
Chris Liddell
700f41807524588d82a674c3618322f71bbe9d7b

Bring the nsis installer script and it's caller up
to date.
Vast majority of the credit to Hintak for this.
No cluster differences.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12334 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/psi/nsisinst.nsi
gs/psi/winint.mak

2011-03-30 12:23:41 +0000
Robin Watts
c428998ab5d6b6f164de9474c25ee788ae4ef77f

Squash a warning in a device call.
No cluster differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12333 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gxclpath.c

2011-03-30 11:13:37 +0000
Tor Andersson
807af34ac8671f03b8c73cca2cdbebca796c716e

xps: Fix bug when parsing cluster mappings.
We incorrectly encoded and emitted all characters in a
Many-to-One cluster mapping, resulting in extraneous characters
where ligatures were used. A (2:1) cluster map for the ligature
"fi" has two characters (f, i) and one glyph (fi). We showed it
as two glyphs (fi, i) instead of skipping the second character
while decoding the cluster map.
This fixes multiple errors in MXDW/TypeSamples.xps
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12332 a1074d23-0009-0410-80fe-cf8c14f379e6
xps/xpsglyphs.c

2011-03-30 10:17:57 +0000
Robin Watts
2e594aee0d69b99a17fa9cd3cf21696773afde43

Add gs/doc to Visual Studio project, enabling documentation to be easily
edited in the Visual Studio editor.
No cluster differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12331 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/ghostscript.vcproj

2011-03-30 10:17:42 +0000
Robin Watts
790f395b044a7e7179c3ca918e30475827c8a30b

Add documentation for dev_spec_op to Devices.htm.
No cluster changes.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12330 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/doc/Drivers.htm

2011-03-30 10:17:26 +0000
Robin Watts
a243545401bf0fdb8b1a18e7e5379119c56aecfa

Add new copy_plane device procedure; arguments as for copy_color with an
extra int to identify which plane we want to work on.
The call effectively says "Copy this pixmap into the specified plane of this
device". It is envisaged that it will only be defined for planar devices.
For now clients can detect whether or not to use this based on whether the
function pointer is non NULL. If need be (to cope with forwarding devices)
we can add a dev_spec_op.
No cluster differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12329 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevdflt.c
gs/base/gdevmpla.c
gs/base/gxdevcli.h

2011-03-30 10:17:10 +0000
Robin Watts
3bdda000eabced6e4c015af4c6dbb5b02f1abdda

Add new dev_spec_op operation for spotting that a device maps colours in
the 'standard' 1bit cmyk way, and use that rather than manually checking
function pointers. This allows bitcmyk, pamcmyk4 and plibk devices to
correctly spot the optimisation in get_bits (used for rops that use D).
Testing locally indicates that the special case is now taken, but that no
differences are seen in the results (as we would hope).
No cluster differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12328 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevdflt.c
gs/base/gdevdgbr.c
gs/base/gdevdrop.c
gs/base/gxclpath.c
gs/base/gxdevsop.h

2011-03-30 10:16:54 +0000
Robin Watts
f81e8f47c06572ecc4f7e3fcc03ca4db60507ce4

Tweak dev_spec_op implementations so that they correctly forward through
to the 'default' (or base) implementations for unknown operations. Stupid
of me to have got this wrong initially, as it is one of the main purposes
of this mechanism.
No cluster differences expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12327 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevnfwd.c
gs/base/gdevpdfd.c
gs/base/gdevpdfi.c
gs/base/gxacpath.c

2011-03-30 10:15:18 +0000
Robin Watts
bca8531f23845a6c70cf938fb0ab1bc6e9f14fd9

Add new dev_spec_op call to device procs table, along with gxdevsop.h header
that defines the operation enumeration for it.
Move existing calls of pattern_manage across to using dev_spec_op instead.
Add comments to the pattern management definitions noting that it is
deprecated and should not be used.
No cluster differences (aside from indeterminisms).
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12326 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/base/gdevbbox.c
gs/base/gdevdflt.c
gs/base/gdevdrop.c
gs/base/gdevnfwd.c
gs/base/gdevp14.c
gs/base/gdevpdfb.h
gs/base/gdevpdfd.c
gs/base/gdevpdfi.c
gs/base/gdevpdfx.h
gs/base/gdevrops.c
gs/base/gscolor3.c
gs/base/gsimage.c
gs/base/gsptype1.c
gs/base/gsptype2.c
gs/base/gxacpath.c
gs/base/gxcldev.h
gs/base/gxclip.c
gs/base/gxclip2.c
gs/base/gxclipm.c
gs/base/gxclist.c
gs/base/gxclrect.c
gs/base/gxdevcli.h
gs/base/gxdevice.h
gs/base/gxdevsop.h
gs/base/gxfill.c
gs/base/gximask.c
gs/base/gxpcmap.c
gs/base/gxshade6.c
gs/psi/zpcolor.c
xps/xpstile.c

2011-03-30 09:26:50 +0000
Chris Liddell
ed774ca984d2566b00e212d130644abd5529235f

Update version number post-release.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12325 a1074d23-0009-0410-80fe-cf8c14f379e6
gs/Resource/Init/gs_init.ps
gs/base/gscdef.c
gs/base/version.mak

## Version 9.02 (2011-03-30)

This is the third release in the stable 9.x series.

This is an "out of order" release, primarily to ensure the GPL Ghostscript release remains in version "lock-step" with the Artifex commercial release.

Highlights in this release include:

For monochrome devices, there is a new halftone technique for sampled image data. The existing technique is very efficient (and is is still used) for large areas of color, such as an area fill, but encountered performance problems dealing with sampled image data where a given colour value only covered a few pixels at a time. The new approach applies the halftone threshold array directly to the image samples.

Further performance, memory use, and stability improvements with the new features introduced in 9.00, as well as Unix/Linux build fixes, plus the usual assorted bug fixes.

For a list of open issues, or to report problems, please visit bugs.ghostscript.com.

### Incompatible changes

No recorded incompatible changes.

2011-03-30T06:48:01.334550Z chrisl

Extend the SSE2 check in both configure scripts. The check now attempts to declare a variable of a type missing in older versions of gcc. Bug 692102 No cluster differences expected.

[base/configure.ac /trunk/ghostpdl/configure.ac]

2011-03-28T08:49:48.387061Z Chris Liddell

Reduce duplication of changelog and news by deprecating Changes.htm and Details#.htm. The information will now be in two places only: the highlights summary in News.htm, and the detailed changes in History#.htm. Update related documentation and html links to reflect this change. CLUSTER_UNTESTED

[doc/Changes.htm doc/Readme.htm doc/Details9.htm doc/Release.htm]

2011-03-26T14:51:06.549590Z Michael Vrhel

Fix for issue found by Chris where we have a soft mask embedded in a softmask and graphic state pushes and pops occurring. In this case, the soft mask stack that is saved gets out of sync compared to the one in the context state. Use of the stack count can catch the issue and correct it. Also a rename of one of the variables in the pdf14 code to make it easier to debug.

[base/gdevp14.c base/gdevp14.h]

2011-03-25T12:12:05.657797Z Till Kamppeter

Fixes concerning the compatibility of the OpenPrinting Vector ("opvp") output device with Ghostscript 9.x. 1. If there is any ICCColor based image in the PostScript input, GS crashes. 2. Fallback when path is too complex for some kinds of printers. This problem already existed in GS 8.x. Thanks to Koji Otani from BBR Inc., Japan.

[contrib/opvp/gdevopvp.c]

2011-03-25T10:22:06.357287Z Chris Liddell

The code was erroneously attempting to get a glyph name for a case where we already had a glyph index for a Truetype font. Add a check for object type before trying to get a string from a name object. Bug 692095 No cluster differences expected.

[psi/zfapi.c]

2011-03-24T17:26:17.397320Z Chris Liddell

Resolve build issues with language_switch and UFST. I had (wrongly) assumed that the PCL/language_switch builds with UFST and COMPILE_INITS=1 would have the relevant paths correctly setup for the PS/PDF world to access the Microtype FCOs. It turns out they are done in an incompatible manner. So, I've renamed the path variables (in the makefiles) so there isn't a clash between PCL and PS/PDF, ensured that the variables are correctly passed through recursive (n)make calls, and tidied up the FAPI options for the language_switch build. Not only does this allow language_switch to build with the UFST, but the Postscript interpreter does now use FAPI/UFST to access the Microtype fonts for the built-in fonts, and uses FAPI/Freetype for downloaded fonts. Bug 692093 No cluster differences expected.

[/trunk/ghostpdl/common/msvc_top.mak /trunk/ghostpdl/language_switch/pspcl6_msvc.mak /trunk/ghostpdl/main/pcl6_gcc.mak psi/msvc.mak base/Makefile.in psi/int.mak]

2011-03-24T04:22:23.459616Z Michael Vrhel

Fix for compiler warning.

[base/gdevp14.h]

2011-03-23T21:34:20.429081Z Michael Vrhel

This commit fixes several issues. Memory leaks in the PDF14 device as well as the separation devices. Fixes in PDF14 device so the the color encoder and decoder are properly updated if soft masks occur with spot colors. Proper copying of the devicen parameters to the clist devices in the MT rendering. This was the source of a problem when doing multi-threaded rendering to separation devices. This fixes bug 692087

[base/gdevp14.c base/gsicc_cache.c base/gxclutil.c base/gdevpsd.c base/lib.mak base/gdevp14.h base/gxclthrd.c base/gdevtsep.c base/gdevdevn.c base/gxblend.c base/gdevdevn.h]

2011-03-21T11:24:17.021832Z Michael Vrhel

Fix for memory leaks in the pdf14 device. These could occur with softmask and graphic state changes as well as when we are going to a tiffsep device.

[base/gdevp14.c]

2011-03-20T01:40:19.345427Z Michael Vrhel

Fix for bug 692087 crashes. num_bytes - bytes_dropped was ending up negative in cases where the transparency device was reducing the number of colorants compared to the target device (mainly when we had a softmask) which was getting passed into the clist as an unsigned value. Now when this occurs we just use the encoding of the full color value.

[base/gxclutil.c]

2011-03-19T04:56:52.259544Z Michael Vrhel

A temp fix for bugs 692038 and 692065. The clist devices that are created for the threads now inherit the icc profile from the target device. I need to set things up so that the device profile is no longer reference counted since we could have a race condition problem if the different threads are incrementing and decrementing the count and if the command is not atomic on a particular architecture. The plan will be to no longer ref count the device profile but to have it maintained until the the actual target device is destroyed. There will be a bit of work to do with respect to the pdf14 device, which can have a device profile that is different than the actual target device. That profile can be altered with the transparency group pushes and pops.

[base/gxclthrd.c]

2011-03-19T00:32:37.910024Z Ray Johnston

Fix for some strange rendering with PDF 1.7 FTS files when we have shading and transparency and are both filling and stroking text (Text Rendering modes 2 and 6). Customer 532.

[Resource/Init/pdf_ops.ps]

2011-03-18T05:16:08.669973Z Michael Vrhel

Fix so that image_parent_type is properly initialized during clist image reading.

[base/gsiparm4.h base/gximage1.c base/gximage4.c]

2011-03-17T15:24:58.552348Z Chris Liddell

Escape/quote the UFST path settings in the makefile so that the macros correctly expand to strings. Bug 692082 No cluster differences expected CLUSTER_UNTESTED

[base/Makefile.in]

2011-03-17T09:54:53.062174Z Chris Liddell

Uncached glyphs were ignoring rendering mode 3, and being imaged directly to the device - for cached glyphs the decision occurred in the "show machinery". This wasn't my first choice solution, but all the others I tried caused problems with later use of a cached glyph (which wasn't actually cached), or problems with pdfwrite, pswrite or ps2write. Bug 692004 No cluster differences expected.

[base/gspaint.c]

2011-03-17T09:41:16.074991Z Chris Liddell

Fix some issue where user specified devices didn't get the requisite "$(DD)" and ".dev" runes added to them. Also, rearrange the "pre-declared" device strings to be more consistent within configure.ac Bug 692062 No cluster differences expected.

[base/configure.ac]

2011-03-15T17:59:17.340024Z Robin Watts

Add special case mem_planar_copy_color_4to1 code for copying bits from 4 1 bit planes into 1 4 bit chunky plane. This helps with performance of the plibk device. No cluster differences expected.

[base/gdevmpla.c]

2011-03-15T08:35:05.386182Z Ken Sharp

Fix (ps2write) : Indexed colour images have incorrect /Decode Bug #691924 "Differences in colour with ps2write" The problem was due to the opdfread code generating a /Decode for an Indexed colour space where the value was [0 2^n] and should be [0 ((2^n) - 1)]. This caused the highest image sample to be mapped to 1 past the end of the samples in the colour space. Normally this doesn't matter, because the values are clamped to 'hival' in the Indexed space. In this case, however, the image was 2 bpp (4 values) but the colour space was defined as a full 256 indices, with only the first 4 bein used. The incorrect Decode caused the image sample value 3 to be looked up as colour space sample 4, which was set to all 0 (black) causing incorrect colour values.

[base/opdfread.h lib/opdfread.ps]

2011-03-14T15:46:15.599171Z Robin Watts

Reintroduce commented out PACIFY_VALGRIND definition in gximono.c - without it the comment makes no sense. Add new PACIFY_VALGRIND code (and commented out definition) in gxht_threshold.c. Fix some line endings. No real code change, so no cluster differences expected.

[base/gximono.c base/gxht_thresh.c]

2011-03-14T15:16:08.036660Z Robin Watts

Fix an indetermism in the halftoning code. When mapping a y offset into a row index for a halftone tile, special care needs to be taken when y is negative. Proof (as if more were needed) that the % operator in C is evil. The command in question was a cutdown version of C306.bin rendered at 600bpi to pbmraw with dMaxBitmap=10000. It now runs into a clist UMR. Will keep looking.

[base/gximono.c]

2011-03-14T13:53:51.702509Z Ken Sharp

Fix (ps2write) : Don't set a default halftone. Bug #691923 "Differences in dithered output with ps2write" The PDF interpreter emits a setpagdevice between every page of output, in case the media size has changed. The implementation of setpagedevice resets the halftone to be the default halftone (106 lpi 45 degree line screen). This is a problem for ps2write, and potantially pdfwrite, as there is no way to differentiate between a default halftone set by setpagdevice, and a halftone contained in the input file. To avoid embedding an unhelpful halftone, we now check the device parameter '/HighLevelDevice' in the setpagedevice implementation, and if it is present and true, we do not call .setdefaulthalftone. Also updates documentation on device parameters. This causes differences on every 1-bit rendering test (ie pkmraw) of the ps2write output file, so approximately 1300 differences are to be expected.

[doc/Drivers.htm Resource/Init/gs_setpd.ps]

2011-03-14T13:00:03.503443Z Robin Watts

Fix Bug 692064. Tiffscaled device was checking on page print time that the expected size of the page wouldn't make the page too large to fit in a file. This code was copied from the tiffgray device (as we render internally in 8bpp). As we output in monochrome however (and may use compression) the test is in fact bogus, and should simply be removed. We do that here. It's entirely possible that we should be removing the test from the tiffgray device too - most systems with 32bit longs support large files these days, and compression may apply here too anyway. I'll leave this until it becomes an issue though. No cluster differences expected.

[base/gdevtsep.c]

2011-03-13T11:57:08.378919Z Ken Sharp

Some updates to the new device parameters. It turned out that the intended parameter Type32ToUnicode was incorrectly implemented. This should actually have used the WantsToUnicode parameter, because the code actually controls the processing of GlyphNames2Unicode tables from Windows PostScript. This means we no longer need the Type32ToUnicode parameter and it has been removed. Added initial documentation of these parameters. This appears to cause some differences in Bug690829.ps rendered at 300 dpi. This is a surprise, because the changes should have no effect on devices other than pdfwrite/ps2write, but the new result is better than the old, so this is a progression.

[Resource/Init/gs_pdfwr.ps base/gdevpdfx.h base/gdevpdfp.c doc/Drivers.htm base/gdevpdfb.h]

2011-03-13T01:21:49.785339Z Ray Johnston

Remove spurious debug printout inserted in rev 12141 line 780: 1 index == 0 index ==

[Resource/Init/pdf_draw.ps]

2011-03-11T19:24:57.067395Z Ken Sharp

Change the default value for the 'AllowPSRepeat' so that it defaults to allowed instead of disallowed (doh!) This is important for those devices which don't set the device parameter. No differences expected.

[psi/zfunc4.c]

2011-03-11T17:14:51.124213Z Ken Sharp

Remove a #if 0 accidentally left in the commit for revision 12282. Also initialise a variable, just in case. No differences expected.

[psi/zfunc4.c]

2011-03-11T16:58:34.690669Z Ken Sharp

The final removal of the reliance on testing the device name to influence interpreter behaviour. This tests the /AllowPSRepeat paramter and flags an error if a function tries to use 'repeat' when it is disallowed. Still to do: write some documentation on these new parameters. No differences expected.

[psi/zfunc4.c]

2011-03-11T15:14:40.609962Z Chris Liddell

Add the new third party library directories to the Windows nmake zip file target. No cluster differences. Bug 691944 Credit to: Gennadiy Tsarenkov. CLUSTER_UNTESTED

[psi/winint.mak]

2011-03-11T15:07:56.095474Z Chris Liddell

Rejig the romfs targets so that unix make can follow the dependencies. This should prevent the pointless rebuilding of the romfs C source. Bug 692053 No cluster differences expected.

[base/lib.mak base/unix-aux.mak]

2011-03-11T09:04:24.536166Z Chris Liddell

Some (broken) TrueType fonts have out of order loca tables, which can result in the calculated glyph data lengths being larger than the actual available glyph data. Normally this does not cause a problem, but if the glyph in question is in the final bytes of the stream, we encounter an unexpected end of data condition when creating the glyph data buffer to pass into Freetype. So the FAPI interface code will now ignore that error, and adjust the byte length to correctly reflect the number of bytes available in the buffer. It is safe to do this because, in the event we have a genuine out-of-data condition, Freetype will return an error when it tries to interpret the glyph outline. Bug 692043 No cluster differences expected.

[psi/fapi_ft.c psi/zfapi.c]

2011-03-11T05:45:19.450208Z Alex Cherepanov

Fix missing header problem on older versions of MSVC.

[base/gsropt.h]

2011-03-11T04:15:39.316030Z Michael Vrhel

A reorganization of the halftone code in preparation of doing thresholding of color images. This basically pulls out some code pieces that will be shared in all the image thresholding cases. No differences expected (or seen in the cluster push).

[base/gxht_thresh.h base/lib.mak base/gximono.c base/gxicolor.c base/gxht_thresh.c]

2011-03-10T17:31:38.501799Z Robin Watts

I missed one change in commit 12274. The detection of chunky modes should look at num_planes being <= 1, not == 1. I tested this locally and then clearly missed it when cluster pushing.

[base/gdevdrop.c]

2011-03-10T16:56:15.200283Z Robin Watts

Planar device is broken w.r.t rops in a cmyk space - this commit fixes it. The planar memory device sets itself to use gx_default_strip_copy_rop rather than mem_strip_copy_rop. mem_strip_copy_rop knows that rops on cmyk pixels should actually convert to rgb, perform the rop, and convert back again, but doesn't know how to convert the results back when it's in planar mode. gs_default_strip_copy_rop can cope with planar mode, but doesn't know to convert to rgb first. The first fix included here is to extend mem_strip_copy_rop to know how to write back to planar format, and then to make the planar memory device use mem_strip_copy_rop. This then exposes various flaws in mem_strip_copy_rop, including the fact that it relies on being able to set the offset in get_bits calls when this is sometimes not possible. We therefore fix the code to manage offsets by explicitly updating them. Also, the raster used in mem_strip_copy_rop was incorrect - we use the correct one and get much better results. No cluster differences expected as the planar device is not tested.

[base/gdevdrop.c base/gdevmpla.c]

2011-03-10T16:42:20.394889Z Robin Watts

The routines in gdevplib.c intended to map colors in cmyk form back to rgb were incorrect. Fixed here. No differences expected as this files isn't linked in by default. CLUSTER_UNTESTED

[base/gdevplib.c]

2011-03-10T16:27:04.913812Z Robin Watts

Remove the buffer blanking done in gximono.c. Previously removing this would have caused indeterminisms. With the additional fix in here to limit offset_bits to dest_width, however, we should get stable results. This gives various differences in output (81 in pcl, presumably more in PDF and PS). Bmpcmp of the pcl ones shows them as all progressions.

[base/gximono.c]

2011-03-10T14:55:08.103488Z Ken Sharp

Update the remaining PostScript files (mostly the PDF interpreter) to use the new device parameters instead of explicitly checking for the device being named 'pdfwrite' or 'ps2write'. Some more modification is still required, but we're nearly there. We will continue to check the device names in gs_pdfwr.ps when setting up the default state for those specific devices. Although not strictly a Distiller device, ps2write declares itself to be 'IsDistiller'. This is because some PostScript test files were found to behave differently if the distillerparams operators were available, in particular files would be oriented differently if the device was deemed to be a Distiller.

[Resource/Init/gs_pdfwr.ps Resource/Init/pdf_font.ps Resource/Init/pdf_draw.ps base/gdevpdfb.h Resource/Init/gs_setpd.ps]

2011-03-10T07:31:45.990562Z Alex Cherepanov

Ignore null object when it is used instead of the gstate dictionary. Bug 692050.

[Resource/Init/pdf_main.ps]

2011-03-10T06:19:17.004672Z Alex Cherepanov

Change all instances of true, false, and null to //true, //false, and //null to avoid interferance from PS files that redefine them. Bug 692041.

[Resource/Init/gs_typ32.ps Resource/Init/gs_cidfm.ps Resource/Init/gs_mgl_e.ps Resource/Init/pdf_rbld.ps Resource/Init/gs_resmp.ps Resource/Init/gs_dscp.ps Resource/Init/gs_fonts.ps Resource/Init/gs_wan_e.ps Resource/Init/gs_mex_e.ps Resource/Init/gs_ttf.ps Resource/Init/gs_cspace.ps Resource/Init/gs_cff.ps Resource/Init/gs_dps1.ps Resource/Init/gs_lev2.ps Resource/Init/pdf_sec.ps Resource/Init/gs_l2img.ps Resource/Init/gs_cet.ps Resource/Init/gs_dbt_e.ps Resource/Init/gs_pdf_e.ps Resource/Init/gs_statd.ps Resource/Init/gs_fapi.ps Resource/Init/gs_pdfwr.ps Resource/Init/gs_cidfn.ps Resource/Init/pdf_main.ps Resource/Init/gs_dps.ps Resource/Init/gs_res.ps Resource/Init/gs_ll3.ps Resource/Init/gs_css_e.ps Resource/Init/gs_epsf.ps Resource/Init/pdf_draw.ps Resource/Init/gs_dpnxt.ps Resource/Init/gs_icc.ps Resource/Init/gs_mro_e.ps Resource/Init/pdf_ops.ps Resource/Init/gs_init.ps Resource/Init/pdf_font.ps Resource/Init/gs_ciddc.ps Resource/Init/gs_trap.ps Resource/Init/gs_cidtt.ps Resource/Init/gs_diskn.ps Resource/Init/gs_fntem.ps Resource/Init/pdf_base.ps Resource/Init/gs_sym_e.ps Resource/Init/gs_img.ps Resource/Init/gs_btokn.ps Resource/Init/gs_cidcm.ps]

2011-03-10T00:58:08.762234Z Michael Vrhel

Fix for bug 692038. This fixes 3 issues when using a CIELAB based profile for the output device ICC profile. One was a problem when handling separation color spaces when they had the ALL entry and we were going to an additive device. AR does a 1-INK level for the device values and no color management. We were doing the same, but this approach will not work if our destination color space is CIELAB. Now if we are headed toward CIELAB we do the 1-INK to RGB and then transform to CIELAB. Another was that transparency blending should never be done in CIELAB or similar type color spaces. With transparency, the PDF14 device inherits the profile for the target device and if the transparency groups don't specify a color space we would end up blending in CIELAB. The solution was to detect this situation and use the defaultRGB profile for blending. Conversion to CIELAB occurs during the pdf14 put image operation. Finally, with shading in transparency, we need to make sure to pass along the transparency device through the shading parameters whenever we have a color mismatch between the pdf14 device and the target device so that the shading will occur in the proper color space. These changes are all related to a non-tested cluster case when we have -sOutputICCProfile=lab.icc

[base/gdevp14.c base/gxcmap.c base/gstrans.c base/gxclist.h base/gdevtfnx.c base/gsfunc0.c base/devs.mak base/gsicc.c]

2011-03-09T21:32:58.461339Z Robin Watts

Add gxht_thresh.{c,h} to Visual C project. CLUSTER_UNCHECKED

[ghostscript.vcproj]

2011-03-09T14:44:40.068733Z Robin Watts

Disable PACIFY_VALGRIND in gximono.c. This define is intended to enable extra code that can be performed so as to ensure that valgrind doesn't report false positives. As such, disabling it should have no adverse effects. Unfortunately, it seems that in the portrait case, if we don't blank the threshold array before we run, we get diffs. I have therefore taken this memset out of the PACIFY_VALGRIND case and forced it to always happen. This probably points to a bug and should be investigated properly. No cluster differences expected.

[base/gximono.c]

2011-03-08T20:00:17.821965Z Robin Watts

Simple optimisations to non SSE2 versions of halftoning code. There is probably (certainly!) more performance to come with loop unrolling etc, but this at least gets us the cheap win of avoiding repeated array accessing, only setting, not blanking bits etc. Cluster tests show no changes.

[base/gxht_thresh.c]

2011-03-08T17:40:51.077420Z Robin Watts

Change to gsroprun1.h to avoid over/underreading the source/texture buffers. Given a valid byte range we expand that to the smallest enclosing CHUNK range and guarantee never to access out of that range. Previously we could read one CHUNK before/after it. If this is a problem, simply ensure that CHUNK is byte rather than int on your platform. This now behaves better than the original code which would access one byte before/after the defined range. No cluster differences seen in testing.

[base/gsroprun1.h]

2011-03-08T16:35:16.023687Z Tor Andersson

Add PNG reading support to the bmpcmp tool.

[toolbin/bmpcmp.c]

2011-03-08T15:18:42.397978Z Ken Sharp

Update to use the new device parameter /PreserveTrMode instead of explicitly checking for the device name being 'pdfwrite'. No differences expected.

[Resource/Init/pdf_ops.ps]

2011-03-08T08:27:54.788378Z Ken Sharp

Activate the new device parameters, and modify the resource code to use the first one (AllowIncrementalCFF) instead of testing for the pdfwrite device name. No differences expected.

[Resource/Init/gs_cidfn.ps base/gdevpdfp.c]

2011-03-08T00:26:07.330315Z Robin Watts

When using PACIFY_VALGRIND, don't call the memory blanking when the mallocs have failed. This should cure the SEGVs that were introduced, but otherwise cause no changes.

[base/gximono.c]

2011-03-07T22:19:29.253652Z Michael Vrhel

Initialize ht landscape structure to zero when in portrait case. There is a conditional test on the value later.

[base/gximono.c]

2011-03-07T21:57:02.879011Z Robin Watts

Correct line endings (were DOS, should be Unix). No cluster differences. CLUSTER_UNTESTED

[base/gxht_thresh.h base/gxht_thresh.c]

2011-03-07T21:17:12.494498Z Robin Watts

Add new debugging define to gximono.c, PACIFY_VALGRIND. This enables various small tweaks in the code that stop valgrind throwing errors. We believe that all the errors thrown are false positives, but we enable this define anyway until we've sorted the current indeterminisms. We'll disable it in a few days when we have solved the problems and check that it really doesn't cause any more. Cluster results unknown; probably no change. If this solves indetermisms then we'll need to understand why.

[base/gximono.c]

2011-03-07T21:11:56.916525Z Robin Watts

Fix typos, one in a comment, one in an id string. No cluster differences. CLUSTER_UNTESTED

[base/gxipixel.c base/gzspotan.c]

2011-03-07T18:58:08.149818Z Michael Vrhel

Fix for improper indexing of reversed portrait image line. We were off by one byte and ended up with one byte not set. Def. a source of indeterminism. Thanks to Robin for tracking this down.

[base/gximono.c]

2011-03-07T15:40:13.201330Z Ken Sharp

Undo revision 12243. The revision makes a debug print dependent on the value of the 'size_set' variable. Unfortunately, this variable is not defined in the cups_get_matrix routine. It is defined in the other places it is used (cups_put_params). This prevents a debug build from compiling on Windows, and I can't see how it would work on any other OS when built for debug. Reverted the change in order to build debug versions of Ghostscript.

[cups/gdevcups.c]

2011-03-07T14:21:11.345196Z Ken Sharp

Redo revision 12248 in a way which (hopefully!) doesn't cause seg faults. Still no differences expected....

[base/gdevpdfx.h base/gdevpdfp.c base/gdevpdfb.h]

2011-03-07T12:40:47.052280Z Chris Liddell

Account for fonts in which (some) charstrings have been replaced with Postscript procedures when FAPI decides an outline, or just a width is required. The previous code only handled this case for rendered glyphs from Freetype. Bug 692029 No cluster differences expected.

[psi/zfapi.c]

2011-03-07T11:12:19.973357Z Ken Sharp

pdfwrite & ps2write enhancement Add some new keys to the device parameters dictionary for these devices. These will be used to replace the explicit tests against the device name in various places in future commits. These will also later be documented and their use suggested for any devices requiring the same capabilities. No differences expected, these are not used yet.

[base/gdevpdfp.c]

2011-03-07T09:43:02.986503Z Chris Liddell

Update the second place where we may have to reset the Freetype glyph object. Again, this means we only free the outline or bitmap data, and just let Freetype "reset" its glyph object between glyphs. No cluster differences expected.

[psi/fapi_ft.c]

2011-03-07T07:08:12.439689Z Ray Johnston

Fix for compositor device chaining in the pdf14 device. This was detected in a file that did overprint along with transparency. The pdf14 device incremented the ref_count for the overprint_device, but never decremented it since the 'finalize' of the pdf14 device was left at NULL rather than being set to the gx_forward_finalize function which should be used. The gx_device_set_target, rather than rc_assign does the proper set of the finalize proc pointer so that reference counts for the device chain are properly maintained. Detected by customer 532 since their device freed the clist buf_device resulting in the overprint_device having a 'target' pointer to freed memory, causing a SEGV when the 'finalize' function executed. No regressions expected since in the normal code, the GC frees the devices that were left unreferenced by the free of the pdf14 device.

[base/gdevp14.c]

2011-03-06T16:52:19.765042Z Michael Vrhel

Fix to use proper DDA incrementation for interpolation. We still maintain special loops for when there is no scaling or for when it is 2x. This should fix the intdeterminism issues. Tested performance on customer files and no significant difference was observed. About 1500 cluster differences will be reported with this fix.

[base/lib.mak base/gximono.c]

2011-03-06T11:15:48.120325Z Chris Liddell

Instead of destroying and recreating freetype's glyph object for every glyph we need to render, we can just free the "transient" parts: the bitmap or the outline. Saves a very small amount of time, and potentially reduces memory pool fragmentation. No cluster differences expected.

[psi/fapi_ft.c]

2011-03-05T17:46:46.608714Z Till Kamppeter

Do not do debug output of an uninitialized variable Thanks to Richard Hughes (hughsient at gmail dot com) for the patch.

[cups/gdevcups.c]

2011-03-04T19:27:50.114304Z Till Kamppeter

Correction on Richard Hughes' patch for color management in the CUPS filters.

[cups/colord.c]

2011-03-04T17:51:00.067911Z Henry Stiles

Fix a warning and type error. Code should produce the same results, so no testing. CLUSTER_UNTESTED

[base/gdevdgbr.c]

2011-03-04T13:34:11.568425Z Robin Watts

Add FIXME to gximono.c about possible future optimisation, so it is not forgotten. CLUSTER_UNTESTED

[base/gximono.c]

2011-03-04T09:35:04.845642Z Chris Liddell

Only attempt to create files in the "cups" directory if it exists.

[base/configure.ac]

2011-03-04T06:45:29.360251Z Michael Vrhel

Reorganization of threshold code to move all the thresh holding operations into a new file.

[base/gxht_thresh.h base/lib.mak base/gximono.c base/gximage.h base/gxht_thresh.c base/gsiparam.h]

2011-03-04T06:16:53.560659Z Alex Cherepanov

Add missing test for /packedarraytype during recursive dereferencing of composite PDF objects. Bug 692018, customer 850.

[Resource/Init/pdf_base.ps]

2011-03-03T22:20:22.363870Z Henry Stiles

The get_bits() device call was assumed to return copied data and fill in the allocated memory pointed to by the variable row, in fact the gets_bit call can also just return a pointer and row is never initialized, now we detect that. This broke raster operations for the display device and appears to have resulted in the use of uninitialized data in other files. A sampling of changed files showed single pixel differences in files.

[base/gdevdgbr.c]

2011-03-03T20:29:23.683592Z Robin Watts

Update plibc and plibk to output pams when built with DEBUG_DUMP. No cluster differences possible as this code is not used in cluster testing. CLUSTER_UNTESTED

[base/gdevplib.c]

2011-03-03T20:23:43.920044Z Robin Watts

Add new pamcmyk4 device. Identical to pamcmyk32 device, but works in 1 bit per component, rather than 8. No cluster differences expected as this code isn't tested.

[psi/msvc.mak base/unix-gcc.mak base/gdevpbm.c base/devs.mak]

2011-03-03T17:51:48.590954Z Michael Vrhel

Enabling of thresholding code as default image rendering of monochrome/indexed images for monochrome devices. This will result in about 2432 differences reported. I stepped through them in a bmpcmp to check for serious issues. The minor halftone differences were due to the fact that we step in the device space for pixel replication in the threshold code but step in source space for the rect fill code. Enabling this code now will make it easier to track issues as we expand the use of the thresholding code.

[base/gximono.c]

2011-03-03T15:48:46.192376Z Robin Watts

Add plib device (c and h) files to ghostscript project file. No cluster differences expected as project file is not used by cluster. CLUSTER_UNTESTED

[ghostscript.vcproj]

2011-03-03T00:08:27.251299Z Marcos H. Woehrmann

Added the ability to specify bmpcmp in addition to a normal clusterpush.pl operation. Both commands will be queued in the correct order. Examples: ./clusterpush.pl gs bmpcmp ./clusterpush.pl bmpcmp gs pcl xps ls Note that the order of the options is not signficant. The command line parser for clusterpush.pl changed signficantly with this revision. It should be backwards compatible with the previous version but it's possible that subtle differences exist. If a clusterpush.pl command line behaves differently than you expect please open a bug.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/clusterpush.pl toolbin/localcluster/clusterpush.txt]

2011-03-02T22:12:39.208205Z Robin Watts

Fix rop operation on plib device. Previously, I'd disabled get_bits_rectangle on the buffer device as the data is normally in the format we need it in anyway, so it's a NOP. Unfortunately it's needed for rop operation, so reintroduce it. To avoid infinite loops, we have to cope with GB_RETURN_POINTER. This is easy to add to the gdevmpla.c device, but it's less clear that adding it into the mem device is the right thing to do. We therefore introduce a shim function to cope with GB_RETURN_POINTER with the mem device. No cluster differences expected as this is disabled by default. Testing shows that the planar device is now very close to the non planar equivalent.

[base/gdevplib.c base/gdevmpla.c]

2011-03-02T20:50:46.635530Z regression

Minor bug fixes and improvements to the cluster system, the most signifcant of which is the addition of "CLUSTER_UNTESTED" detection. If this keyword appears anywhere within the log message of a commit that revision will not be tested by the cluster. Less interesting changes include: Fix for bmpcmp if large numbers of differences are produced Addition of 'svn cleanup' calls before 'svn update' to handle nodes that crashed during previous 'svn update' and left the repositories locked Set status of all nodes to idle after jobs are completed. Fix bugs that caused bmpcmp completed emails to be appended to the previous message.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/pngs2html.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl]

2011-03-02T18:51:23.645025Z Michael Vrhel

Introduction of a member variable in gs_image1_t, which will let us know the original source type of the image. For example if, the parent source were type3 this spawns two type1 images. One for the mask and one for the image data. The mask is rendered using image render simple. If the image is monochrome or indexed, it is rendered with the renderer in gximono.c . If we are going to a halftone monochrome device, we end up using the fast threshold based renderer which has its interpolation stepping in device space as opposed to source space. This causes very minor differences between the mask and the image data. To avoid this, we use the old rect_fill code for the image type3 data to ensure a more exact spatial match.

[base/gximono.c base/gximage1.c base/gximage2.c base/gximage3.c base/gximage4.c base/gximage.h base/gximag3x.c base/gsiparam.h]

2011-03-02T13:39:52.433442Z Robin Watts

Fix bmpcmp bug; the map array was being incorrectly sized, resulting in occasional memory corruption. No cluster differences expected.

[toolbin/bmpcmp.c]

2011-03-02T00:09:25.760114Z Robin Watts

Debug output for gdevplibm (monochrome planar interlaced bands) was broken and writing malformed pbms. Simple fix - move the mono output code to the mono branch of the if rather than the grey one. No cluster differences expected.

[base/gdevplib.c]

2011-03-01T19:30:56.622647Z Robin Watts

Remove DOS line endings from .gitignore files.

[.gitignore /trunk/ghostpdl/.gitignore]

2011-03-01T17:18:30.158752Z Michael Vrhel

Fix for error introduced in non-SSE2 code when I removed the inclusion of the transfer function into the threshold values.

[base/gximono.c]

2011-02-28T22:31:28.419926Z Till Kamppeter

Added color management support to the CUPS ...toraster filters Replaced the ...toraster filters by one filter executable, gstoraster, written in C. This filter converts both PostScript and PDF input into the CUPS Raster format using Ghostscript with the "cups" output device, controlled by settings in the print queue's PPD file, by command line options, and by settings embedded in a PostScript input stream. This is now done with color management based on printer-specific ICC profiles referenced in the PPD file or supplied by the color management daemon colord. The CUPS PPD extensions concerning color management (http://www.cups.org/documentation.php/doc-1.4/spec-ppd.html) are made use of if used and the colord daemon is used if it is present. colord is accessed via D-Bus, but the new filter can also be compiled without D-Bus and in this case only the CUPS PPD extensions and ICC profiles assigned to the print queue are used for color management. Thanks to Richard Hughes for the patch.

[cups/pstoraster.in cups/pstoraster.convs cups/gstoraster.c cups/pdftoraster.c cups/cups.mak base/Makefile.in cups/colord.c base/configure.ac cups/gstoraster.convs cups/pdftoraster.convs cups/colord.h]

2011-02-28T20:30:43.994348Z Robin Watts

X offset in custom 24 -> 888 planar copy_color routine was being miscalculated. Simple fix. No cluster differences expected as this is untested.

[base/gdevmpla.c]

2011-02-28T19:35:34.539587Z Robin Watts

Remove silly debugging hack left in gdevmpla.c by accident. Only affects planar 888 devices (i.e. none enabled by default). No cluster differences expected.

[base/gdevmpla.c]

2011-02-28T19:32:37.270892Z Robin Watts

Add simple .gitignore files.

[.gitignore /trunk/ghostpdl/.gitignore]

2011-02-28T10:48:11.852106Z Ken Sharp

Silence a compiler (scan-build) warning about a variable never being used.

[base/gdevpdfo.c]

2011-02-28T05:23:46.157854Z Michael Vrhel

Fix for mis-scale on decode for render mono cache. Fixes improper rendering of 148-11.ps with new halftone code.

[base/gxipixel.c]

2011-02-27T23:26:10.406657Z Michael Vrhel

Removal (or inactivation) of code to include inverse of transfer function in the threshold values. Also minor fix for scaling issue in halftone code in portrait mode. Code is inactive so no regression diffs expected.

[base/gximono.c base/gsht.c]

2011-02-27T23:23:30.287293Z Michael Vrhel

Fix for a bug that was introduced with the ICC branch. This was causing a mismatch between banded an unbanded rendering and in particular had rendering errors in banded mode when rendering PS and PDF files that had a non identity transfer function. Minor progression diffs in many files with very visible progressions in 246-01.ps, 258-01.ps as examples. What was happening is that when running in clist mode, we were not recognizing that a transfer function was present when doing the ICC branch. Stumble upon this working the transfer function in with the new threshold based halftoning code.

[base/gxipixel.c]

2011-02-27T01:52:28.834714Z Ray Johnston

Fix for PDF with ASCII85Decode filter that has a dictionary (even if empty) instead of a 'null' for the params. Stack has the param dict second on the stack, not third. Bug 692003, customer 700.

[Resource/Init/pdf_base.ps]

2011-02-26T19:17:52.838303Z Till Kamppeter

TCUPS Raster driver: The macros in the cups_put_params() function could access uninitialized variables when logging error messages and this could lead to a segmentation fault, making Ghostscript crashing and many jobs not printed. Debian bug #615202.

[cups/gdevcups.c]

2011-02-26T18:40:59.351498Z Ray Johnston

Fix for PDF 1.7 fts_08_0808.pdf which can clip the corner of the really wide diagonal (magenta) stroke when banding is used. This was due to the 'extension' of a square line cap being incorrectly calculated. Customer 532 issue.

[base/gxstroke.c]

2011-02-26T18:25:08.170267Z Ray Johnston

Fix BUILD_SYSTEM conditional for 64 vs. 32 and add 'for Win64' message to help avoid confusion during setup.

[psi/winint.mak]

2011-02-25T23:57:50.833144Z Robin Watts

Fix bug reported by "new customer feb 2011", whereby gs 8.71 on an embedded ppc platform is getting the colours on an image in a pdf wrong. Debugging shows that in gs_indexed_limit_and_lookup we take a floating point value, clip it, convert it to an int and use it to lookup which colour to use. On the reference x86 run we have a value of 1 (0x3f800000 as an IEEE float). On the ppc we have 0.999999 (0x3f7fffff as an IEEE float). This tiny difference results in values of 1 and 0 respectively when converted to the int, giving the wrong colour. The fix here is to add a small epsilon before conversion. A quick experiment in adding 0.5 rather than epsilon shows worse results. 15 cluster differences in testing, none that actually survived a bmpcmp.

[base/gscolor2.c]

2011-02-25T19:49:39.160812Z Michael Vrhel

Fix so that we only do the fast code if we are in portrait or landscape mode. Skewed objects will have to use the rect fill method.

[base/gximono.c]

2011-02-25T19:33:55.727547Z Michael Vrhel

Addition of code to incorporate the inverse of the transfer curve into the threshold matrix. If the curve is an inverting type (e.g. 0 to 1 and 1 to 0) then a the thresholding comparison is switched. Also, if the curve is not monotonic, it can not be inverted and we revert to the old rect fill method. This commit has the code disabled so there should not be any regressions.

[base/lib.mak base/gximono.c base/gzht.h base/gxdht.h base/gsht.c]

2011-02-25T18:13:49.002375Z Ray Johnston

Set the GS_DLL to gsdll64.dll for a 64-bit build. The file list was correct, but the registry was not. Related to bug 691975 but not verified (I just checked the registry using regedit).

[psi/dwsetup.cpp]

2011-02-25T07:42:21.024741Z Chris Liddell

Revise how the UFST setting are handled in the makefiles. The previous version relied on GNU make extensions (specifically conditionals), whilst this version does not. No cluster differences expected.

[base/lib.mak psi/msvc.mak base/Makefile.in psi/int.mak]

2011-02-24T11:13:12.751072Z Chris Liddell

Hopefully the final iteration of allowing SHARE_ZLIB to work correctly with COMPILE_INITS=1. This version changes only Unix-like builds, so Windows need not suffer, and also removes the reliance GNU make specific extensions. Bug 691986 No cluster differences.

[base/unix-aux.mak]

2011-02-24T00:51:08.210054Z Robin Watts

Add new plib family of devices (PLanar Interlaced Buffer). These 5 devices (plib = r8g8b8, plibg = g8, plibm = mono, plibc = c8m8y8k8, plibk = c1m1y1k1) use a new 'band donor' interface to request a band buffer, pass back rendered bands, and release bands at the end of the page. The idea is that other firmware can implement this simple interface, and Ghostscript can thus easily drive systems that expect planar interlaced input. On the whole there is relatively little new code here; the majority of the work is done using the existing planar device with the odd tweak here and there. Firstly, we lift the (artifical) constraints of the number of components supported (so greyscale is accepted as a planar device for simplicity). We spot the num_components = 1 case and just use the existing memory device interface. Secondly, we add a fast 888chunky to 888planar unpacking routine for use with copy_color. Within the plib device itself, we make use of the facility to set the line indexes to allow for interlaced operation. It would be easy to extend this device to offer planar non-interlaced operation too built on the same band donor interface simply by omitting this code. For debugging purposes we have options within the plib devices to store the data returned in each band into pxm files (as appropriate to the number of components). This code is deactivated by default as the output of this device is via the band donor interface, not the output file. No cluster differences expected as this code is disabled currently. Next job: discuss with Marcos how to cluster test this.

[base/gdevplib.c base/gdevmpla.c base/gdevplib.h base/gdevppla.c base/devs.mak]

2011-02-23T16:00:25.505362Z Robin Watts

Introduce and enable 8 bit rop run templated code. No cluster differences shown.

[base/gsroprun8.h base/lib.mak base/gsroprun.c ghostscript.vcproj]

2011-02-23T14:41:45.053687Z Michael Vrhel

Remove commented out code left over from commit 12192

[base/lib.mak]

2011-02-23T11:54:00.145784Z Robin Watts

Reintroduce runrop changes to Visual Studio solution lost in recent merge (r12189). No cluster differences expected.

[ghostscript.vcproj]

2011-02-23T08:25:40.039813Z Chris Liddell

Revision to the changes for using the system zlib. r12184 caused problems on Windows. This approach uses configure to determine whether freetype should use the system zlib, based on whether Ghostscript is using the system zlib. Windows, of course, doesn't use configure, so it will never attempt to the use the system zlib. Bug 691986 No cluster differences expected

[base/freetype.mak base/Makefile.in base/configure.ac]

2011-02-23T03:26:18.063337Z Michael Vrhel

Temporary fix to turn off fast code for cases where the bps of the index image is not 8bps

[base/gximono.c]

2011-02-23T01:09:08.645858Z Michael Vrhel

Undo of rev 12184 by commenting out the changes for now. This change broke the windows build.

[base/lib.mak]

2011-02-22T21:31:58.870907Z Robin Watts

Fix warnings caused by merging the halftone branch to the trunk in r12189. No cluster differences expected.

[base/gxipixel.c base/gximono.c base/gsht.c]

2011-02-22T20:03:37.651092Z Robin Watts

Forgot this file inthe last commit. Sorry!

[base/gsroprun24.h]

2011-02-22T19:52:43.275685Z Michael Vrhel

Merge of halftone branch into the trunk. The new rendering code is actually disabled with this commit. As such, there should not be any testing differences.

[base/gxipixel.c base/lib.mak base/Makefile.in base/gxcie.h /trunk/gs base/gsht.c base/gxcmap.c psi/msvc.mak ghostscript.vcproj base/gximono.c base/gzht.h base/gxidata.c base/configure.ac base/gxdht.h base/gxcmap.h base/gxicolor.c base/gximage.h base/gsciemap.c]

2011-02-22T19:38:57.296889Z Robin Watts

Add templated 24bit rops. Clusterpushing seems to indicate this works. No cluster differences expected.

[base/lib.mak base/gsroprun.c base/gsroprun1.h]

2011-02-22T16:10:08.900201Z Chris Liddell

Tweak to allow compressed romfs to be built when we're configured to use the system's zlib rather than our own. As a side effect of this, freetype is now configured to use the same zlib instance as Ghostscript (instead of freetype's own subset of zlib sources). Bug 691986 No cluster differences expected.

[base/freetype.mak base/lib.mak]

2011-02-22T15:44:09.440053Z Robin Watts

Add new gsroprun files to Visual Studio solution. No cluster differences expected.

[ghostscript.vcproj]

2011-02-22T15:28:03.132855Z Robin Watts

Fix DO_FILL_RECT_BY_COPY_ROP code, and enable it by default. The only thing wrong with the code before is the case when strip_tile_rectangle is called with both color0 and color1 being gx_no_color_index. That translates to rop=0xAA (i.e. D - no change). This is actually a special case that means it's really doing a copy_color operation. We handle this by punting in the same way as the old code used to. No cluster differences expected.

[base/gdevm1.c]

2011-02-22T00:18:16.845591Z Robin Watts

Enable mono_copy_mono implemented in terms of mono_copy_rop. Very small changes to the code to ensure that the copied area is correctly clipped, this now gives identical results to the existing code, but should be faster. The tile_rectangle code is still misbehaving - will fix this in later revisions (I hope). No cluster differences expected.

[base/gdevm1.c]

2011-02-21T17:12:10.825257Z Robin Watts

Recommit of 12163 to the trunk. The fit_copy macro checks for the start address being off the top of the screen, and clips it to zero. When it does this, it does: data -= y * raster, which gives problems if raster is a uint ( as uint * int == uint in C) and data is a 64 bit pointer. The fix is simply to cast the result to an int before using it. This solves various SEGVs with the mono_copy_mono using mono_copy_rop code. No cluster differences expected.

[base/gxdevice.h]

2011-02-21T16:04:25.039434Z Chris Liddell

The structure containing the pthreads native elements making up a gp_semaphore structure was ending up incorrectly aligned on sparc32 Linux systems, and caused a bus error. Annoyingly, sparc32 uses 32 bit pointers but requires 64 bit aligment. This change enforces maximum alignment for the elements of gp_semaphore, for the current platform. No cluster differences expected. Bug 691989

[base/lib.mak base/gpsync.h]

2011-02-21T12:29:20.951013Z Robin Watts

Fix stupid typo in gsroprun.c that was causing templated rops to be different to non templated rops. With this fixed the cluster shows identical results (modulo indeterminisms), but the templated code is faster - so enable by default. No cluster differences expected.

[base/gsroprun.c]

2011-02-20T12:41:20.382249Z Robin Watts

Initial reorganisation of code towards using copy_rops for copy_mono. Split the guts of mem_mono_strip_copy_rop out into a separate function mem_mem_strip_copy_rop_dev. This new function handles the actual copy in device space, leaving the original to cope with fiddling the rop according to colors. This 'inner' function is moved to gdevm1.c so it is present in both gs and ghostpcl builds. The existing (bitrotted) code in gdevm1.c to 'USE_COPY_ROP' is revamped to call mem_strip_copy_rop_dev, but is disabled currently as the cluster is showing a few differences that need to be tracked down. Also, this introduces new code to do gsroprun's using code in a generic header file that gets repeatedly #included with different options. This code is currently disabled until we can verify that it gives identical results. The new 'templated' code uses native ints where possible, and (in initial limited testing) seems to perform better than copy_mono. No cluster differences expected.

[base/gdevmem.h base/lib.mak base/gsroprun.c base/gdevm1.c base/gsropt.h base/gsroprun1.h base/gdevmr1.c]

2011-02-19T07:01:13.923016Z Alex Cherepanov

Add a missing check for null value during PDF resource enumeration. Bug 691892, customer 532.

[Resource/Init/pdf_main.ps]

2011-02-18T13:22:59.764503Z Robin Watts

Committing fix for Bug 689031 submitted by Shailesh Mistry under the bug bounty program. Tests out fine (1 minor difference, looks like a progression to me). See bug for full discussion, but basically this removes a few calls to path_position_valid in exchange for accessing the equivalent data kept locally.

[base/gxchar.c base/gzpath.h base/gxccache.c base/gspath1.c]

2011-02-18T11:51:25.345393Z Ken Sharp

Enhancement (pdfwrite) : performance improvement Bug #691946 "Conversion to PDF becomes slower and slower" There are many places where pdfwrite compares composite objects for equality. This can be a very slow process, depending on the nature of the object, and becomes progressively slower as more object are added to storage. Previously we had added a MD5 hash to the stream data of a cos_stream in order to improve the performance when checking fonts for equality, this change takes the whole process much further. We now store an MD5 'fingerprint' for each composite object, initially this is not computed and is marked as not valid. Whenever an equality test takes place we check to see if the composite object has an MD5 hash calculated, and if it does, we compare the MD5 hashes. If it does not then we compute an MD5 hash, store it, and mark it as valid. Note that for cos_stream types we store *two* hashes, one for the dictionary and one for the stream data. If we alter the contents of a composite object then we mark its MD5 hash as invalid so that we recompute it on the next occurence. Technically there could be a problem if a composite object contains a composite object, and the descendant object is altered after the MD5 hash is calculated for the parent. However this should not occur given the way these structures are used (these are pdfwrite internal structures, *not* PS or PDF objects available to the interpreter). This very significantly improves performance on some files, the test file for bug #691946 takes 2642 seconds without this change (and DetectDuplicateImages true) while it takes 963 seconds after this change. Note that this change depends on revision 12169 and should ideally be used with revisions 12168 to 12171 inclusive. No other differences expected.

[base/gdevpdfo.c base/gdevpdfo.h]

2011-02-18T11:37:56.561896Z Ken Sharp

Fix (pdfwrite) : images being scaled incorrectly Found while dealing with other problems. pdfwrite uses the image 'height' (rendered height) and number of lines of data to calculate a 'scale' which it then applies to the current Transformation Matrix in order to calculate an image matrix. However, when an image was detected as a duplicate, the scale factor was calculated from the first image's dimensions, and then applied to the CTM for the second matrix. This did not appear to cause problems for PostScript and PDF but causes serious bugs in a number of PCL files, and was clearly incorrect. We now save and restore the height and width when substituting images to prevent this problem

[base/gdevpdfj.c]

2011-02-18T11:32:07.033929Z Ken Sharp

enhancement (pdfwrite) : Allow duplication image detection to be disabled pdfwrite tests every (non-inline) image against every other stored image to see if it is a duplicate, and if so does not embed the duplicate in the output but simply references the original. This can be slow for files with many images (each stored image must be checked when a new image is encountered) and may be of limited benefit. The new flag DetectDuplicateImages (default true) can be used to enable or disable this behaviour No differences expected

[base/gdevpdfj.c base/gdevpdfx.h base/gdevpdfp.c doc/Ps2pdf.htm base/gdevpdfb.h]

2011-02-18T11:25:24.853829Z Ken Sharp

Fix (pdfwrite) : Correction to an equality test This fixes a long-standing bug when checking the equality of patterns. We need to ensure when substituting patterns that neither of the patterns is already substituted. But the code only tested one of the patterns (and was a duplicate of another test), which led to incorrect results. This should always have been a problem but for some reason seems to have been masked in previous releases. New code for testing equality of composite objects revealed the problem. No differences expected, as the problem is only revealed with code which follows in a subsequent commit.

[base/gdevpdfi.c]

2011-02-18T11:15:23.457563Z Ken Sharp

Fix a typo in an enumerated type. No differences expected.

[base/gxhldevc.h base/gxhldevc.c base/gdevpdfg.c]

2011-02-15T16:36:59.934186Z Henry Stiles

Double the allowed space for cached chars and increase the maximum byte size of a single glyph that can be cached.

[base/gsfont.c]

2011-02-15T15:07:55.282721Z Ray Johnston

Fix for building the gs***w64.exe self extracting installer compatible with the new 64-bit binary naming and makefile macro (BUILD_SYSTEM)

[psi/winint.mak]

2011-02-15T09:21:28.927211Z Chris Liddell

Ensure that the OpenPrinting drivers get removed from the drivers list if iconv/libiconv are not available. The strings used to identify the drivers in the list were incorrect.

[base/configure.ac]

2011-02-14T20:39:33.924424Z Robin Watts

Fix Bug 691917. In revision 11146 I made op_array_table_global and op_array_table_local be elements of the context rather than being globals, and changed all the code to access these elements through the context. Unfortunately I forgot to cope with when new contexts are generated by forking execution. The correct fix is, I believe to simply copy the op_table pointers over to the new context. This has been done here, and seems to solve the reported bug. No cluster differences expected.

[psi/zcontext.c]

2011-02-14T11:04:39.509187Z Till Kamppeter

Removed a tab accidentally introduced in rev 12082.

[Resource/Init/cidfmap]

2011-02-10T17:14:23.128533Z Chris Liddell

Ensure that a --build option is propogated to the other configure scripts we call.

[base/configure.ac]

2011-02-10T13:21:58.493309Z Ken Sharp

fix error in revision 12140 When fetching the size of the stream for a /Indexed colour space, omitted to check if the /Length of the stream was an indirect object. Now dereference the object if this is the case. Should fix the 14 files with errors introduced in 12140.

[Resource/Init/pdf_draw.ps]

2011-02-10T10:43:26.255155Z Ken Sharp

Fix : colour space handling bug and improved handling of broken ICC space Bug #691941 "Interpretation of PDF aborts with /typecheck" The PDF file in the specimen contains an invalid colour space of the form: /Indexed [/ICCBased <</N 1 /Alternate [/Indexed /DeviceRGB 255 7 0 R]>>] 255 7 0 R] The number of components in the ICCBased specification is incorrect, as the profile has 3 channels. This was not detected previously. Falling back to the /Alternate we see that we have a /Indexed space depending on a /Indexed space which is also invalid, but we choose to ignore this. There was also a bug in the colour space handling for ICCbased spaces which caused a typecheck if the alternate space was a /Indexed space. Finally, the PDF interpreter is updated so that when given a stream as the data source for a /Indexed space it reads and returns a string which is the greater of the declared size of the stream, or the calculated size required, given the number of components. Previously we always returned the calculated size, which was too little in this case as the number of components in the ICCBased space is incorrect. With these changes the (invalid) specimen file runs to completion. No differences expected.

[psi/zcolor.c psi/zicc.c Resource/Init/pdf_draw.ps]

2011-02-10T10:33:23.506445Z Ken Sharp

Fix Bug #691918 Update the Unicode decodings applied to TrueType fonts to match the latest Adobe glyph list. Fixes some problems with incorrect mappings and adds numerous new mappings. A similar but less extensive change is made to the FCO_Unicode mappings as well. Thanks to SaGS for the work on this problem. No differences expected as these are only used for ToUnicode CMaps.

[Resource/Decoding/Unicode Resource/Decoding/FCO_Unicode]

## Version 9.01 (2011-02-07)

This is the second release in the stable 9.x series.

Highlights in this release include:

A new, robust CFF parser implemented in C (replacing the previous Poscript one),

tiffscaled device - this renders internally as tiffgray, but then downsamples by an integer scale factor (specified by -dDownScaleFactor=n) and error diffuses to 1bpp output. The tiffscaled device also implements limited minimum feature size functionality; by setting -dMinFeatureSize to 1, 2 or 3, the device output is guaranteed to generate minimum dot sizes as multiples of the final resolution, useful for devices that offer finer position control than dot size control.

Add DSC compatible output in ps2write.

Windows makefiles now support 64 bit builds on 64 bit systems.

A number of performance, memory use, and stability improvements with the new features introduced in 9.00, plus the usual bug fixes.

We have also dropped support for Watcom and Borland development environments. These had not been maintained for some time, and were suffering "bit rot".

For a list of open issues, or to report problems, please visit bugs.ghostscript.com.

### Incompatible changes

No recorded incompatible changes.

### Changelog

2011-02-07T14:10:27.833602Z Chris Liddell

Some updates to the details of the UFST and Freetype related information. Plus adding the warning about Xfonts pending removal.

[doc/Make.htm doc/Xfonts.htm]

2011-02-05T15:29:32.296497Z Chris Liddell

As we plan to deprecate Xfonts in a future release, add a warning message to this effect when an Xfont is used, as follows: "Warning: the Xfonts feature is deprecated and will be removed in a future release." No cluster differences expected.

[base/gxccman.c]

2011-02-05T15:27:25.033646Z Chris Liddell

Merge r12117 from the "halftone" branch into trunk, the original commit comment says: Fix bug in bit devices rgb mapping procedure; in the ncomp == 1 case it was only setting the first component. This was causing indeterminisms in calling code, which has been giving vastly different timings in Norberts tests. This has apparently been here since revision 3318.

[base/gdevbit.c]

2011-02-04T15:51:42.379449Z Robin Watts

Fix problem with shifting in gsroprun.c. I had systematically got this wrong throughout the code, but fixed it everywhere except this one case in an earlier commit. This completes the fix. No cluster changes expected.

[base/gsroprun.c]

2011-02-03T12:30:28.178697Z Chris Liddell

A final tweak to the FAPI/UFST code to keep C compilers less liberal than gcc happy (specifically Visual C). No functional changes.

[psi/fapiufst.c]

2011-02-02T18:27:57.905008Z Chris Liddell

A couple of minor UFST related tweaks to account for differences between UFST 6.2 and UFST 5.x.

[psi/fapiufst.c base/gxfapiu.c]

2011-02-02T17:18:09.939035Z Ray Johnston

Change Windows makefiles extensively for 64-bit issues: 1. Command line nmake works now for 32-bit build on 64-bit OS 2. 64-bit builds use different directories for objects to allow 32 and 64 bit builds to be alternated without confusion. 64-bit objects have '64' suffix to the 32-bit objects which remain in the same places 3. 64-bit binaries are now named uniquely, e.g. gsdll64.dll and gswin64.exe Binaries coexist in 'bin' directory since names are unique. 4. 'Style' changes to the makefiles to remove the '32' suffix from files that are not 32-bit specific -- hopefully will prevent future confusion. Tested with VS 2005 and VS 2008 as well as with GhostPDL.sln (to make sure the pcl, xps, and language_switch builds don't break.

[psi/msvc64.mak psi/gsdll64.def psi/dwsetup.cpp psi/msvc.mak psi/dwmain.c psi/dw64c.def psi/msvc32.mak psi/dwmain64.def psi/dwdll.c base/msvctail.mak psi/dwimg.c]

2011-02-02T15:34:53.024741Z Ken Sharp

Remove 4 cases where lines had apparently spurious leading spaces, this seriously confused nmake and refused to build on Windows. No cluster differences expected.

[psi/msvc32.mak]

2011-02-02T15:14:53.428205Z Ken Sharp

Fix (ps2write) : Enable ps2write on PCL Bug #691881 "ps2write broken with GhostPCL" ps2write formerly required 4 'resource' PostScript files stored on disk in order to write a PostScript header to the output file. These files have now been converted into 'C' header files and included in the source in earlier revisions. This commit removes the last barrier to ps2write working with PCL (and other non-PostScript languages) by removing a disk-based check for opdfread.ps. No differences expected.

[base/gdevpdfu.c]

2011-02-02T14:55:37.673202Z Robin Watts

Add cups files to VS project. This is a very simple, clean patch to the gs visual studio project file, so (famous last words) can't affect the cluster build and shouldn't conflict with anyone else.

[ghostscript.vcproj]

2011-02-02T14:12:15.676565Z Chris Liddell

A set of changes to make it easier to use the UFST with Ghostscript and to get us closer to having the option of the UFST handling font types other than the Microtype fonts. The UFST build, using the default COMPILE_INITS=1 will now include the Microtype FCO files in the rom file system along with the other initialisation files (it does not currently strip out the normal Postscript fonts in Resource/Fonts), and setup default values for the various paramters required to have Ghostscript use the Microtype fonts (these can still be overridden on the command line). For the build with COMPILE_INITS=0, the default paths will use the path to the UFST you specify for configure, or nmake on Windows. Included in this revision are changes to prevent the UFST version 5.x (or less) from trying to handle non-Microtype fonts, and allow it to safely fall back to the Freetype (or a.n.other FAPI plugin). UFST 6.2 or better will try to handle all fonts types, but this is not yet reliable. Currently, this code only replaces the UFST memory management on UFST 6.2 and above (this is purely because I haven't time to test this capability on UFST 5 yet). A further change will be committed shortly to the UFST 5 sources to force the UFST to use the Ghostscript stream IO instead of the standard lib file IO on the Windows builds (this has been in place for the Unix/Linux UFST builds for some time).

[psi/zfapi.c base/Makefile.in Resource/Init/gs_fntem.ps base/configure.ac psi/fapiufst.c base/gxfapiu.c psi/msvc32.mak Resource/Init/gs_fapi.ps]

2011-02-02T13:30:54.074131Z Ken Sharp

The ps2write dependency on the new header files was incorrect (over-enthusiastic copy and paste error)

[base/devs.mak]

2011-02-02T11:23:07.465859Z Chris Liddell

Allow building with the system (shared) lcms library. Bug 691644.

[base/lib.mak base/Makefile.in base/configure.ac]

2011-02-02T09:28:15.868989Z Ken Sharp

Remove the check on opdfread.ps from gs_pdfwr.ps as this is no longer shipped as a PostScript file in /gs/Resource

[Resource/Init/gs_pdfwr.ps]

2011-02-02T08:46:11.323868Z Ken Sharp

Update two make files that had dependencies on opdfread.ps, which has been removed from the PostScript file system.

[psi/psromfs.mak base/unixinst.mak]

2011-02-02T08:27:43.587977Z Ken Sharp

It seems that three of the files removed in revision 12093 are used by devices other than ps2write. Replacing those files.

[Resource/Init/gs_mro_e.ps Resource/Init/gs_agl.ps Resource/Init/gs_mgl_e.ps lib/gs_mro_e.ps lib/gs_agl.ps lib/gs_mgl_e.ps]

2011-02-02T08:14:36.361918Z Ken Sharp

Fix ps2write : Don't depend on the PS file system for resources. ps2write needs up to 4 resource files which are normally stored in the PostScript ROM file system. However on PCL and other languages these resources are (obviously) not present, so the output is incomplete. Move the relevant files from PostScript into 'C' as header files. Remove the files from the PostScript file system to save ROM file system space. Put the removed files into the gs/lib folder for safe-keeping. Add the .h files as dependencies for gdevpdfu.c in the build system so that changes to these files cause a rebuild. No differences expected.

[base/opdfread.h Resource/Init/gs_mro_e.ps Resource/Init/gs_agl.ps Resource/Init/gs_mgl_e.ps base/gs_mro_e.h lib/opdfread.ps base/gs_agl.h base/gs_mgl_e.h Resource/Init/opdfread.ps base/gdevpdfu.c lib/gs_mro_e.ps base/devs.mak lib/gs_agl.ps lib/gs_mgl_e.ps]

2011-02-01T22:11:44.446124Z Marcos H. Woehrmann

Fix for missing arch.h when compiling gdevcups.c with parallel make.

[base/devs.mak]

2011-02-01T21:46:27.115736Z Ray Johnston

Fix for PDF 1.7 fts_09_0910.pdf where the /Font is in an ExtGState instead of set by the Tf operator. In this case, the font is an indirect reference, not a font resource name. Reported by customer 532.

[Resource/Init/pdf_draw.ps]

2011-02-01T17:07:50.035956Z Chris Liddell

Freetype expects the resolution we supply it to be in "glyph orientation" - not a problem until we have a non-square resolution, and rotated glyphs! Bug 691920.

[psi/fapi_ft.c]

2011-02-01T14:00:46.378487Z Ken Sharp

Fix (pdfwrite) : Always write a ToUnicode CMap for TrueType fonts Bug #691907 "PDFs with TrueType fonts from Windows PostScript files not searchable" Patch from SaGS. When choosing whether to embed a ToUnicode CMap, always embed if the font type is TrueType. This is because TT fonts are always embedded as symbolic, and we now no longer add Encodings to Symbolic TT fonts (violates spec), which results in PDF files where the text is unsearchable and cannot be successfully copy/pasted in the absence of a ToUnicode CMap. It is possible that the ToUnicode CMap is incorrectly generated, but this is no worse than having no CMap at all. No expected differences since ToUnicode CMaps are not used in rendering.

[base/gdevpdtw.c]

2011-02-01T11:57:26.132691Z Robin Watts

Add new 'Profile' configuration to Visual Studio targets. This builds objects/binaries with debugging symbols enabled, but otherwise full optimisation. The changes are entirely within the VS files, except for a few small tweaks to the MSVC makefile. These changes should mean that it is possible to use the makefiles in a way that doesn't rely on recursive make calls (even though we leave the 'debug' targets in for now that do use that). No cluster differences expected or shown in testing.

[/trunk/ghostpdl/win32/xps.vcproj ghostscript.vcproj /trunk/ghostpdl/win32/GhostPDL.sln /trunk/ghostpdl/win32/pcl.vcproj /trunk/ghostpdl/win32/svg.vcproj psi/msvc32.mak /trunk/ghostpdl/win32/language_switch.vcproj]

2011-02-01T08:34:27.091701Z Ken Sharp

Fix (pdfwrite) : permit symbolic fonts in PDF/A output Bug #691877 "Invalid text when converting to PDF/A" TrueType fonts were being emitted as non-symbolic when PDF/A output was selected. This was causing the text to be incorrect, because the fonts actually are symbolic and Acrobat was unable to apply the correct decoding. This will result in more text being unsearchable/copyable but the rendering result is correct, which is more important. No differences expected, PDF/A output not tested on the cluster.

[base/gdevpdtd.c]

2011-01-31T18:10:10.028647Z Robin Watts

While searching for performance on an ARM based dev board, I developed 2 new versions of the skip_white_pixels macro. The first uses native int sized checking, and should be faster on long run matching. I have as yet been unable to find any files that show this expected speedup. The second should be faster on architectures (such as ARM) where the tradeoff in the test is different (and where pointer arithmetic is cheaper than array indexing). Both versions are disabled by default until the case for their existence has been proven, but are committed here to avoid bitrot. No cluster differences expected, as the default code does not change.

[base/scf.h]

2011-01-31T12:32:10.322306Z Robin Watts

Tweak to the PxM output code; spot that the output is /dev/null (or nul:) and avoid saving it. This is a port of code from gdevbit and gdevwts, and is purely useful for testing/timing/profiling purposes. No cluster differences expected.

[base/gdevpbm.c]

2011-01-31T11:19:53.283257Z Ken Sharp

Revert minor changes accidentally committed in revision 12082.

[Resource/Init/Fontmap.GS Resource/Init/cidfmap lib/PDFA_def.ps]

2011-01-31T11:15:05.175916Z Ken Sharp

Add the two new make files required for the altered CUPS build, these were accidentally omitted in revision 12080.

[Resource/Init/Fontmap.GS base/lcups.mak Resource/Init/cidfmap lib/PDFA_def.ps base/lcupsi.mak]

2011-01-31T11:09:11.349638Z Ken Sharp

Undo changes to PDFX_def.ps accidentally committed as part of the CPS changes.

[lib/PDFX_def.ps]

2011-01-31T11:06:11.139867Z Ken Sharp

More changes for CUPS, mostly to the build system. We now build the CUPS device unconditionally on Windows, using the recently added local partial copy of the CUPS library sources. This change also builds CUPS on Linux either using the system shared libraries (if available) or using the same partial copy of the library sources, if *specifically* directed to use this. On Windows CUPS is now always built and installed. On Unix systems the behavious is as follows: ./configure cups not installed - no cups device ./configure cups is installed - cups device linked to system cups shared libraries. ./configure --disable-cups - no cups device, regardless of cups libs installed on system ./configure --with-local-cups - cups device with the partial cups code, regardless of cups libs installed on system ./configure --with-local-cups --disable-cups results in no cups device. No differences expected as the cluster should still build and run with the system CUPS libraries just as it always has.

[base/winlib.mak lib/PDFX_def.ps base/unix-end.mak base/gs.mak cups/cups.mak base/Makefile.in base/configure.ac cups/libs/configlinux.h psi/msvc32.mak base/msvclib.mak base/devs.mak base/msvctail.mak]

2011-01-29T15:35:32.332503Z Ken Sharp

More changes to the CUPS sources so they will compile on various systems: language.c - if __APPLE__ is true, includes code which uses what I think is Carbon Framework calls and structures, but does not #include any of the .h files. Modified to #undef __APPLE__ to avoid this. ppd.c - Same problem as for MSVC, the include file string.h seems to prevent the C string.h being included, and so leaves strchr undefined. Now unconditionally provide a prototype for strchr. localize.c - Another problem with string.h. This doesn't exist on the MSVC build, but unconditionally providing a prototype fro strcmp doesn't cause an error. The code now builds on MSVC, Linux and Mac. Lots of warnings, but I don't propose to try and deal with those as they would require extensive alterations to the CUPS sources. No differences expected as this code is not yet in use.

[cups/libs/cups/localize.c cups/libs/cups/language.c cups/libs/cups/ppd.c]

2011-01-28T13:21:20.983748Z Robin Watts

Further rop run optimisations. * Add mechanism for dumping ROPs used (including frequency and runlength). Disabled by default. * Add special case code for most common rops (invert and xor). * Correct '1bit colors' code in various cases. Cluster pushing shows no differences.

[base/gsroprun.c]

2011-01-28T12:27:37.269985Z Robin Watts

Optimisations to mem_mapped8_copy_mono. Driven initially by a desire to speed up 100pagemono.pxl on ARM devices, but useful on all architectures. This work may end up being subsumed by the run_rop work, but is a worthwhile stepping stone. On x86 this speeds 100pagemono.pxl in greyscale 600dpi from 4.2 seconds to 3.6seconds. On ARM it shows a definite improvement too, but I don't have figures to hand. Clusterpush shows no changes.

[base/gdevm8.c]

2011-01-27T14:33:46.308935Z Ken Sharp

Update the CUPS sources so that they can be compiled under Windows. 1) Remove config.h which was a Linux configure result, replace with configwin.h (from the CUPS distribution for Windows) and configlinux.h which is config,h renamed. We will copy and use the correct version at make time. 2) cups/debug.c guard the use of pthread_mutex so that we don't try to use it if HAVE_PTHREAD_H is not defined, as the variable will not be declared. Guard use of cups_debug_filter and cups_filter with a #ifndef WIN32 as these variables are not defined in a Windows build. Replace gettimeofday with a Windows equivalent when building on Windows as this function is not available. 3) ppd.c Add a definition of strchr when building for Windows. The use of an include file called string.h confuses MSVC and it does not include the C string.h which leaves strchr undefined. 4) string.h When defining equivalents to strcasecmp and strncasecmp, also define the HAVE_* variables so that inclusion order doesn't lead to these being undefined when we have declared equivalents. 5) image-bmp.c Guard the declaration of the BI_* constants with a #ifndef WIN32 as these are Windows constants and already defined on a Windows build. 6) image-colorspace.c Define cbrt() in terms of pow() when WIN32 is set as the MSVC compiler does not define a cube root function. 7) image-tiff.c Guard inclusion of unistd.h when HAVE_LIBTIFF is true as this include file does not ship with MSVC on Windows. These have been supplied to the CUPS development group, and at least some of the problems are likely resolved in a newer version of CUPS. No differences expected.

[cups/libs/cups/debug.c cups/libs/filter/image-bmp.c cups/libs/cups/string.h cups/libs/configwin.h cups/libs/config.h cups/libs/configlinux.h cups/libs/cups/ppd.c cups/libs/filter/image-tiff.c cups/libs/filter/image-colorspace.c]

2011-01-27T13:07:15.912561Z Tor Andersson

Relax version check in JPEG-XR to allow older version HDP and WDP images.

[jpegxr/cr_parse.c]

2011-01-26T18:10:28.996727Z Chris Liddell

Fix the message for the new IJS check to read IJS, instead of jpeg!

[base/configure.ac]

2011-01-26T14:51:40.178552Z Chris Liddell

revert accidentally committed file.

[base/jpeg.mak]

2011-01-26T12:25:36.497890Z Chris Liddell

Allow IJS code to be linked as a library instead of using our distributed source. This will permit distributions which include a separately built libijs to link the the system's libijs. Bug 691904

[base/winlib.mak base/gdevijs.c base/ijs.mak base/jpeg.mak base/ugcclib.mak base/macosx.mak base/Makefile.in base/configure.ac base/unix-gcc.mak base/unixansi.mak psi/msvc32.mak base/devs.mak]

2011-01-26T01:04:40.273776Z Alex Cherepanov

Old gs assumed TrueType font collections occur only as external resource. It turned out that PDF can have embedded TrueType collection. So this patch replaces --setfileposition-- with {... () /SubFileDecode filter flushfile} for forward search. Bug 691908, customer 870.

[Resource/Init/gs_ttf.ps]

2011-01-25T12:03:22.384476Z Ken Sharp

Add code to define cbrt, strcasecmp and stncasecmp when compiling for Windows, as these are not present in the MSVC run-time. Also alter the initialisation of the gs_cups_device structure. Previously this set three matrices by including empty braces '{}', but MSVC throws a compilation error on this. Altered to {0x00} which is not quite the same, but it compiles (with a warning from gcc) and is no worse than leaving the members uninitialised. No differences expected.

[cups/gdevcups.c]

2011-01-24T23:51:39.084611Z Tor Andersson

Add JPEG-XR makefile and library to XPS build.

[/trunk/ghostpdl/xps/xps.mak /trunk/ghostpdl/xps/xps_msvc.mak base/jpegxr.mak /trunk/ghostpdl/xps/xps_gcc.mak]

2011-01-24T23:51:23.771340Z Tor Andersson

Import JPEG-XR reference software. ITU-T Rec. T.835 (ex T.JXR-5) | ISO/IEC 29199-5. JPEG XR reference software 1.8 (September 2009).

[jpegxr/jpegxr.h jpegxr/io.c jpegxr/jpegxr_pixelformat.c jpegxr/api.c jpegxr/my_getopt-1.5/getopt.h jpegxr/stdint_minimal.h jpegxr/r_strip.c jpegxr/qp.tab.c jpegxr/JPEG-XR.sln jpegxr/cw_emit.c jpegxr/w_strip.c jpegxr/x_strip.c jpegxr/qp.tab.h jpegxr/r_parse.c jpegxr/r_tile_spatial.c jpegxr/app_resource.h jpegxr/Makefile jpegxr/DLL.rc jpegxr/cr_parse.c jpegxr/APP.vcproj jpegxr/w_tile_frequency.c jpegxr/COPYRIGHT.txt jpegxr/jxr_priv.h jpegxr/my_getopt-1.5/LICENSE jpegxr/sample.qp jpegxr jpegxr/file.c jpegxr/my_getopt-1.5/my_getopt.c jpegxr/dllmain.c jpegxr/algo.c jpegxr/file.h jpegxr/my_getopt-1.5/my_getopt.h jpegxr/w_emit.c jpegxr/my_getopt-1.5 jpegxr/dll_resource.h jpegxr/qp_lexor.c jpegxr/README.txt jpegxr/flags.c jpegxr/DLL.vcproj jpegxr/versions-windows.txt jpegxr/jpegxr.c jpegxr/qp_lexor.lex jpegxr/r_tile_frequency.c jpegxr/qp_parse.y jpegxr/w_tile_spatial.c jpegxr/APP.rc jpegxr/init.c]

2011-01-24T18:16:40.240500Z Robin Watts

We want to be able to use planar buffers in a line interleaved format. Unfortunately, at the moment the planar device is hardcoded to use contiguous buffers. Fortunately this appears to be a 1 line fix; rather than calculting raster from the width, we instead calculate it as the difference between line pointers. This does assume that we can always safely read line_ptrs[1], even if we only have 1 line in the band. (The value is unimportant in this case, but we must be able to read it without crashing.)

[base/gdevmpla.c]

2011-01-24T14:56:30.755196Z Chris Liddell

Make sure the X11 drivers get removed from the DEVICE_DEVS declaration if the --enable-dynamic option is give to configure. Also, fix up the the non shared library builds, so they will still work with --enable-dynamic (only really useful for debugging). Bug 691905. Reorganise and correct the names of the devices specified in configure.ac so that the options --with-drivers=[FILES,PRINTERS,X11] actually work. Finally, make the "make debug" compiler options originate from configure, instead of being hard coded into the Makefile. A first step in making some of useful debugging features of modern compilers available when we can.

[base/Makefile.in base/configure.ac]

2011-01-20T04:23:02.586888Z Alex Cherepanov

Search for 'trailer' harder: at the end and at the beginning of the file. This helps to recover some more of broken linearized files. Bug 691894, customer 580.

[Resource/Init/pdf_rbld.ps]

2011-01-19T20:25:54.918598Z Robin Watts

Revision 12038 revealed a bug in the transparency code; an operation with a blend mode of 'Normal' and a solid alpha would be allowed to use the fast stroking code, even though it had transparency in due to being a pattern. Here we fix the code to check for transparency. As noted on bug 691900 this test treats all type 2 patterns as being transparent, so could be improved. The cluster differences this gives have been checked and correct the regressions of revision 12038.

[base/gdevp14.c base/gstrans.c]

2011-01-19T18:00:59.394482Z Robin Watts

Bug 691897 shows a PDF that is much slower when transparency is enabled than when it is not. The time is primarily spent in the stroke filling code due to the fact that when transparency is enabled strokes need to be rendered all at once, rather than segment by segment. This causes the scan conversion code to have to work much harder. In fact, the code uses solid alpha and "compatible" blend mode for most strokes, so we would be perfectly safe to use the normal mechanism. The code attempts to recognise this case already, but was only spotting "Normal" blend mode and not it's synonym "Compatible". We now roll the two together. Cluster testing shows this produces various differences; none to do with blending, all to do with different roundings in the positions of the stroked paths. Bug 690845 is open for this already.

[base/gdevp14.c base/gstrans.c base/gstparam.h]

2011-01-18T21:52:56.712015Z regression

Temporarily add 75 dpi pgmraw output to GhostPCL and disable ps2write output to the cluster regressions.

[toolbin/localcluster/build.pl]

2011-01-18T10:22:12.280482Z Chris Liddell

Resolve some problems with the shared library build on Sparc/Solaris, with the SunStudio tools. Have configure select between the GNUism -soname and the more convetional -h option to set the "internal" name of the shared library. SunStudio 12 has changed the default optimization level option for cc to be -O3 (previously was -02), which results in Ghostscript crashing. No cluster differences expected. Bug 689490

[base/macosx.mak base/Makefile.in base/configure.ac base/unix-dll.mak base/unix-gcc.mak base/macos-mcp.mak]

2011-01-17T21:37:08.425154Z Alex Cherepanov

I don't know any version of VC compiler that can compile embedded assembly code in Luratech JPEG 2000 library. (and other compilers are excluded on the preprocessor level). So the library is now always compiled with NO_ASSEMBLY flag. Perhaps, a new version of the library will be better.

[psi/msvc32.mak]

2011-01-17T17:33:50.118892Z Robin Watts

Add code for using run_rops for 8 and 24 bit targets too. Cluster testing shows that this gives the same results, but limited local testing suggests the setup costs mean this isn't yet a win. Therefore leaving disabled for now.

[base/gdevmr8n.c base/gsroprun.c base/gsropt.h]

2011-01-17T12:11:39.376205Z Robin Watts

Remove unused lop_ral definitions, and move pdf14 lop bit down into the freed space (for neatness). No changes expected in cluster.

[base/gsropt.h]

2011-01-16T01:25:36.175335Z Marcos H. Woehrmann

Added missing std.h dependency to gstoptab.c to fix parallel make under linux.

[base/lib.mak]

2011-01-15T16:01:30.937666Z Robin Watts

First commit of new scheme for rop acceleration; offer functions that do 'runs' of rops rather than single rops. This enables us to hide optimised versions (or even dynamically created code) under a single interface. The current code is only used in 1bpp cases, but is already showing a signficant speed up, with lots of scope for future optimisations. No cluster differences shown.

[base/lib.mak base/gsroprun.c base/gsropt.h base/gdevmr1.c]

2011-01-15T15:53:50.166886Z Robin Watts

Fix loooong standing bug in rop3_swap_S_T, in that it doesn't actually work. This shouldn't affect anything as it's not currently used, but WILL be used in my next commit.

[base/gsropt.h]

2011-01-14T18:58:46.405071Z Henry Stiles

Bracket off gs_debug_c with #ifdef DEBUG so it is not called in production builds.

[base/gxht.c base/gxclimag.c base/gxttfb.c base/gxpcmap.c base/gxccman.c base/gsfcmap1.c base/gspaint.c]

2011-01-14T16:56:47.376046Z Chris Liddell

Changes to the Unix configure based builds to tidy up specifying subsets of output devices. Some devices were always being included regardless of the options given to configure, resolved by tidying up the macro expansions in Makefile.in done by the configure script. Also the page device and clist device are effectively required by all configurations, so those are now included in the core build. Finally, the contrib/gomni.c driver relied on two functions in base/gdevbmpc.c which is an optional driver, so configuring the Omni driver to be built it, and bmp16 not would result in undefined symbols. contrib/gomni.c now has its own equivalents of those functions. The bbox device remains as the ultimate "fallback" device. Bug 689546

[base/lib.mak contrib/gomni.c base/Makefile.in base/configure.ac base/devs.mak]

2011-01-13T16:19:39.522851Z Chris Liddell

Remove the bogus C++ requirement in the copy of Jasper we ship with Ghostscript by recreating the autotools related files for Jasper. I can't be sure, but it seems that a bug in one of the autotools originally used for our Jasper had a bug which resulted in C++ being misidentified as a required, rather than optional, feature of the build environment. Bug 691563. No cluster differences expected.

[jasper/src/libjasper/jpc/Makefile.in jasper/src/libjasper/bmp/Makefile.in jasper/configure.ac jasper/src/libjasper/jpg/Makefile.in jasper/src/appl/Makefile.in jasper/src/libjasper/include/Makefile.in jasper/src/libjasper/ras/Makefile.in jasper/src/Makefile.in jasper/aclocal.m4 jasper/src/libjasper/pnm/Makefile.in jasper/src/libjasper/jp2/Makefile.in jasper/configure jasper/src/msvc/Makefile.in jasper/src/libjasper/pgx/Makefile.in jasper/Makefile.in jasper/src/libjasper/Makefile.in jasper/src/libjasper/include/jasper/Makefile.in jasper/src/libjasper/base/Makefile.in jasper/src/libjasper/mif/Makefile.in]

2011-01-13T14:37:33.986698Z Robin Watts

Fix Bug 689698 by prefixing scan_token (and other externally exported scanning related symbols) by gs_. No changes in cluster testing (other than 1 timeout, and 2 indeterminisms).

[psi/ztoken.c psi/ztype.c psi/imain.c psi/iscan.c psi/itoken.h psi/ziodev.c psi/interp.c psi/iscan.h psi/imainarg.c]

2011-01-12T21:11:53.461044Z Robin Watts

Fix Bug 691682 - cryptic error messages when misspecifying compression type for tiff devices. This patch makes the tiff devices take heed of errors propogated up from the tiff library. This means we'll now drop out at the first error rather than carry on through and give a broken file at the end silently. Also, we output a more helpful error message in the case where the compression type is misselected. Cluster testing shows no changes.

[base/gdevtifs.c]

2011-01-11T21:33:54.972732Z Michael Vrhel

Fix for a number of issues found by Ray with the halftone creation tool. These include a crash for a divide by zero in the gcd function (caused failure at 0 degree screen generation) Fix so that the Holladay screen is no longer created as an output option. Fix in ppm output header. Fix in how the lpi is selected. Fix for when we have a screen that has essentially one dot (also caused a crash). Addition of a ReadMe. A lot more testing is needed, in particular, the dithering of the dots in the macro-screens needs additional testing and the relationship between the desired number of quantization levels and the size of the screen needs to be properly computed. There is a list of features that need to be added described in the ReadMe.

[toolbin/color/halftone/halfttoning/halfttoning.vcproj toolbin/color/halftone/README toolbin/color/halftone/halfttoning/halftone.c]

2011-01-11T01:17:59.815496Z Ray Johnston

Add output modes for PostScript HalftoneType 3 threshold arrays (-ps) and PPM files (-ppm) that have the width in the file rather than only encoded in the filename. The -ppm mode is untested and marginally useful. The -ps mode was tested (on Windoze) with: toolbin/color/halftone/Debug/halfttoning.exe -ps -r 300 -l 23 -a 45 gswin32c -r300 -dDisplayFormat=16#20102 -c "(Screen_Holladay_Shift10_20x10.ps) \ run sethalftone (examples/tiger.eps) run" The result doesn't look very good, but at least it runs and we can examine the problems.

[toolbin/color/halftone/halfttoning/halftone.c]

2011-01-11T00:49:20.559732Z Michael Vrhel

Hopefully a fix for indeterminism introduced in rev 12005. The source of this was that the cups and psdcmyk device are now using the older slower color image rendering function due to the fact that they have non-standard color mapping procedures. Missing parenthesis were introduced when the ICC branch was merged into the trunk which was the source of the issue. This was causing a check for color range mask testing even when the image was not a type 4.

[base/gxicolor.c]

2011-01-10T22:00:19.847574Z Till Kamppeter

Added the source code of the CUPS libraries to the Ghostscript source package Like with zlib, libpng, libjpeg, ... it is now possible to build the complete Ghostscript (including the CUPS Raster output device) on systems where there is no CUPS library available. Note that currently only the CUPS library source code is added, the results of the ./configure run in the Makedefs and config.h files, and the Makefiles are stripped to only build the libraries and nothing else. The CUPS ./configure command line which was used to obtain makedefs and config.h was ./configure --enable-static --without-shared --disable-dbus --without-php \ --disable-slp --disable-gssapi --disable-ldap --disable-ssl \ --disable-cdsassl --disable-gnutls --disable-openssl --disable-pam \ --disable-dnssd --disable-launchd This way the built CUPS libraries do not need any system services or hardware interfaces of Linux. In addition to standard libraries they use only libz, libpng, libjpeg, and libtiff. These libraries Ghostscript needs anyway and copies of their source code also ship with Ghostscript. What is still missing is the integration into the build system of Ghostscript and also the operating-system-independent base/cups.mak file (like base/png.mak etc.). No changes expected in the built Ghostscript as the code is not yet integrated in the build system.

[cups/libs/cups/backend.c cups/libs/cups/testadmin.c cups/libs/filter/image-pix.c cups/libs/cups/testoptions.c cups/libs/cups/backend.h cups/libs/cups/http-private.h cups/libs/filter/image.c cups/libs/cups/testpwg.c cups/libs/filter/image-sun.c cups/libs/cups/ppd-private.h cups/libs/filter/image.h cups/libs/filter/error.c cups/libs/cups/Dependencies cups/libs/cups/ipp-private.h cups/libs/cups/md5passwd.c cups/libs/cups/notify.c cups/libs/cups/dir.c cups/libs/cups/testarray.c cups/libs/cups/file.c cups/libs/cups/testhttp.c cups/libs/filter/image-png.c cups/libs/filter/image-zoom.c cups/libs/cups/getdevices.c cups/libs/cups/transcode.c cups/libs/cups/dir.h cups/libs/cups/globals.c cups/libs/cups/testppd.c cups/libs/filter/image-tiff.c cups/libs/cups/file.h cups/libs/filter/image-pnm.c cups/libs/cups/transcode.h cups/libs/cups/testipp.c cups/libs/cups/globals.h cups/libs/filter cups/libs/filter/image-photocd.c cups/libs/cups/options.c cups/libs/cups/emit.c cups/libs/cups/localize.c cups/libs/cups/tempfile.c cups/libs cups/libs/cups/testcups.c cups/libs/cups/custom.c cups/libs/cups/pwg-media.c cups/libs/cups/util.c cups/libs/cups/array.c cups/libs/cups/pwg-ppd.c cups/libs/cups/testi18n.c cups/libs/cups/http.c cups/libs/filter/image-jpeg.c cups/libs/filter/Dependencies cups/libs/cups/array.h cups/libs/cups/http-addrlist.c cups/libs/cups/language.c cups/libs/cups/ppd.c cups/libs/cups/http.h cups/libs/cups/md5.c cups/libs/cups/debug.c cups/libs/cups/ipp.c cups/libs/cups/language.h cups/libs/cups/ppd.h cups/libs/cups/backchannel.c cups/libs/cups/http-support.c cups/libs/cups/mark.c cups/libs/cups/md5.h cups/libs/cups/snmp-private.h cups/libs/cups/debug.h cups/libs/cups/Makefile cups/libs/cups/ipp.h cups/libs/cups/dest.c cups/libs/config.h cups/libs/cups/auth.c cups/libs/cups/ipp-support.c cups/libs/filter/common.c cups/libs/cups/langprintf.c cups/libs/filter/image-sgilib.c cups/libs/cups/raster.h cups/libs/filter/common.h cups/libs/cups/attr.c cups/libs/filter/image-private.h cups/libs/cups/sidechannel.c cups/libs/cups/testsnmp.c cups/libs/cups/usersys.c cups/libs/cups cups/libs/cups/cups.h cups/libs/cups/sidechannel.h cups/libs/cups/i18n.h cups/libs/Makedefs cups/libs/cups/testconflicts.c cups/libs/filter/image-colorspace.c cups/libs/cups/adminutil.c cups/libs/cups/http-addr.c cups/libs/filter/interpret.c cups/libs/cups/request.c cups/libs/cups/versioning.h cups/libs/cups/md5-apple.h cups/libs/cups/adminutil.h cups/libs/cups/file-private.h cups/libs/cups/encode.c cups/libs/filter/image-gif.c cups/libs/cups/snprintf.c cups/libs/cups/string.c cups/libs/filter/Makefile cups/libs/cups/getputfile.c cups/libs/filter/image-bmp.c cups/libs/cups/pwg-private.h cups/libs/cups/pwg-file.c cups/libs/cups/string.h cups/libs/filter/raster.c cups/libs/cups/page.c cups/libs/cups/getifaddrs.c cups/libs/cups/snmp.c cups/libs/filter/image-sgi.c cups/libs/cups/testfile.c cups/libs/cups/testlang.c cups/libs/filter/image-sgi.h cups/libs/cups/conflicts.c]

2011-01-10T03:29:52.464842Z Alex Cherepanov

Add support for MSVC 10 to msvc32.mak .

[psi/msvc32.mak]

2011-01-09T02:19:19.656942Z Michael Vrhel

Fix for color related warnings in bug 691459

[base/gxi12bit.c base/lib.mak base/gxiscale.c base/gsicc_manage.c base/gxcmap.h base/gxicolor.c base/gscspace.c]

2011-01-08T19:56:51.307278Z Alex Cherepanov

Don't discard encoding of a TrueType PDF font when it is not embedded. Ghyph indexes vary between font versions, and encoding-based mapping yelds better results in this case. Bug 691693.

[Resource/Init/pdf_font.ps]

2011-01-08T19:42:31.743686Z regression

Additional changes to support ps2write in the cluster (and nightly and weekly) regression.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/readlog.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl toolbin/localcluster/compare.pl]

2011-01-08T17:56:07.987718Z regression

Add ps2write testing to the cluster regression.

[toolbin/localcluster/build.pl]

2011-01-08T17:55:26.179279Z Alex Cherepanov

Fix the code that repairs missing or incorrect /Subtype attribute. Write a valid attribute (always /Type1) into the font resource. This helps to avoid confusion caused by an invalid value later on. Bug 691872.

[Resource/Init/pdf_font.ps]

2011-01-08T10:50:04.294111Z Till Kamppeter

Fixed typo.

[cups/gdevcups.c]

2011-01-08T10:47:12.179146Z Till Kamppeter

CUPS Raster device: Some clean-up.

[cups/gdevcups.c]

2011-01-08T10:36:56.827100Z Till Kamppeter

CUPS Raster: Another approach to fix both bug #691733 and #690435: Set _old values at the beginning of the cups_put_params() function.

[cups/gdevcups.c]

2011-01-07T23:33:17.663910Z Till Kamppeter

CUPS Raster output device: Use positive values (1) as dummy values to mark that the color depth has changed and therefore memory needs to get rallocated WEith this both bug #691733 and bug #690435 get fixed, but this is not necessarily he right and best solution.

[cups/gdevcups.c]

2011-01-07T14:05:17.614099Z Till Kamppeter

Fixed search-and-replace error in "cups" output device, bug 691871.

[cups/gdevcups.c]

2011-01-07T04:49:42.455234Z Michael Vrhel

Fix so that we do not do the ICC optimized flow for color images when our target device does not have standard color mapping procedures. This occurs for example, in the case for the CUPs device where the color mapping procedures map CMYK, RGB and Gray to the current CUPs device color space. For standard gray, RGB and CMYK devices these procedures are avoided as the CMM performs all the required mappings. This commit will show differences in the files for the cups device as well as the psdcmyk device, which also should be using the non-optimized flow due to the use of CMYK + spot colorants, which will not be managed correctly by the CMM in general. The differences int the psdcmyk files that do not have extra spot colorants are tiny. This should fix bug 691760.

[base/gxi12bit.c base/gdevp14.c base/lib.mak base/gxcmap.c base/gxiscale.c base/gdevnfwd.c base/gxcmap.h base/gxicolor.c]

2011-01-06T19:18:56.657732Z Alex Cherepanov

Fix a cut-ant-paste error in setting QuantTables for JPXEncode filter. Bug 691868.

[base/sdeparam.c]

2011-01-06T11:08:52.017177Z Ken Sharp

Minor enhancement to ps2write for DSC output, remove trailing EOF. Prevent ps2write emitting a trailing EOF (0x04) byte when producing DSC-compliant output. The emission of this byte was leading to warnings about the output containing binary. No differences expected.

[base/gdevpdf.c]

2011-01-05T17:35:42.089947Z Michael Vrhel

Reverting of commit 11995

[base/gxipixel.c base/lib.mak]

2011-01-05T16:05:22.763938Z Ken Sharp

ps2write DSC enhancement. Alter the default setting of CompressPages and CompressFonts to true. Gives better conforming output at present (as well as smaller output)

[Resource/Init/gs_pdfwr.ps]

2011-01-05T15:43:41.972063Z Ken Sharp

Fix three compiler warnings in revision 11997

[base/gdevpdfu.c]

2011-01-05T15:28:39.325806Z Till Kamppeter

Use the "x11" output device as default output device for an X-enabled Ghostscript, as "x11alpha" is too buggy The simple call "gs <file>" is a common call to check a PostScript file when debugging printing problems. Unfortunately, this call uses the "x11alpha" output device which has a lot of bugs, especially on complex input files. This makes easily a wrong impression of the input file then. Having a somewhat inferior screen output quality (no anti-aliasing) is no problem as the mentioned Ghostscript call is only used for debugging purposes.

[base/Makefile.in]

2011-01-05T14:17:41.770782Z Ken Sharp

ps2write DSC enhancement. Belt and braces approach when emitting a serialised array/proc This code should break an (already serialised) array or procedure emission if the total length of the data to write exceeds 255 bytes. The data will be broken at name, array, string or procedure tokens (ie '/', '[', '(', '<') or a space character. If none of these occurs in the preceding 255 bytes then we emit a line break anyway and carry on. I do not have any test cases which exercise this code path with a data size > 255 bytes, so I'm not certain that it works as expected. No differences expected as the regression test doesn't exercise ps2write.

[base/gdevpdfu.c]

2011-01-04T18:56:36.226711Z Alex Cherepanov

Fix spelling errors in a German man page. Thanks to Peter Dyballa for the patch. Bug 691863.

[man/de/gsnd.1]

2011-01-04T18:19:41.129921Z Michael Vrhel

Fix so that the presence of source black and white are properly detected with the ICC color management changes. This detection is useful for the optimization of certain ROPs. Previously black and white were detected from looking at the device color. This was a problem since the device black color is usually not pure for a CMYK printer with the ICC changes. This fix updates the detection function so that it looks at the source color and maps it to the default RGB color space where black and white are well defined.

[base/gxipixel.c base/lib.mak]

2011-01-04T16:35:38.827232Z Ken Sharp

More DSC-compliant ps2write work. When emitting strings for ps2write, write them as hex strings instead of regular strings, if the ps2write output is to be DSC-compliant, break the hex strings every 255 bytes or less. Prepend and append newlines to the hex string when emitting DSC-compliant PostScript to ensure that preceding or following data doesn't cause the line length to exceed 255 bytes. No differences expected as ps2write is not currently regression tested.

[base/gdevpdfu.c]

2011-01-04T10:48:32.930138Z Ken Sharp

Fix (pdfwrite) : Write ToUnicode CMap files which Acrobat likes Bug #691862 (and also bug #691849) "Unable to copy text from the converted PDF" It seems the Adobe documentation lies (or more generously is inconsistent). The CMap tech note (5014) says that entries are not zero padded, so values less than 256 are emitted as single bytes, values 256->65535 are two bytes etc. However the ToUnicode CMap tech note (5411) says: "Because a “ToUnicode” mapping file is used to covert from CIDs (which begin at decimal 0, which is expressed as 0x0000 in hexadecimal notation) to Unicode code points, the following “codespacerange” definition, without exception, shall always be used: 1 begincodespacerange <0000> <FFFF>endcodespacerange" (This is somewhat restrictive, since CIDs can exceed 2 bytes, even though UTF-16 can't, I could forsee a need to map high CIDs to lower UTF-16 values) Finally, the PDF Reference (1.7) says: "The CMap file must contain begincodespacerange and endcodespacerangeoperators that are consistent with the encoding that the font uses. In particular, for a simple font, the codespace must be one byte long." So the PDF Reference conflicts with the tech note which it references! In fact none of the above seems to be quite what Acrobat actually does. It seems that Acrobat does not care what size (in bytes) the codespacerange is, no matter what kind of font is present. However it *does* care what size the bfrange entries are. For simple fonts the bfrange entries must be single bytes, for CIDFonts the bfrange entries must be two bytes. Deviation in either case leads to files which Acrobat cannot process and either causes errors or incorrect text when copying and pasting. Changed the ToUnicode emission (mostly restoring revision 11170 which was removed in revision 11795 because of bug #691849) so that we emit single byte bfrange and codespacerange arguments for simple (non-CID) fonts, and emit double byte, padded with 00 arguments to bfrange and codespacerange for CID fonts. No differences expected as this only affects text search/copy in Acrobat.

[base/gsfcmap.c base/gdevpdte.c]

2011-01-03T20:19:58.048424Z Ray Johnston

Don't bump the 'used' element of the chunk manager structure if the allocation of a chunk fails. Thanks to Norbert Janssen for noticing this. Bug 691720.

[base/gsmchunk.c]

2011-01-03T18:58:00.432432Z Henry Stiles

The optimization in gdevdgbr to detect a device with a "plain" cmyk 1 bit to rgb mapping was broken because the procedure cmyk_1bit_map_color_rgb() is obsolete. The hack here is to detect output formats compatible with gx_get_bits_copy_cmyk_1bit() which is significantly faster since it does not have to call the device color decode procedure. The device API should have a member that indicates the most frequently encountered pixel organizations.

[base/gdevdgbr.c]

2011-01-03T16:20:21.454447Z Henry Stiles

Decode image samples with single precision calculations only. This area of the code is performance sensitive and there is no need to convert to and from doubles. Also, "image_set_gray" is now inline but still not enabled.

[base/gximono.c base/gximage.h]

2011-01-03T14:33:56.098558Z Ken Sharp

Fix ps2write : Attach Encoding for symbolic TrueType fonts The recent change to not attach Encodings to Sy,bolic TrueType fonts, as per the PDF spec, meant that ps2write also wrote symbolic TT fonts without a /Encoding. This is not ideal, because opdfread.ps then attaches a default StandardEncoding to the font. This simply will not work correctly. After some experimentation with extracting (in PostScript) the POST table from the TT font, sense prevailed. This patch modifies the condition so that if we are producing output for ps2write we continue to attach a /Encoding. (in this case it doesn't matter whether we are producing DSC output, we always want the Encoding) No differences expected.

[base/gdevpdtt.c]

2011-01-03T06:21:52.574265Z Alex Cherepanov

Adjust pdfemptycount variable during .execgroup execution to reflect the actual stack count. Avoid errors in sc1/scn caused by wrong operand count. Bug 691624.

[Resource/Init/pdf_draw.ps]

2011-01-01T16:17:49.255469Z Alex Cherepanov

Change all "/foo /bar load def" into "/foo {bar} bind 0 get def" in PDF interpreter to ebable operator redefinition with -dDELAYBIND. Bug 691669, customer 850.

[Resource/Init/pdf_draw.ps]

2010-12-31T06:23:59.391706Z Alex Cherepanov

Trap errors that may happen during loading of embedded fonts and try to load the font by the name. Bug 691045.

[Resource/Init/pdf_font.ps]

2010-12-30T19:09:59.966731Z Alex Cherepanov

Use -fPIC instead of -KPIC on SunOS for "so" target when compiler is gcc. Bug 690630, customer 200.

[base/configure.ac]

2010-12-30T14:11:42.974030Z Alex Cherepanov

Clip excessive size of the radial gradient extensions to the fixed point range. To avoid trivial differences, try the old fixed point function first and use new floating point one only when the old function fails. Bug 691775.

[base/gspath.h base/gxshade1.c base/gspath.c]

2010-12-29T13:01:45.722135Z Alex Cherepanov

Ignore transparency group XObject without /Group attribute and issue a warning about it. Bug 691854.

[Resource/Init/pdf_draw.ps]

2010-12-28T03:13:57.856572Z Alex Cherepanov

Implement correct defaults for /FontMatrix attribute in composite CFF font following analysis by Ken and Masaki (see the comment). Bug 690724.

[psi/zfont2.c]

2010-12-27T23:34:39.189121Z Alex Cherepanov

Fix unterminated string used by "%%CreationDate:" comment in ps2write device. Partial fix for 691853.

[base/gdevpdfu.c]

2010-12-24T11:08:47.918403Z Chris Liddell

Put a check in place to ensure that the UFST pre version 6 does not attempt to handle anything other than its own Microtype fonts. This ensures that the UFST 5.x FAPI plugin can coexist safely with the Freetype FAPI plugin.

[psi/fapiufst.c]

2010-12-24T09:50:39.994493Z Chris Liddell

Where FAPI finds a TTF glyf description to pass into the target font library, fix the decision on the length of the offset to the glyph data. Previously, the condition was wrong, and always ended up reading 2 bytes for the offset. Bug 691850 No cluster differences expected.

[psi/zfapi.c]

2010-12-24T00:28:30.327488Z Alex Cherepanov

Limit the use of -rdynamic flag to GCC on Linux. This flags is supported by GCC only if the platform has ELF executable format. Bug 691453.

[base/configure.ac]

2010-12-23T14:39:36.123969Z Ken Sharp

fix pdfwrite : Always write 2 bytes for ToUnicode CMap ranges Bug #691849 "pdfwriter regression: pdf text element is broken" revision 11170 modified CMap emission so that bfchar/bfrange entries less than 256 were emitted as a single byte, as specified in the CMAp specification. However ToUnicode CMaps don't follow the normal specification (I suspect this is a bug which has been pickled into the spec by Adobe), and require that values always have 2 bytes. reverted 11170 so that we write 2 byte ToUnicode CMap entries. No differences expected.

[base/gsfcmap.c]

2010-12-23T11:41:20.825457Z Ken Sharp

ps2write enhancement Initialise the SetPageSize flag to true when ProduceDSC is set, so that page sizes are properly requested by the output PostScript file. No differences expected.

[base/gdevpdfu.c]

2010-12-22T18:48:13.456231Z Michael Vrhel

Initial commit of code for creating halftone screens. This code needs additional debugging, especially in the case of edge parameters. It will currently create threshold arrays based upon desired lpi, angle, quantization levels, and device resolution. The method is restricted to angles that are the arctangent of rational numbers. Every attempt is made to achieve the requested lpi by using the rational angle that achieves an lpi over the requested value. Since there is a trade off between lpi and quantization levels, the requested quantization levels are obtained through dithering of the dot cells within the supercell. Essentially, the dots within the supercell do not all take on the same values and can grow at different rates in a visually pleasing manner. There is still a bit of work to do still on this dithering as well as controlling the rate of growth for the dots.

[toolbin/color/halftone toolbin/color/halftone/halfttoning.sln toolbin/color/halftone/halfttoning/halfttoning.vcproj toolbin/color/halftone/halfttoning toolbin/color/halftone/halfttoning/halftone.c]

2010-12-22T16:17:58.830786Z Ken Sharp

Just remove a commented out line of code that should have been removed before commit.

[base/gdevpdfb.c]

2010-12-22T14:05:56.481488Z Ken Sharp

More enhancement work for type 3 fonts with PCL Previously we set the horizontal advance argument to the d1 (setcachedevice) operator to 0, and set the Widths entry to 0, for all type 3 bitmap fonts created by rendering the original font. This was required to prevent regression errors with the test suite when we altered the type 3 font accumulation so that it made more effort to preserve the input character code, in an attempt to improve searching. Revision 11969 fixes a problem with cached characters which was leading to the /Widths array containing garbage values. With that revision we can now properly set the 'd1' horizontal advance, and also set the /Widths array correctly. No expected differences

[base/gdevpdfb.c base/gdevpdti.c]

2010-12-22T13:58:29.830017Z Ken Sharp

Fix ps2write/pdfwrite : Up date the show enumerator with the cached character width When capturing a character bitmap on the first time it is rendered, pdfwrite and ps2write get the width of the glyph in the cache device. This is then used to update values in the show enumerator, and these values are used as the Widths entry for the glyph. When imaging an already cached character, however, the enumerator values are not updated which can lead to garbage (uninitialised data) being written as values in the /Widths array. This patch takes the value from the cached character 'wxy' and updates the show enumerator 'wxy' with it. This is then used as the value for the /Widths array. Bug #691836, zweiseit01d4-1.pdf, limitcheck --nostringval-- No differences expected.

[base/gxccache.c]

2010-12-22T00:35:56.638864Z regression

Fixed bug with r11967 that redirected output to the wrong directory on the cluster nodes.

[toolbin/localcluster/run.pl]

2010-12-21T23:07:47.064606Z Marcos H. Woehrmann

Attempt to remove obj directories before build and report failure. This detects the situation where a user manually built on one of the cluster nodes, leaving an obj directory that can't be overwritten by the cluster software.

[toolbin/localcluster/run.pl]

2010-12-21T23:01:04.915150Z regression

Merge run.pl and build.pl with nightly regression versions.

[toolbin/localcluster/clustermonitor.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl]

2010-12-21T17:53:45.618494Z Chris Liddell

Revise how we set the font types which FAPI should handle, and ensure that the "dummy" CharStrings dict we set up for Microtype fonts doesn't get replaced. Bug 691810 No cluster differences expected.

[Resource/Init/gs_fntem.ps Resource/Init/gs_fapi.ps]

2010-12-21T10:44:01.003179Z Chris Liddell

Handle Charstrings being replaced by a procedure. This can happen even with Microtype fonts (which "pretend" to be Type 1, but don't actually use CharStrings). This commit also includes some UFST 6.x related changes, the complete UFST 6.x integration should follow in the not too distant future. Bug 691834 Not cluster differences.

[psi/fapiufst.c base/gxfapiu.c]

2010-12-20T16:38:54.977548Z Chris Liddell

When we're handling a Type42 font in FAPI, handle the possibility that the "CharString" we get might be a null object, by falling back to the notdef glyph. Bug 691848 No cluster differences expected.

[psi/zfapi.c]

2010-12-18T19:27:14.937495Z Alex Cherepanov

Implement correct bit packing for an indexed image with 4 bit/pixel color depth in the interface to Luratech JPX library. Bug 691843, customer 532.

[base/sjpx_luratech.c]

2010-12-18T15:24:43.064303Z Ken Sharp

Bug #691835 Temporary work-around. It is possible to get into gsicc_init_device_profile with the graphics state pointer (pgs) being NULL. This happens if ps2write or pdfwrite convert a masked image into a regular image. Because pgs is dereferenced without checking for NULL, this causes a crash. Its not immediately clear to me if I need to modify ps2write/pdfwrite so that this condition doesn't occur, but for now, if pgs is NULL we return from the routine in order to prevent a crash. No differences expected

[base/gsicc_manage.c]

2010-12-17T16:58:35.097740Z Till Kamppeter

Install the CJK examples.

[base/unixinst.mak]

2010-12-17T16:56:51.880152Z Till Kamppeter

Mention "ps2pdf14" in the man page for ps2pdf.

[man/ps2pdf.1 man/de/ps2pdf.1]

2010-12-17T16:54:53.331106Z Till Kamppeter

Let Ghostscript work with the libjasper provided by the system.

[base/sjpx.c]

2010-12-17T16:50:49.932561Z Till Kamppeter

pphs is a script and not a library, put it into the correct group of files in the Makefile.

[base/unixinst.mak]

2010-12-17T16:48:02.245525Z Till Kamppeter

Fix stone-old security advisory CVE-2009-4270.

[base/gsmisc.c]

2010-12-17T16:43:02.736497Z Till Kamppeter

Build gsx and gsc executables correctly as executables and not as shared libraries.

[base/unix-dll.mak]

2010-12-17T00:16:41.356524Z Till Kamppeter

Removed patch noise file.

[contrib/pcl3/eprn/eprnrend.c.orig]

2010-12-16T17:00:24.131587Z Ken Sharp

Fix (pdfwrite) : Don't clamp rectfill to the page. Bug #691839 "Invalid EPS conversion with -dEPSCrop" Rectangular fills (and only the special case of rectangles) were being clamped to the width/height of the device when emitted. This can cause problems when a matrix is in force which reduces the actual co-ordinates, in this case a Pattern with a 0.25 scaling. The clamping caused co-ordinates to be reduced, and part of the fill went missing. The comment indicated this was to 'work-around' the limit in Acrobat of 32k on user co-ordinates, but this is too sever a clamp to apply, also the general case path code does not apply this limit. Altered to make the limit the 32k enforced by Acrobat.

[base/gdevpdfd.c]

2010-12-15T16:12:54.275384Z Ken Sharp

pdfwrite enhancement : Final DSC changes Fix a compiler warning, make ProduceDSC=true the default condition so that we create DSC-compliant PostScript unless told otherwise. Update the documentation for pswrite and ps2write in devices.htm and Ps2ps2.htm. Note that pswrite is now deprecated. Modify the pdf2ps and ps2ps scripts to use ps2write instead of pswrite. No differences expected.

[lib/pdf2ps doc/Ps2ps2.htm lib/pdf2ps.cmd lib/pdf2ps.bat lib/ps2ps doc/Devices.htm base/gdevpdfu.c lib/ps2ps.cmd base/gdevpdfb.h lib/ps2ps.bat]

2010-12-15T08:22:58.985898Z Ken Sharp

pdfwrite enhancement : more DSC related activity Defer the output of the header and the opdfread.ps 'prcoset' until the output file is closed. This allows us to count the pages and emit the %%Pages: comment in the header instead of at the end of the file. Fix the PageBoundingBox comment to have two % characters instead of one. Check for a new flag 'DSC_OPDFREAD' at the start of opdfread.ps (and write its definition as part of the header emission in ps2write). If present this prevents the SetupPageView routine from using setmatrix to reset the CTM to the one saved during document setup. Because the DSC-compliant output puts save/restore around each page we don't need to reset the matrix, and the reset prevents the output from working properly with psnup. If the flag is not present, it is treated as false. The output now works with GSView, psselect and psnup. The only remaining work is to track the usage of ProcessDSC and see if we can reuse any of the comments parsed out of the input. No differences expected

[base/gdevpdfx.h base/gdevpdf.c Resource/Init/opdfread.ps base/gdevpdfu.c]

2010-12-13T11:57:36.965203Z Ken Sharp

pdfwrite enhancement : DSC output Add some more comments, and re-arrange a few to make better sense. Initial tests indicate the output of the code with ProduceDSC does not introduce any new errors. Still to do: See if we can re-order the output so that we can write the %%Pages: comment in the header with the correct number of pages. This requires us to defer writing the header and ProceSet until the end of the job. No differences expected.

[base/gdevpdfg.h base/gdevpdf.c base/gdevpdfe.c base/gdevpdfu.c]

2010-12-12T16:18:59.870768Z Alex Cherepanov

Make const_90_degrees an external variable to stop smart optimizers from converting angle/const_90_degrees to angle*(1/const_90_degrees). Bug 689794.

[base/gsmisc.c]

2010-12-11T23:02:25.039826Z Alex Cherepanov

Don't break ANSI aliasing rules. Use memcpy() to assign Ghostscript classes i.e. structures of different type. Fix SEGV on GCC 4.5.1, release build. Thanks to ubitux@gmail.com for analysis of the problem. Bug 691831.

[base/gximag3x.c]

2010-12-10T19:50:53.800825Z Michael Vrhel

Removal of Smask_is_CIE flag in the code as well as removal of code that is no longer used in the soft mask rendering.

[base/gdevp14.c base/gdevp14.h base/gstrans.c base/gstparam.h base/gxblend.c base/gstrans.h base/gxblend.h]

2010-12-10T13:26:11.089772Z Ken Sharp

pdfwrite enhancement : More work towards DSC compliance This is a resubmission of revision 11941, with some additional changes so that it doesn't crash with pdfwrite on Linux systems. We now pass around the 'type' of an object much more when writing. This is so that we can emit "%%BeginResource/%%EndResource" comment pairs around the resources we write. It is also required so that we *don't* write these comments around pages. The code now emits %%BeginProlog, then writes the opdfread.ps procedure. It then writes all the various resources used in the document, each with a reasonable DSC comment. Then it writes %%EndProlog. After this come the page descriptions, each is written with a %%Page: comment and a %%PageTrailer. Finally we write the %%Trailer, %%Pages comment (NB we write %%Pages: (atend) in the header comments as we don't know how many pages there will be until the end) and %%EOF. The resources are mostly defined as being of type 'file', as most of them are not normal PostScript resources. The DSC specification says under the %%BeginResource definition (file note on p72) "The enclosed segment is a fragment of PostScript language code or some other item that does not fall within the other resource categories" and so this seems the best type to use for our purposes. The output is now minimally DSC compliant, though there are a few other comments I'd like to add if possible. Given the way the file is created we are always going to have a large prolog, and that will need to be copied to all the pages if they are split individually, in order to make sure that all the required resources are present. Technically we could follow the resource chain and write %%IncludeResource comments, at the page level at least, but this is probably more effort than it is realistically worth. Still need to add some more DSC comment types, and run some extensive testing. No differences expected currently. Minimal testing with GSView suggests that the output so far is DSC-compliant as-is.

[base/gdevpdfk.c base/gdevpdfm.c base/gdevpdfx.h base/gdevpdfo.c base/gdevpdf.c base/gdevpdfb.c base/gdevpdtd.c base/gdevpdfc.c base/gdevpdfo.h base/gdevpdfe.c base/gdevpdfu.c base/gdevpdtw.c base/gdevpdfg.c base/gdevpdti.c]

2010-12-10T03:06:40.558274Z Michael Vrhel

Apply proper alpha blending to compute luminosity of mask per the PDF specification. Fixes bug 691822

[base/gdevp14.c]

2010-12-09T16:50:55.001506Z Ken Sharp

undo revision 11941 and 11942 as this causes seg faults on Linux.

[base/gdevpdfk.c base/gdevpdfm.c base/gdevpdfx.h base/gdevpdfo.c base/gdevpdf.c base/gdevpdfb.c base/gdevpdtd.c base/gdevpdfc.c base/gdevpdfo.h base/gdevpdfe.c base/gdevpdfu.c base/gdevpdtw.c base/gdevpdfg.c base/gdevpdti.c]

2010-12-09T15:39:10.142451Z Chris Liddell

A change to how we get the advance width of the glyph from Freetype. Previously, we used the data in the glyph metrics structure, which are scaled, and the undid the scaling. This is correct method for everything except the horizontal and vertical advance distances. We now get the two advance distances from the glyph structure, and tell Freetype not to scale them, this avoids the rounding errors that occur due to Freetype's fixed point number format. It also saves the (less significant) error when we previously unscaled the value, and saves a couple of fairly large double precision calculations. This does cause a number of changes in the regression suite, the vast majority are pixel or so differences in glyph positions. A very few are improvements. Bugs 691778 and 691777

[psi/fapi_ft.c]

2010-12-09T14:35:26.421173Z Ken Sharp

fix pdfwrite Revision 11941 had a typo in gdevpdf.c which spelled %%EndProlog with too many % characters.

[base/gdevpdf.c]

2010-12-09T14:20:46.589285Z Ken Sharp

pdfwrite enhancement : More work towards DSC compliance We now pass around the 'type' of an object much more when writing. This is so that we can emit "%%BeginResource/%%EndResource" comment pairs around the resources we write. It is also required so that we *don't* write these comments around pages. The code now emits %%BeginProlog, then writes the opdfread.ps procedure. It then writes all the various resources used in the document, each with a reasonable DSC comment. Then it writes %%EndProlog. After this come the page descriptions, each is written with a %%Page: comment and a %%PageTrailer. Finally we write the %%Trailer, %%Pages comment (NB we write %%Pages: (atend) in the header comments as we don't know how many pages there will be until the end) and %%EOF. The resources are mostly defined as being of type 'file', as most of them are not normal PostScript resources. The DSC specification says under the %%BeginResource definition (file note on p72) "The enclosed segment is a fragment of PostScript language code or some other item that does not fall within the other resource categories" and so this seems the best type to use for our purposes. The output is now minimally DSC compliant, though there are a few other comments I'd lie to add if possible. Given the way the file is created we are always going to have a large prolog, and that will need to be copied to all the pages if they are split individually, in order to make sure that all the required resources are present. Technically we could follow the resource chain and write %%IncludeResource comments, at the page level at least, but this is probably more effort than it is realistically worth. Still need to add some more comments, and run some extensive testing. No differences expected currently. Minimal testing with GSView suggests that the output so far is DSC-compliant as-is.

[base/gdevpdfk.c base/gdevpdfm.c base/gdevpdfx.h base/gdevpdfo.c base/gdevpdf.c base/gdevpdfb.c base/gdevpdtd.c base/gdevpdfc.c base/gdevpdfo.h base/gdevpdfe.c base/gdevpdfu.c base/gdevpdtw.c base/gdevpdfg.c base/gdevpdti.c]

2010-12-07T14:14:20.090005Z Ken Sharp

pdfwrite enhancement : more work towards DSC compliant ps2write output This should now output pages in the correct order, with %%Page:/%%PageTrailer comments. Still need to address Resource comments and definitions. Committed so that a user can try out the code. No differences expected.

[base/gdevpdf.c base/gdevpdfu.c]

2010-12-06T20:30:42.463413Z Michael Vrhel

Fix for bug 691466. Problem was caused by the DeviceN alternate color space being Lab and the color values not being properly decoded to enable use of the lab ICC profile. A few progressions in the cluster data base with this commit.

[base/gscdevn.c base/gdevp14.c base/gsicc.c]

2010-12-06T16:39:46.324844Z Alex Cherepanov

Bring JPX Luratech decoder up to the level of Jasper decoder. 1. Don't expand indexed colors when the PDF expects an indexed color space. Fix rendering of the sample file attached to the bug. 2. Recognize indexed CMYK color space and accept the palettes that are shorter than 256 colors. Fix comparefiles/Bug689362.pdf 3. Fix memory corruption that happened with 4-bit-per-pixel grayscale image and pack the nibbles by PS rules. Fix comparefiles/Bug690174.pdf Luratech now renders every file in our test suite correctly. We don't have tests for low values of bits per plane. Bug 691816, customer 532.

[base/sjpx_luratech.c base/sjpx_luratech.h]

2010-12-06T16:07:30.222320Z regression

Limit clusterpush.pl bmpcmp jobs to 10 megs of changes per file in addition to the 100 changes per file limit.

[toolbin/localcluster/checkSize.pl toolbin/localcluster/clustermonitor.pl toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl]

2010-12-04T21:12:37.349224Z Michael Vrhel

Fix for bug 691724. The issue was due to a bug in the code that creates equivalent ICC profiles from CIEABC types. This has a pile of progressions in the cluster data base. I stepped through them with bmpcmp and they appeared to be correct to me. I also altered the DefaultRGB PS color space to by in-sync with the D50 ICC sRGB based default that we are currently using.

[base/gsicc_create.c Resource/ColorSpace/DefaultRGB]

2010-12-04T12:02:00.835522Z Ken Sharp

Remove some extraneous debugging code and variables left in accidentally with the commit for revision 11932.

[base/gxfcopy.c]

2010-12-04T11:53:13.468703Z Ken Sharp

Fix (pdfwrite) : Hashing /Subrs didn't check all subrs. Bug #691815 "ps2pdf fails on attached ps file" The new code for hashing /Subrs, to improve font checking performance, stopped comparing /Subrs between two fonts as soon as either font had an error getting a specific /Subr. However it transpires that some fonts can have a null object for a /Subr (used to skip Subrs that do nothing), and this returns a typecheck error. This led to two fonts which differed only in the fact that one has (and uses) more Subrs than the other being perceived as identical. This could lead to pdfwrite using the wrong font when converting type 1 into CFF fonts and cause errors. The code now continues checking remainign /Subrs if a typecheck error occurs, and as an additional measure also checks the number of /Subrs in each font before deciding if they are compatible.

[base/gxfont1.h base/gxfcopy.c]

2010-12-03T09:20:28.129989Z Ken Sharp

Fix (pdfwrite) : Work around Acrobat bug with /Encoding Bug #691809 "Regression: some PDF files produced by GhostPCL r11913 cannot be read by Acrobat 8.2.5" Acrobat 4 & 8 have a peculiar bug, if a type 3 font (may affect other font types, but it seems unlikely) has a WinAnsiEncoding, and no /Differences, then text set in that font is not displayed by these versions of Acrobat. This may be limited to glyphs which consist of a bitmap only. Forcing the emission of a /Differences array for each glyph used results in these versions of Acrobat displaying correctly (even though the 'differences' are in fact the standard Encodings). This does seem to be quite definitely an Acrobat bug which we are working around, no other PDF consumer seems to have a problem with these files.

[base/gdevpdti.c]

2010-12-02T18:16:53.794801Z Michael Vrhel

Remove unused variable.

[base/gxblend.c]

2010-12-02T17:09:45.886919Z Michael Vrhel

Fix for bug 691803. This provides a fix for cases where we have soft masks embedded within other soft masks. Such rare cases are detected and when they occur and the soft mask type is luminosity, the alpha channel of the soft mask buffer is pre-blended with the luminosity data to give the proper mask values. There appears to a be change in fts_33xx.xps from this commit. However, it appears to me that this file was not being rendered properly, compared to the windows xps viewer, prior to the commit either. I will file a bug related to this issue.

[base/gdevp14.c base/gdevp14.h base/gxblend.c base/gxblend.h]

2010-12-02T09:58:28.497029Z Ken Sharp

minor bug, warning message point to incorrect source directory. Bug #691811 "incorrect error message" Simply alter the source path in a warning. No differences expected.

[psi/imain.c]

2010-12-01T16:41:20.443841Z Michael Vrhel

Additional debug code to help in soft mask problems.

[base/gdevp14.c]

2010-12-01T05:16:55.267986Z Michael Vrhel

Fix so that the blend compositor actions are only removed from the clist compositor queue if they are completely over-ridden by a subsequent compositor action. Previously no check was made to see that the same settings were being up-dated by the new action. This fixes two P1 customer bugs and has several progressions in the test suite but one file Bug691783.pdf has both regressions and progressions. I will get the page 18 regressions into a bug.

[base/gdevp14.c base/gxclimag.c base/gxcldev.h]

2010-11-29T21:12:32.441057Z regression

Additonal improvement in the cluster's ability to be able to recover from machines going down late in the run. Machines are put into a standby state when there are no jobs left to send and they have processed all of their jobs until all machines are in the standby state, then all the machines are released from standby and can upload their logs

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/run.pl]

2010-11-29T18:55:03.883221Z Michael Vrhel

Fix for issues with the default ICC directory. The PS interpreter now checks if the default name is OK before setting to LIBPATH/iccprofiles . Also, the current name is first tested before we prepend with the directory name, to avoid doing double applications of the profile directory. Thanks to Ray for the fixes in gs_lev2.ps

[base/gsicc_manage.c Resource/Init/gs_lev2.ps]

2010-11-29T18:30:38.060525Z Michael Vrhel

Fix for bug 691748. The idle optimizations for the softmask are not really valid since we have since created the proper bounding box for the soft mask in a previous commit. In the cluster push testing, some files came back as having problems with the psdcmyk device. Checking, it appears that these issues are not related to this fix but are another bug. I am working on this now and will submit a bug.

[base/gdevp14.c]

2010-11-29T14:45:17.958276Z Chris Liddell

Due to "lazy evaluation" of softmask groups, the graphics state can change between the creation of the softmask group form, and when it is executed. We'll now save the gstate and (most of) the ExtGState when the softmask group is defined, and then set both before evaluting the object. A few ExtGState entries are not easily set directly, so those are missing. This partially fixes Bug 691157, and fixes Bugs 690351, 691348 and 690535. It also resolves the remaining issue with 690535. Cluster differences as follows: Bug690535.pdf (noted above) Bug690022.pdf, Bug690115.pdf, Bug690208.pdf, fts_26_2601.pdf and fts_26_2603.pdf are all improved when compared to Acrobat. A few xps->pdf conversions thru pdfwrite render differently, but they were wrong before, and slightly differently wrong now. I believe the PDFs are "incorrect".

[Resource/Init/pdf_draw.ps]

2010-11-29T14:35:25.792013Z Ken Sharp

Fix (pdfwrite) : Type 3 font capture and charpath operations Bug #691033 "Regression: 14-01.PS fails with pdfwrite" The first time a type 3 glyphis encountered we start a charproc accumulatiopn and exit to run the BuildChar/BuildGlyph. On return to the text processing, if the operation was a charpath, this would take precedence over closing the accumulator which would lead to significant later problems. Modified the code path to allow for the charproc accumulation to finish and if this is a charpath operation to rerun the operation using the newly captured glyph program. Note this can only occur if the first operation on a given glyph in a type 3 font is for a charpath.

[base/gdevpdtt.c]

2010-11-27T18:23:43.131547Z Ken Sharp

Fix (pdfwrite) : pointers not marked for garbage collection Bug #691779 "SegFault with pdfwrite and more than one cid font" pdfwrite does lazy creation of Identity ToUnicode CMaps for inclusion in output PDF files (2 CMaps, one for horizontal and one for vertical writing). These pointers were not marked for the garabge collector, but were stored directly in the pdf device structure. The CMaps were assigned to a pdfont resource type, where the pointer to the CMap *was* marked for the garbage collector. This meant that if the pdfont resource was moved as a result of garbage collection, the CMap could be moved as well. This left a dangling pointer in the device structure. If another font resource required an identity CMap then the now garbage pointer from the device structure would be assigned. If the new font resource was moved as a result of garbage collection, then the attempt to relocate the CMap would fail and cause a crash. Fixed by marking the pointers in the device structure for the garbage collector. No differences expected.

[base/gdevpdfx.h]

2010-11-26T10:59:51.673656Z Chris Liddell

Update the FAPI/UFST interface to correctly scale the points when retrieving an outline. Since FAPI now expects points in 32.32 fixed point form.

[psi/fapiufst.c]

2010-11-25T21:03:22.187304Z Robin Watts

Fix for bug 691785. The bitmap mask clip device has a long standing bug when attempting to clip a bitmap through a 1bpp bitmap (gxclipm.c, clip_runs_enumerate, line 283ish). The code detects runs of 'on' pixels in the mask. It then keeps the last run it found in a 1 place buffer (called 'previous'). This therefore represents the previous run found. Whenever we find a new run, we check to see if we can add it to the previous run to try to form a larger (vertical) rectangle. If we can't, we should write the previous rectangle out and remember the current one. Unfortunately the code was writing the current rectangle out, rather than the previous one. This has the effect of losing the first run on most lines out. 130 differences shown in cluster testing; confirmed in bmpcmp as progressions.

[base/gxclipm.c]

2010-11-25T09:12:13.562173Z Ken Sharp

Remove a now-unused variable to silence a compiler warning. No differences expected.

[base/gdevpdfb.c]

2010-11-24T22:18:34.999818Z Michael Vrhel

Style clean up of gdevp14.c for white space, comments, long lines and dead code.

[base/gdevp14.c]

2010-11-24T17:44:39.808162Z Michael Vrhel

Fix so that we handle the \B command properly when we have transparency. The stroke should be drawn in a knock-out fashion rather than blended with the fill. This was achieved by adding in the push of a knockout transparency group for the stroke operation. The opacity for that group had to be 1 rather than what ever the current graphic state was (otherwise you end up with the opacity applied twice). That change revealed an issue in the clist when a transparency group is pushed where the opacity for the pdf14 clist device was being altered without having the information passed into the clist. Fixing that required a few changes to make sure that the blend parameter changes for the transparency group end up written in the same bands as the group push rather than all bands like the normal blend parameter change compositor action does. A few changes were needed in the clist compositor writing code to make sure that this special blend parameter change did not push a new cropping item on the cropping stack. This commit results in a lot of progressions. However, the cluster push revealed a couple files fts_06_0608.pdf.pdf.ppmraw for example, which may have an issue. These are being checked and if found to be an issue a new bug report will be filed.

[Resource/Init/pdf_ops.ps base/gdevp14.c base/gxclimag.c base/gxblend.c base/gstrans.h base/gxblend.h]

2010-11-24T16:21:25.266704Z Ken Sharp

pdfwrite enhancement : attempt to make PCL bitmap fonts into searchable type 3 In general pdfwrite only resorts to making a bitmap from a font when it cannot handle the original font type, which is rare for PostScript, PDF and XPS. However all PCL bitmap fonts are handled this way. When this happens, the bitmap is stored into a general type 3 font, a 'bucket' where all such glyphs are stored. When this font is full, a new one is started and so on. The text stored in the PDF page stream references the correct type 3 font, but usually the character code will be unrelated to the original character code. For PCL bitmap fonts pdfwrite actually starts by creating a type 3 font to hold the PCL bitmaps, but doesn't use it. This patch tries to store the bitmaps in the type 3 font where possible, using the character code from the original PCL document. Although this will not create searchable text in the general case, it does seem that there are a good number of PCL documents which do use an ASCII encoding and so will produce a searchable PDF file. There are several caveats: 1) This only works at all with cached glyphs. Glyphs which are too big to fit in the cache are instead rendered as images, not text at all. The cache has a compiled limit of 2500 for the height of the bitmap, but this needs to take the resolution which is being used for rendering into account. The default resolution for pdfwrite is 720 dpi which means that bitmaps larger than ~125 rows will not be cached. (see below for more) 2) Certain kinds of text operations can't be handled at all; any case where a character code does, or may, exceed 256 cannot be handled. These cases are handled as before by placing in a special font with a unique character code and called from there. 3) If the font matrix is not the identity we cannot handle the glyphs, as the bitmaps stored in the cache already include any transformations present in the Fontmatrix and we can't undo those transformations to the bitmap. In practice this means that if the canvas orientation (not the media) is not portrait, then this will cause the text to be non-searchable. 4) The Acrobat searching algorithm does not work very well with this kind of text. In our case each glyph is individually positioned on the page rather than being written as a continuous stream of characters. Acrobat seems unable to find more than about three glyphs in succession this way. There is no further scope for improvement in pdfwrite as far as I can see. The only way to handle this better would be to make changes in the PCL interpreter so that the bitmap PCL font is created as an actual font (probably a TrueType). This would mean that the text would be stored in the PDF file as real text, the FontMatrix would not be a problem, caching would not be an issue. This is probably a large project, but I suspect less of a pain than this enhancement was. Caching ======== In gsfont.c is a #define: #define blimit_LARGE 2500 /* blimit/upper - max size of a single cached char */ Increasing this will allow larger glyphe to be cached. There is another limit in gxchar.c: static const uint MAX_TEMP_BITMAP_BITS = 80000; This should not be altered. Care should be exercised if increasing the maximum size of cached characters as these are emitted in the PDF file as inline images in a type 3 font. The PDF spec recommends that inline images should not exceed 4Kb and some consumers may not be able to cope with images which exceed this limit.

[base/gdevpdfb.c base/gdevpdti.c]

2010-11-23T16:01:44.675647Z Ray Johnston

Fix chunk_free_all_remaining typo so that mulitple object chunk list gets traversed and freed first, then the single object chunk list. Thanks to Norbert Janssen for spotting this. Bug 691791.

[base/gsmchunk.c]

2010-11-23T15:36:28.976110Z Robin Watts

Fix for Bug 691783. A tiny tweak to that submitted by Sebastian Rasmussen. Many thanks! When closing down render threads we check to see if the underlying allocator had to be wrapped to make it thread safe. If it was, we free the wrapped version too. Unfortunately the test to see "did we have to wrap it" was accessing memory we'd just freed. The fix is to move the code that finds the underlying allocator to before we free the memory. Cluster testing shows no differences.

[base/gxclthrd.c]

2010-11-23T12:33:56.433376Z Robin Watts

In an effort to understand the shading code I put together a 'map' of the function calls as comments. This has been hanging around my harddisc for ages and I'm now committing it to avoid it being lost. Comment change only - no cluster changes expected.

[base/gxshade1.c]

2010-11-23T08:46:10.878077Z Ken Sharp

Revert revision 11901. Because of the way that PCL draws bitmap fonts directly to the cache there is no possibility of making uncached glyphs work properly. Also the code for cached glyphs is much too forgiving and attempts to add glyphs which cannot be handled. Finally there is no provision for type 3 fonts with non-identity matrices. Because the bitmaps in the cache already have the scaling/rotation/shearing and clipping applied, we cannot have a type 3 font with a non-identity matrix. The code will be revised and recommitted.

[base/gdevpdti.h base/gdevpdfx.h base/gdevpdfb.c base/gdevpdt.h base/gdevpdti.c base/gdevpdfi.c]

2010-11-20T22:55:09.754787Z regression

Improved the cluster code's ability to be able to recover from machines going down late in the run.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/run.pl]

2010-11-18T19:21:31.928351Z Chris Liddell

Ensure we set SHARE_FT correctly when we end up using the system installed freetype library. Bug 691776. No cluster differences expected.

[base/configure.ac]

2010-11-18T00:52:20.670104Z regression

Two changes to the local cluster system: 1. A warnings check is now performed on the code under test (both commit and user tests). 2. In order to better recover from nodes going offline near the end of a cluster run nodes are paused after all their jobs have been sent. This way the jobs from an unresponsive node that isn't detected until all jobs have been distributed can be reassigned. Also some minor cleanup (dividing the clustermaster log into .log and .dbg files, supressing some uneeded debugging messages, etc.)

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/readlog.pl toolbin/localcluster/pngs2html.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl toolbin/localcluster/cachearchive.pl toolbin/localcluster/compare.pl]

2010-11-16T22:49:26.969992Z Ray Johnston

Fix for PCL that uses the chunk allocator (which is not inherently thread safe) when NumRenderingThreads > 1. Adds 'is_thread_safe' to the gs_memory_status so that clist_setup_render_threads can wrap an unsafe allocator in a locking wrapper. Also restore the optimizations to the chunk memory allocator to keep two lists (one for multiple object chunks and another for single object chunks) and fixes the chunk_free_object so that the correct list is chosen. Even if not found on the selected list, the other list will be scanned and a diagnostic printed if the wrong chunk list was selected (belt and suspenders). My testing with the lj*.prn files did not show this problem.

[base/lib.mak base/gsmemlok.c base/gsmchunk.c base/gxclthrd.c base/gsmalloc.c base/gsmemret.c base/gsalloc.c base/gsmemory.h base/gsmemraw.h]

2010-11-16T14:48:31.620067Z Michael Vrhel

Fix so that the initial gray color spaces in the graphic state are properly color managed. Previously, if we immediately started drawing in the document with a gray color space, the initial un-managed color space in the graphic state was used and this was not associated with the specified gray source profile. With this fix we initialize the stroking and filling color spaces to be ICC color spaces associated with the profile for default_gray in the icc manager. Also a fix for an issue in littleCMS. When merging profiles, littleCMS will often do an optimization where it approximates 1-D LUTs with an exponent operation for use during merging and interpolation of the profile structures. If the curve is very steep, as in like a step function, it should not do this approximation. This was an issue when we had profiles that provided thresholding operations with their 1-D LUTs. I spoke with Marti about this issue a couple weeks ago. This commit will create over 6000 differences in the regression test. I reviewed many of these and they all are minor differences in gray colors as expected. These are differences where we were drawing unmanaged colors.

[base/gsicc_manage.c psi/zusparam.c base/gsicc_manage.h lcms/src/cmsgmt.c]

2010-11-16T14:33:57.040738Z Ken Sharp

pdfwrite enhancement : attempt to make PCL bitmap fonts into searchable type 3 In general pdfwrite only resorts to making a bitmap from a font when it cannot handle the original font type, which is rare for PostScript, PDF and XPS. However all PCL bitmap fonts are handled this way. When this happens, the bitmap is stored into a general type 3 font, a 'bucket' where all such glyphs are stored. When this font is full, a new one is started and so on. The text stored in the PDF page stream references the correct type 3 font, but usually the character code will be unrelated to the original character code. For PCL bitmap fonts pdfwrite actually starts by creating a type 3 font to hold the PCL bitmaps, but doesn't use it. This patch tries to store the bitmaps in the type 3 font where possible, using the character code from the original PCL document. Although this will not create searchable text in the general case, it does seem that there are a good number of PCL documents which do use an ASCII encoding and so will produce a searchable PDF file. There are 3 parts to this enhancement: 1) Cached glyphs. When the current font is a type 3 font, and the text operation is one which might result in an ASCII character code, and we can manufacture a glyph name for the resulting character code, store the glyph in the type 3 font (rather than the general 'bucket' font), using the character code and glyph name. Glyphs which can't be handled this way for any reason are still stored in the general recipient 'bucket' font. 2) Uncached glyphs. Glyphs which are too large for the cache are rendered as images. The image handling code has been extensively reworked to try and detect this situation and, if the criteria for cached glyphs above also holds true, to store the image as a glyph in a type 3 font and draw text in the PDF content stream instead of an image. Images which do not fulfil these criteria are still handled as images. 3) Recached glyphs. If the glyph cache fills up, glyphs will be flushed to make space. If a glyph is then reused we go through the caching case again (for large glyphs which are uncached we end up repeating the code every time the glyph is used). We now attempt to spot this by determining that the glyph in the font has already been used, and rather than storing a new copy of the glyph, as the old code did, we simply emit text into the page content stream. Note that there is a recommendation that inline images in PDF should not exceed 4KB. Since CharProcs must use inline images, bitmaps which exceed this size will be rendered as images, not text (they will also exceed the cache size and so are always rendered uncached).

[base/gdevpdti.h base/gdevpdfx.h base/gdevpdfb.c base/gdevpdt.h base/gdevpdti.c base/gdevpdfi.c]

2010-11-16T13:58:36.196330Z Alex Cherepanov

Prefer character codes < 256 during construction of /CharStrings and /Encoding attributes of a symbolic Type 42 font. Bug 691753.

[Resource/Init/gs_ttf.ps]

2010-11-15T18:30:50.012584Z Henry Stiles

reverts 11877 which needs a bit more work

[base/gsmchunk.c]

2010-11-15T09:11:50.168011Z Chris Liddell

Fix a memory leak when interpolating image data. We were allocating a colour management buffer for every interpolated scan line from the currently buffered image data, but only releasing the last one. We'll now allocate the buffer (and initialise the buffer desc structure) only once, and free the buffer once when we're done. No cluster differences expected. Bug 691772 (NOTE: the test file for this still appears to go into an infinite loop during interpolation).

[base/gxiscale.c]

2010-11-14T21:16:15.954493Z Michael Vrhel

Make a macro for the default ICC profile name and set it in the proper locations.

[base/gsicc_manage.c psi/zusparam.c base/gsicc_manage.h]

2010-11-06T15:36:18.568592Z Michael Vrhel

Fix for a string handling bug that occurred when the device ICC profile name was smaller than the default device profile name. Also, additional code to ensure that the ICC path and the device profile name are properly combined when needed. Finally, if the device profile name is given as an absolute name the icc directory is not added to it.

[base/lib.mak base/gsdparam.c base/gsicc_manage.c]

2010-11-05T22:12:05.617541Z Michael Vrhel

Fix so that when compositing with tags, the tos tag data has no effect on the nos tag data if the pixel alpha value is 0. Fixes Bug 691752.

[base/gxblend1.c]

2010-11-05T15:53:35.817121Z Chris Liddell

In the event that we've decided not to cache a glyph generated by FAPI, we need to make sure that zsetcachedevice2() doesn't opt to try to cache said glyph. To do that we were setting in_cachedevice to CACHE_DEVICE_NOT_CACHING before calling zchar_set_cache(), and setting it back to its previous value on return. Unfortunately, a font with a CDevProc causes the call to zsetcachedevice2() to be delayed until after execution of the CDevProc, so in_cachedevice was (probably) no longer set to CACHE_DEVICE_NOT_CACHING. Amongst other effects, this caused some anti-aliased glyphs to be render with incorrect, scaling as well as the potential for marking glyphs to have empty (but valid) cached bitmaps. Expected cluster differences: fts_23_2306.pdf at 72dpi shows some (benign) pixel differences on the pattern filled glyphs - this is actually a behaviour progression, as it is caused by cache being properly bypassed for an uncached glyph, rather than the glyph being rendered uncached but the cache receiving an emtpy glyph. Bug 691750.

[psi/zfapi.c]

2010-11-04T19:13:08.201769Z Michael Vrhel

Increase in curve size to enable sharper cut offs (i.e. no interpolation of curve points) for thresholding profiles.

[toolbin/color/icc_creator/ICC_Creator/icc_create.cpp]

2010-11-03T20:44:07.993086Z Michael Vrhel

Fix to avoid potential crash instead of error if an improper file name is given for the device ICC profile.

[base/gsicc_manage.c]

2010-11-02T17:16:24.985382Z Chris Liddell

Remove some unnecessary, and detrimental endian related code in the GS/lcms interface. Bug 691696 No cluster differences expected.

[base/gsicc_cache.c base/gsicc_littlecms.c]

2010-11-01T23:59:27.933765Z Michael Vrhel

Performance fix so that the md5 code is not used to hash the rendering conditions for the icc link.

[base/gsicc_cache.c base/gscms.h]

2010-10-31T03:26:19.022477Z Ray Johnston

Optimize large allocations in the chunk memory manager maintaining separate lists for chunks with only a single block (that will never have any free space) from the multiple object chunks which are searched for free space when the requests are for small objects. Testing with a 28 files benchmark suite shows improvements against rev 11876 by over 9% (real time), to get within 2% of version 8.71. (testing 600 dpi ppmraw to /dev/null on peeves).

[base/gsmchunk.c]

2010-10-30T03:40:36.798714Z Alex Cherepanov

Check for negative object nunbers and consider such objects as null. Bug 691740, customer 384.

[Resource/Init/pdf_base.ps]

2010-10-29T23:40:30.279741Z Michael Vrhel

Fix so that the image clues array is dynamically allocate only when needed as opposed to being a static array in gx_image_enum. clues is used only in the case of monochrome or indexed with bps <= 8 and masked images. Another optimization to do is to make it allocate only 2 entries for the masked case rather than all 256.

[base/gxipixel.c base/gxidata.c base/gximage.h]

2010-10-29T19:35:48.071618Z Henry Stiles

Revision 10823 removed an optimization to strength reduce the logical operation when rendering an image - the optimization in fact was incorrect (see the bug referenced in the commit entry #691147) however the optimization is correct and gives us a good speedup if the current color is black. This is due to the peculiarities of the pcl transparency model which only effects the opacity/transparency of white.

[base/gxipixel.c]

2010-10-29T16:37:41.020300Z Michael Vrhel

Added features and fixed bugs to enable creation of thresholding ICC profiles.

[toolbin/color/icc_creator/ICC_Creator/icc_create.h toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.h toolbin/color/icc_creator/ICC_Creator/resource.h toolbin/color/icc_creator/ICC_Creator/ICC_Creator.rc toolbin/color/icc_creator/ICC_Creator/icc_create.cpp toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.cpp]

2010-10-29T09:05:42.895454Z Ken Sharp

Fix : DeviceN not permitting multiple identical inks Bug #691740 The DeviceN checking code did not permit multiple inks to have the same name. The comment in the code says this is not permitted, but I am unable to find any documentation in any of the specifications in support of this, and other interpreters (including CPSI) do not make this restriction. Restriction removed, and also the 'continuation' procedures used for much of the colour space parsing/validation have been given names so that future error messages use these instead of printing the function address. No differences expected.

[base/gscdevn.c psi/zcolor.c]

2010-10-28T20:41:14.761110Z Michael Vrhel

Addition in profile creation tool to create Gray ICC profiles with abrupt thresholds. Needed for solution to bug 691737

[toolbin/color/icc_creator/ICC_Creator/icc_create.h toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.h toolbin/color/icc_creator/ICC_Creator/resource.h toolbin/color/icc_creator/ICC_Creator/ICC_Creator.rc toolbin/color/icc_creator/ICC_Creator/icc_create.cpp toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.cpp]

2010-10-28T19:57:51.569853Z Michael Vrhel

Fix for issues that arise when the embedded icc profile is the same as one of the default icc profiles and we are using pdfwrite. This should fix 691731.

[base/gsicc_create.c base/gsicc_manage.c base/gscms.h base/gsciemap.c]

2010-10-28T19:02:45.723574Z Robin Watts

Marcos points out that tiffscaled with -rR -dDownScaleFactor=D can produce different sized images than just using -r(R*D) and a normal tiff device. (Bug 691730). I'll concede he's probably right that this isn't ideal. The difference was caused by me rounding the size up on a downscale so that no information is lost. This patch removes the rounding up. We can always add it again later if we actually find a file where it makes a difference. No expected cluster differences.

[base/gdevtifs.c]

2010-10-28T15:00:37.200667Z Chris Liddell

Work around the "no rule to make target" with tif_config.h (actually it affects tiffconf.h, too). This involves the rather unpleasant requirement of calling a configure script (for libtiff) from a makefile (the top level makefile for the ghostpdl builds). It must be done there, before the PDL specific makefiles start setting CFLAGS, which confuses the configure. Also, update the GS dist-clean and GhostPDL clean targets to remove the two tiff header files generated during the tiff configure. THIS IS NOT A FIX! It really is a "workaround". Bug 691700.

[/trunk/ghostpdl/Makefile base/Makefile.in]

2010-10-28T06:12:53.429268Z Michael Vrhel

Code to speed up cases where a file contains a lot of small images that are embedded in the clist as high level images. Previously, for every high level image, the serialized ICC source data was read out of the clist at a different clist file location, which required a fseek, a fread and then another fseek. This occurred even if all the images shared the same profile. The cost of file i/o for this can become significant if we have a lot of images. With this commit, the reading of the profile data is delayed and will only occur if a link using that profile does not already exist in the link cache.

[base/gxclpath.c base/gxclimag.c base/gxclist.h base/gxclrast.c]

2010-10-28T04:12:55.507828Z Marcos H. Woehrmann

Added dependencies to devs.mak to allow minftrsz.c to compile with concurrent make.

[base/devs.mak]

2010-10-27T23:30:42.045125Z Robin Watts

Fix compiler warning. No expected differences.

[base/gdevtifs.c]

2010-10-27T19:48:01.087645Z Robin Watts

Add new version of tiffscaled device, that supports -dMinFeatureSize=2. (Solves bug 691718). Also add support for AdjustWidth in tiffscaled device. Also update documentation. No expected differences.

[base/gdevfax.h base/gdevtifs.c base/minftrsz.c base/gdevtifs.h base/gdevtsep.c base/minftrsz.h doc/Devices.htm base/gdevfax.c base/gdevtfnx.c base/gdevtfax.c]

2010-10-27T12:45:49.361211Z Robin Watts

Fix Bug 691727. Black and White Tiff based devices were not respecting the AdjustWidth parameter. Fax based devices were applying it regardless, non faxed based devices were not applying it at all. The documentation says they should all default to applying it, but be controlled by the option. In this commit, we change so that all black and white tiff based devices (except tiffscaled) respect this parameter. We default to applying it in fax devices, and not applying it in non-fax devices, so default behaviour does not change. We also update the docs. No expected differences.

[doc/Devices.htm base/gdevtfax.c]

2010-10-27T11:18:38.076346Z Robin Watts

Fix Bug 691726, memory corruption in tiffscaled device when (resolution % DownScaleFactor) != 0. The problem specifically occurred when the page had 'stray' lines at the end. The code I had written to cope with this was calling the Tiff writing code with the wrong row number, causing the tiff lib to try to extend the buffer. This, it seems, is a bad thing. The miscalculation is fixed here, and the bug goes away. No expected cluster differences.

[base/gdevtifs.c]

2010-10-26T23:54:13.691521Z Robin Watts

Fix bug reported by Norbert Janssen. Inaccuracies in the floating point maths can cause 'no-scales' to look like 'downscales', and so high level images are skipped. This shouldn't actually matter in most cases as the two rendering paths should give the same results, but when people hook the clist for their own purposes this can cause problems. The workaround is to introduce a fudge factor and to accept very slight downscales. Thanks to Norbert for the first version of this patch. Minimal differences in cluster testing due to bug 691697.

[base/gxclimag.c]

2010-10-26T20:30:32.970049Z Michael Vrhel

Fix for RGB byte order expected by new CMM compared to imdi libray.

[base/gdevwts.c]

2010-10-26T20:22:45.373077Z Robin Watts

Silence gcc warning.

[base/gdevfax.c]

2010-10-26T19:41:35.752819Z Michael Vrhel

Removal of accidental commit of my own path for the wts halftone planes.

[base/gdevwts.c]

2010-10-26T18:50:49.267717Z Michael Vrhel

Fix so that wtsimidi device works again. I had the device using the wrong structure for maintaining its device link that maps the contone RGB data to CMYK.

[base/gdevwts.c]

2010-10-26T18:10:15.277289Z Robin Watts

Add Rays MinFeatureSize magic. Ray had originally integrated this into the fax devices, which had the effect of working for the tiff based fax devices too. Unfortunately the reworking of the tiff based devices to use libtiff meant that the output function changed, causing the patch to stop working with those devices. Here we split the new code out into a separate .c/.h pair, so it can be used by both tiff and fax devices, and hook it up to all the black and white tiff devices (except tiffscaled) and to the fax based ones. We also document the device (including it's current limitations). No expected changes.

[base/gdevfax.h base/gdevtifs.c base/minftrsz.c base/gdevtifs.h ghostscript.vcproj base/minftrsz.h base/gdevtsep.c doc/Devices.htm base/gdevfax.c base/gdevtfnx.c base/devs.mak base/gdevtfax.c]

2010-10-26T14:14:24.874268Z Alex Cherepanov

Generate fully opaque mask when /SMaskInData attribute is specified in PDF but JPX stream has no opacity channel. Fix the case of missing images on Luratech decoder in fts_17_1717.pdf and fts_17_1718.pdf.

[base/sjpx_luratech.c]

2010-10-25T16:51:26.885213Z Alex Cherepanov

Change the interface to Luratech JPX library to extract image data or opacity depending on the alpha parameter.

[base/sjpx_luratech.c]

2010-10-25T15:59:10.973330Z Ken Sharp

Fix pdfwrite : Do not emit DeviceRGB/CMYK as an Alternate when disallowed by PDF/A or X If a /Separation colour space had an /Alternate of /DeviceRGB or DeviceCMYK it was not checked to see if it was valid for PDF/A or PDF/X production, if these were set. As a result invalid PDF/A or PDF/X files could be written. The code now tests these flags and if the base space is not valid, converts to an appropriate base space by; sampling the tint transform function at 0 and 1, converting the resulting colours to the appropriate base space (using the Red Book methods for DeviceRGB/DeviceCMYK conversion), creating a new linear interpolation function for the new base space, using the converted sampled values for /Co and C1. The new base space is then written to the PDF file. No differences expected as we don't test PDF/A and PDF/X on the cluster.

[base/gdevpdfc.c]

2010-10-25T06:23:22.846885Z Alex Cherepanov

Move initialization of state->alpha flag to the place where it has effect.

[base/sjpx_luratech.c]

2010-10-25T04:39:51.229054Z Alex Cherepanov

Merge rev. 11790, 11795, 11802, 11805, 11809, 11810, 11812, 11813, 11818 into the trunk. JPX files without SMaskInData are now rendered correctly. Other JPX files are rendered incorrectly. Trunk PostScript code and Jasper use separate access to opacity and data. Luratech is still using pixel- interleaved format.

[base/sjpx_luratech.c base/sjpx_luratech.h psi/msvc32.mak]

2010-10-25T04:16:46.177854Z Alex Cherepanov

Rev. 11785 have introduced double decrement of the reference counter in gx_pattern_cache_free_entry() that caused warnings with -Z? option and SEGV on Windows, esp. with Luratech JPX library. This patch resolves all warnings and crashes. Bug 691714.

[base/gxpcmap.c]

2010-10-24T22:23:55.448411Z Alex Cherepanov

Implement /SMaskInData using images with /SMask and separate streams for the mask and image data. Our /ImageType 103 seems to have issues and cannot be used directly. /JPXDecode filter now takes /Alpha parameter, which controls whether opacity or image data stream is extracted. This commit introduces a PS error on pdfwrite device in fts_18_1805.pdf and a few other files with the same image. However, this image has never been combined with SMask before and the actual bug may predate the commit. Bug 691489, customer 532.

[base/sjpx.c Resource/Init/pdf_draw.ps]

2010-10-23T22:38:17.069244Z Alex Cherepanov

Move checking for /JPXDecode filter in front of checking for missing color spaces to handle /SMaskInData attribute in all cases. Fix handling of filter arrays and a wrong name /DecodeParms.

[Resource/Init/pdf_draw.ps]

2010-10-22T09:29:10.157074Z Chris Liddell

Add a debug-clean target (which in turn calls the existing debugclean target) to be more consistent with the ghostpdl langauge builds. No cluster differences expected.

[base/Makefile.in]

2010-10-22T07:52:12.054756Z Ken Sharp

Remove a spurious space that was causing a compiler warning, and remove an unused function, also causing a compiler warning.

[base/gdevpdfu.c]

2010-10-22T06:38:49.083740Z Alex Cherepanov

Make oforce_recursive more robust in preparation to SMaskInData commit. Don't execute tint transform functions and similar executable arrays that may be added by our PDF interpreter to PDF objects.

[Resource/Init/pdf_base.ps]

2010-10-22T04:19:30.192593Z Alex Cherepanov

Recognize /SMaskInData attribute as an indicator that the page has transparency features. Establish a base level for a future regression testing.

[Resource/Init/pdf_main.ps]

2010-10-21T15:57:37.250433Z Ken Sharp

More DSC work. Altered Procset emission to strip comments (but not line endings), as some of the ProcSets included %%BeginPrologue and %%EndPrologue comments which isn't (I don't think) allowed. Also makes the output file smaller. When producing DSC output, don't set the FitPages/RoatePages/CenterPages/SetPageSize operations. Don't permit the entire file to be compressed when emitting DSC PostScript (clearly won't be DSC compliant that way) Produce some very basic DSC Comments; the correct header, %%Pages, %%Beginprologue. %%EndPrologue, %%EndComments. Don't emit %PDF header when producing DSC PostScript. Count the number of pages and emit a %%Pages: comment at the end of the file. Don't write the Info dict when producing DSC PostScript. Emit %%Trailer and $$EOF.

[base/gdevpdf.c base/gdevpdfu.c]

2010-10-21T14:09:27.225155Z Marcos H. Woehrmann

Updated the cluster new node instructions to test the cups device when verifying the installation is complete.

[toolbin/localcluster/readme]

2010-10-21T13:39:00.821724Z Marcos H. Woehrmann

Added the cups dev repositories to the cluster node sertup read.me

[toolbin/localcluster/readme]

2010-10-21T11:17:31.420556Z Ken Sharp

When producing DSC compliant PostScript from ps2write, do not emit the following; Pages tree, outlines, articles, named destinations, PageLabels array, document metadata, document Catalog, threads, encrypt dictionary, xref, trailer. These objects are not required by PostScript, and cannot be easily placed in a DSC-conforming file. This does mean that, unlike the general output from ps2write, the output file is *not* a valid PDF file and cannot be opened as such by a PDF consumer. No differences expected.

[base/gdevpdf.c]

2010-10-21T11:07:40.293085Z Ken Sharp

Correct a bug in revision 11828 which tried to copy too many bytes from the source buffer, if fewer bytes were read then were requested, when copying a ProcSet.

[base/gdevpdfu.c]

2010-10-21T08:22:47.321512Z Ken Sharp

Remove some unused variables to silence compiler warnings.

[base/gdevpdfu.c]

2010-10-21T02:48:48.797956Z Alex Cherepanov

Don't search for a font named / on disk, because operator findlibfile throws an error in this case. Just fail the request when such font is not defined in VM. Bug 691698, customer 384.

[Resource/Init/gs_res.ps]

2010-10-20T17:00:27.929678Z Robin Watts

Add a helpful valgrind header, and call it from gsmdebug.h. The valgrind header here serves 2 purposes. Firstly, it insulates us from platforms on which Valgrind does not exist - if we build without defining ENABLE_VALGRIND then no dependency on any valgrind headers exists. The standard Valgrind macros are all defined in this header to do nothing, so they can safely be called in our code without needing ugly #ifdef ENABLE_VALGRIND wrapping. Secondly, it insulates us from changes in the valgrind/memcheck.h file - if ENABLE_VALGRIND is defined we will use whatever version is defined by the system. If new macros are defined by new versions of valgrind/memcheck.h we simply need to add new 'empty' definitions to valgrind.h. To start with, the only use of this code is to mark the contents of newly allocated blocks as being undefined. Thanks to AlexCher for spotting a cunning place to do this.

[base/valgrind.h base/gsmdebug.h]

2010-10-20T16:59:51.575415Z Alex Cherepanov

Add /ZapfDingbats to the list of known symbolic fonts, which ignore bogus /Encoding attribute. Fix fts_23_2300.pdf rendering.

[Resource/Init/pdf_font.ps]

2010-10-20T16:05:28.326890Z Ken Sharp

Initial work on DSC compliant PostScript. When ProduceDSC is true, do not strip the ProcSet, this is because DSC-compliant files have a line limit of 256. Later we will want to wrap the ProcSet emissions with %%BeginResource/%%EndResource as well. No effect if ProduceDSC is not true, so no differences expected.

[base/gdevpdfu.c]

2010-10-20T14:45:48.119859Z Ken Sharp

Add a new switch to ps2write, working title 'ProduceDSC'. This will be used to control whether the output of ps2write is DSC-compliant or not. No differences expected.

[base/gdevpdfx.h base/gdevpdfp.c base/gdevpdfb.h]

2010-10-20T10:59:23.603495Z Robin Watts

Disable the use of high level images in the clist if we are downscaling; this serves 2 purposes. Firstly, it fixes the potential problems with banded/unbanded mismatch of rendering due to the 'support' calculations done in the high level image code. These calculations are no longer correct for downscales since the change to use a simpler interpolated image scaler. Secondly, when downscaling we will probably end up copying more data than we would if we just kept the original, so high level images are a bad idea anyway. This *should* produce no differences, but actually produces lots. Most of these might be ignorable (slight rendering differences that appear to result in the new images being a little lighter, but a significant number appear to be noticable progressions, which hints that the high level image clist code is broken. Specifically high level images fail to render the same as the non high level code does. In particular halftoning seems to be enabled for some examples when high level images are used, for no good reason. This has been opened as bug 691697.

[base/gxclimag.c]

2010-10-20T10:21:50.512085Z Robin Watts

Unpack a hideously complex if statement into a series of if statements. Any reasonable compiler (if such a thing can be said to exist) should compile to the same code, but this is a lot easier to use under a debugger/ read. No changes expected in testing (and clusterpush agrees).

[base/gxclimag.c]

2010-10-19T08:04:32.778817Z Ken Sharp

Fix (pdfwrite) : Update CFF interpreter to handle gsubr while searching for SEAC Bug #691680 "PDF Writer drops many accented characters" pdfwrite makes use of a routine 'gs_type1_piece_codes' while copying fonts to determine if a glyph is a SEAC, and therefore includes two subsidiary glyphs. This code was updated previously (rev 10076) but on encountering a callgsubr in a CFF font, assumed that the glyph was not a SEAC> This patch adds support for callgsubr and continues searching glyphs which use a gsubr to see if the gsubr is actually a SEAC type endchar. No differences expected.

[base/gxtype1.c]

2010-10-18T15:44:20.143696Z Chris Liddell

Silence a compiler warning from my previous commit.

[psi/zchar42.c]

2010-10-18T14:11:44.566085Z Chris Liddell

In a CIDType2 font with a gsub table, when/if we substitute the glyph index with an index for a vertical glyph, make sure we change the value of the Truetype glyph index, and *not* the value of the Postscript CID. Bug 691692 No cluster differences expected.

[psi/zchar42.c]

2010-10-16T15:52:53.774342Z Ken Sharp

Fix pdfwrite: Don't use CFF font format if CompatibilityLevel < 1.2 We permit CompatibilityLevel down to 1.1, but PDF 1.1. doesn't support CFF (Type 1C) fonts, so don't use this format if CompatibilityLevel < 1.2. No differences expected.

[base/gdevpdfp.c]

2010-10-15T15:12:36.033471Z Ken Sharp

Fix (pdfwrite) : Scale up type 3 font outlines to give more accuracy Bug #691383, #691287, #691595 various type 3 font problems. Although this is being fixed for the FreeType implementation, the Artifex font interpreter had similar problems. The issue is caused by using an identity scale at 72 dpi to capture font outlines. Quark often uses a type 3 font which runs a type 1 font, in order to achieve text special effects, such as stroke+fill. The stroke was achieved by a 'charpath/fill' combination, because pdfwrite doesn't have a charpath, this meant that the path was captured and emitted. Because the scale was so low, the interpreter could run out of arithmetic precision, resulting in poorly formed outlines. We can't simply use the CTM in force at the time, as that includes the font scale, but we need to use something other than the identity. A scale facto of 1000 proved too likely to cause arithmetic overflow, or clipping, and also meant writing large values to the PDF file, which is inefficient. A factor of 10 turned out to be insufficient, so a factor of 100 has been used. Because the CharProc is effectively interpreted at the page level, this can result in large values being used for paths, so we need to scale the device width and height by 100 as well, to prevent clipping (and undo it afterwards!)

[base/gdevpdtt.c base/gdevpdti.c]

2010-10-15T15:07:05.687999Z Chris Liddell

With the latest release of Freetype, reinstate the "sensible" method of limiting the size of the bitmap that we let Freetype create. It is limited to 1.5x the current maximum cacheable glyph bitmap, as it is *vital* that we avoid creating an outline when the cache expects a bitmap, but not a problem if we create a bitmap for a non-cached glyph. Bug 691569. No cluster differences expected.

[psi/fapi_ft.c]

2010-10-15T14:21:51.952651Z Ken Sharp

Fix (pdfwrite) : Properly scale co-ordinates into Acrobat's range When emitting various co-ordinates pdfwrite is careful to stay within +/- 32,767 in order to ensure all versions of Acrobat can properly deal with them. To achieve this it emits a matrix which scales values up, and then writes the co-ordinates scaled down by this factor. Thus ensuring that they stay within permitted values, but are still correct. However, when emitting a rectangular fill, the scale was applied backwards, the co-ordinates were scaled *up* instead of down by the scale factor. This led to wildly incorrect values being written for rectangular paths. No differences expected with this in the test suite, however it forms part of the fix for type 3 fonts which will follow and does rely on this change.

[base/gdevpdfd.c]

2010-10-14T20:23:15.984226Z Henry Stiles

The image_set_gray function needed to take the address of the pointer to the device color, the parameter should have been passed by reference, as it must be set to &penum->clues[sample_value].dev_color and returned. We'd like to get rid of the macro entirely and use the image_set_gray as an inline function but have not tested performance. The function might be too complex for inlining on some compilers.

[base/gximono.c]

2010-10-14T15:06:01.276381Z Chris Liddell

In gx_alloc_char_bits() the "target" device can be NULL, in which case avoid trying to decrement the ICC profile object for the target device. patch credit to William Bader. Bug 691651. No cluster differences expected.

[base/gxccman.c]

2010-10-14T15:01:56.645831Z Chris Liddell

If we're passed an unexpected object instead of a glyph name object fall back to rendering the notdef. This is not identical, but is closer to the behaviour of the AFS code under these conditions. Highlighted by Bug 691656. No cluster differences expected.

[psi/zfapi.c]

2010-10-14T14:57:36.364971Z Chris Liddell

Rename libpng.mak to png.mak to make it consistent with the other third part libraries. Bug 691681 No cluster differences expected.

[base/openvms.mmk base/ugcclib.mak base/libpng.mak base/Makefile.in base/unix-gcc.mak base/macos-mcp.mak base/winlib.mak base/png.mak psi/os2.mak base/openvms.mak base/macosx.mak base/configure.ac /trunk/ghostpdl/common/ugcc_top.mak psi/msvc32.mak base/unixansi.mak base/msvclib.mak base/devs.mak]

2010-10-14T14:23:22.009615Z Till Kamppeter

CUPS Raster output device: Fixed access to uninitialized variable, the margins array is only set when size_set is true (bug #691683).

[cups/gdevcups.c]

2010-10-14T11:57:31.187468Z Chris Liddell

Rename libtiff.mak to tiff.mak to be more consistent with the other third party libs. Bug 691681 No cluster differences expected.

[base/winlib.mak base/tiff.mak base/Makefile.in /trunk/ghostpdl/common/ugcc_top.mak base/unix-gcc.mak base/unixansi.mak base/libtiff.mak]

2010-10-13T17:14:59.959208Z Robin Watts

Fix 2 build warnings in gdevtifs.c No expected differences.

[base/gdevtifs.c]

2010-10-13T16:01:51.166726Z Robin Watts

Add new tiffscaled device. This renders internally as tiffgray, but then downsamples by an integer scale factor (specified by -dDownScaleFactor=n) and error diffuses to 1bpp output. This device is also included in pcl builds (windows ones at least), enabling a solution for dropouts caused by rendering pcl at 200dpi. (Render at 600dpi and scale down by a factor of 3). This should hopefully solve bug 690085. Future work to consider: work on bringing libtiff based devices into unix PCL builds, consider stochastic thresholding rather than FS error diffusion.

[base/gdevtifs.c base/openvms.mak base/gdevtifs.h base/gdevtsep.c base/configure.ac base/unix-gcc.mak doc/Devices.htm base/unixansi.mak psi/msvc32.mak base/gdevtfnx.c base/macos-mcp.mak base/devs.mak base/gdevtfax.c]

2010-10-13T10:48:04.352147Z Chris Liddell

We have far fewer font Decodings than there are "well known" Encodings, so assuming that for such an Encoding we always have a predefined Decoding is problematic. We'll now try to find a predefined Decoding, and if one isn't found we'll derive one from the Encoding (as we previously did only for non-well known Encodings). Bug 691677 No cluster differences expected.

[Resource/Init/gs_fntem.ps]

2010-10-12T23:27:36.478231Z Robin Watts

Remove unused variable in siscale.c that was causing warnings. No expected differences.

[base/siscale.c]

2010-10-12T16:26:32.204667Z Robin Watts

Update interpolation filter. When we are downscaling an image on either axis we now use a simpler (less computationally complex) linear interpolation filter rather than the existing mitchell filter. For downscaling the difference in quality between mitchell and simple linear interpolation is not that noticable. (But the CPU/memory usage is a quarter what it would be for proper mitchell downscaling). What is noticable is that the existing downscaling code is 'bent' to avoid having to hold more than 8 temporary scaled scanlines of the image. The effect of this is to incorrectly limit the pixels that actually go into contributing to an output pixel, producing dropouts. We update the code here to remove this limit. This means that downscales may potentially take more memory and more computation to perform, but the overall quality is better. Regression tests show both noticable and unnoticable differences in files that enable interpolation (270 or so). The noticable differences are all that the new output looks smoother, at the expense of losing some contrast and solving some 'jaggy' looking edges. Testing with my custom dropout test file shows a huge improvement with the new code. I'll add this to the test repo shortly.

[base/siscale.c]

2010-10-12T05:52:16.851470Z Michael Vrhel

Fix for a large memory leak that can occur when a pattern cache entry is freed and a transparency buffer exists in the entry. A problem was that the pdf14 device, which contains pointers to the buffer, had its close device procedure set to forward due to the device being set in a disabled state during pattern_paint_finish. The close device proc for the pdf14 device contains the calls to actually free the buffers so this was not occurring (instead we were forwarding to another device). In addition, the pdf14 device itself was not being destroyed. With this commit, when the pattern entry is freed, the pdf14 device is now closed, which frees the buffers, and the pdf14 device is properly reference count decremented to result in the device itself getting freed. Regression run revealed no problems.

[psi/zpcolor.c base/gxpcmap.c]

2010-10-11T07:53:26.581165Z Chris Liddell

Update Freetype to 2.4.3 Revise fapi_ft.c to take into account new font(s) being added to Freetype's "tricky" font list. "Tricky" fonts need the bytecode interpreter to produce "correct" output. But for GS, in the case of (even "tricky") fonts which produce an error in the bytecode interpreter, we want to try to produce some output, even just a notdef glyph. So in the non-hinted, and notdef fallback cases, remove the "tricky" flag from the Freetype face. No cluster differences expected.

[freetype/src/pshinter/pshalgo.c psi/fapi_ft.c freetype/builds/unix/config.sub freetype/src/type42/t42parse.c freetype/builds/win32/visualce/freetype.dsp freetype/docs/reference/ft2-toc.html freetype/docs/reference/ft2-computations.html freetype/builds/unix/configure.ac freetype/builds/wince/vc2008-ce/index.html freetype/builds/unix/ftconfig.in freetype/src/sfnt/ttload.c freetype/ChangeLog.23 freetype/docs/reference/ft2-sizes_management.html freetype/src/cache/ftccache.c freetype/docs/reference/ft2-quick_advance.html freetype/include/freetype/freetype.h freetype/configure freetype/docs/reference/ft2-pfr_fonts.html freetype/docs/reference/ft2-gasp_table.html freetype/docs/reference/ft2-system_interface.html freetype/builds/unix/configure freetype/docs/reference/ft2-mac_specific.html freetype/docs/reference/ft2-basic_types.html freetype/docs/reference/ft2-lcd_filtering.html freetype/src/truetype/ttgload.c freetype/docs/reference/ft2-cid_fonts.html freetype/include/freetype/internal/ftobjs.h freetype/docs/reference/ft2-winfnt_fonts.html freetype/docs/reference/ft2-bitmap_handling.html freetype/docs/reference/ft2-cache_subsystem.html freetype/Jamfile freetype/include/freetype/ftimage.h freetype/src/base/ftobjs.c freetype/builds/win32/visualce/index.html freetype/docs/reference/ft2-glyph_variants.html freetype/docs/reference/ft2-glyph_stroker.html freetype/builds/win32/visualc/freetype.vcproj freetype/docs/reference/ft2-sfnt_names.html freetype/docs/reference/ft2-raster.html freetype/include/freetype/ftlcdfil.h freetype/builds/win32/visualce/freetype.vcproj freetype/docs/reference/ft2-bdf_fonts.html freetype/docs/reference/ft2-truetype_tables.html freetype/src/truetype/ttobjs.c freetype/builds/unix/config.guess freetype/include/freetype/config/ftconfig.h freetype/docs/reference/ft2-glyph_management.html freetype/src/autofit/aflatin.c freetype/src/raster/ftraster.c freetype/builds/win32/visualc/index.html freetype/builds/wince/vc2005-ce/index.html freetype/docs/reference/ft2-version.html freetype/docs/reference/ft2-gx_validation.html freetype/docs/reference/ft2-multiple_masters.html freetype/src/cff/cffgload.c freetype/docs/reference/ft2-base_interface.html freetype/docs/reference/ft2-header_file_macros.html freetype/builds/win32/vc2005/index.html freetype/src/cid/cidgload.c freetype/docs/reference/ft2-ot_validation.html freetype/builds/unix/unix-cc.in freetype/builds/wince/vc2005-ce/freetype.vcproj freetype/src/base/ftsynth.c freetype/src/winfonts/winfnt.c freetype/devel/ftoption.h freetype/builds/win32/vc2005/freetype.vcproj freetype/docs/reference/ft2-index.html freetype/builds/win32/vc2008/freetype.vcproj freetype/src/cache/ftcsbits.c freetype/docs/reference/ft2-outline_processing.html freetype/docs/reference/ft2-lzw.html freetype/src/truetype/ttpload.c freetype/src/smooth/ftgrays.c freetype/builds/win32/visualc/freetype.dsp freetype/src/truetype/ttinterp.c freetype/docs/reference/ft2-module_management.html freetype/src/cff/cffload.c freetype/docs/reference/ft2-user_allocation.html freetype/src/base/ftstream.c freetype/src/truetype/ttinterp.h freetype/builds/unix/configure.raw freetype/docs/reference/ft2-type1_tables.html freetype/src/sfnt/ttpost.c freetype/builds/win32/vc2008/index.html freetype/src/cff/cffobjs.c freetype/docs/reference/ft2-font_formats.html freetype/builds/wince/vc2008-ce/freetype.vcproj freetype/docs/reference/ft2-incremental.html freetype/src/smooth/ftsmooth.c freetype/ChangeLog freetype/docs/VERSION.DLL freetype/docs/reference/ft2-truetype_engine.html freetype/include/freetype/ftcache.h freetype/docs/reference/ft2-list_processing.html freetype/docs/reference/ft2-gzip.html freetype/README freetype/include/freetype/ftmodapi.h freetype/docs/CHANGES]

2010-10-10T05:51:09.780940Z regression

Various minor fixed to the local cluster code: clustermonitor.pl now deals with terminal windows being resize clustermaster.pl logs messages to clustermaster.log build.pl now adds -dcupsColorSpace=0 to command line run.pl now longer runs fuzzy after bmpcmp

[toolbin/localcluster/clustermonitor.pl toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl toolbin/localcluster/compare.pl]

2010-10-08T14:42:18.915016Z Ken Sharp

Fix (pdfwrite) : Process text in Tr 3 even if the Widths are non-standard Bug #691605 "Invisible text not preserved by pdfwrite" The problem was that if text in text rendering mode 4 (neither stroke nor fill) used a font where the entries in the FontDescriptor /Widths array did not match the actual widths in the font, the code took a path where the glyphs were not added to the 'used' list, and so were never emitted. Text in regular fonts where the /Widths array was missing, or matched the widths in the font (as the spec says they must) worked correctly. Fixed by processing text whose operation properties include TEXT_RENDER_MORE_3 the same as text with the TEXT_DO_DRAW property.

[base/gdevpdte.c]

2010-10-08T13:42:41.451688Z Ken Sharp

Remove an unused variable (flagged by static analysis).

[base/gdevpsdi.c]

2010-10-08T13:37:05.002251Z Ken Sharp

Prevent a possible attempt to memset a NULL pointer. This was probably safe since the size of the memset would be 0 bytes, but its best to be safe.

[base/gdevpdtt.c]

2010-10-08T13:34:00.715868Z Ken Sharp

Remove an unused variable (flagged by static analysis)

[base/gdevpdfi.c]

2010-10-08T13:31:11.163393Z Chris Liddell

A stringwidth operation does not always result in a call to fapi_finish_render() which can cause Freetype glyph objects to not be freed. Add a firewall so we don't simply overwrite the pointer to the Freetype glyph object, but correctly dispose of the object. Bug 691668 No cluster differences expected.

[psi/fapi_ft.c]

2010-10-08T12:01:24.908534Z Ken Sharp

Fix (pdfwrite) : Check encoding compatibility when finding base fonts Bug #691656 "crash in Chinese font: /typecheck in --.FAPIBuildGlyph--" A typecheck error is not a crash of course, but when using the built in font interpreter this did not produce an error, silently discarded the text instead. This was still incorrect. The problem is caused when dealing with type 0 fonts and producing multiple type 1 fonts to handle the large number of glyphs. The code for finding an existing font (in order to minimise the number of new fonts) or create a new font, did not consider the encoding of an existing font when trying to match it (this did work for regular fonts). This could lead to a font with an incompatible encoding being used, which caused an error later in text processing where a routine is supposed to be guaranteed no font encoding problems. That led to an attempted fallback to the 'bitmapped type 3 font' solution, but the text processing was passing ridiculous values to the font interpreter. In the old font code this caused a silent discard of the text, with the FreeType code it produces an error. Fixed by checking the base font we find to see if its encoding is compatible with the current text encoding, and manufacturing a new font if it is not. No differences expected.

[base/gdevpdtt.c]

2010-10-08T05:09:27.837431Z Ray Johnston

Fix for miscalculation of clist_color_info.depth when tags are part of the PDF14 device color. While 8 * num_components is usually enough, when we have tags, we need the extra byte. Seen with fts_16_1601.pdf in clist mode on HEAD and with customer 532 code when PDF14_transparency + tags is included.

[base/gdevp14.c]

2010-10-07T13:59:49.890609Z Ken Sharp

Put back some statements. It turns out that we can either have gcc be warning free or the static analysis warning free. The problem is gs_note_error which uses gs_log_error, on a release build gs_log_error is defined as the error value. If we don't do something with that value then gcc complains that the 'statement has no effect'. So the code was set like this: ecode = gs_note_error(error code); But if we want to actually ignore the error and just note the problem, then we don't use ecode and the static analysis complains that the variable is unused.... I'd rather have no warnings from gcc so I've restored that.

[base/gdevpdfj.c base/gdevpdfp.c base/gdevpdfu.c]

2010-10-07T12:49:54.318945Z Ken Sharp

More changes to silence static analysis warnings. Mostly removing unused variables or assignments.

[base/gdevpdfj.c base/gdevpdfm.c base/gdevpdfp.c base/gdevpdtb.c base/gdevpdtc.c base/gdevpdtd.c base/gdevpdtt.c base/gdevpdtf.c base/gdevpdfu.c base/gdevpdti.c base/gdevpdfi.c]

2010-10-07T08:35:58.544234Z Ken Sharp

Silence (hopefully) some compiler warnings.

[base/gdevpdf.c]

2010-10-07T08:04:15.270260Z Ken Sharp

Remove some unused variables and assignments flagged by static analysis.

[base/gdevpdfg.c]

2010-10-07T07:57:43.664608Z Ken Sharp

Fix a potential NULL pointer dereference flagged by static analysis. Other potential occurrences flagged by the analyser in this module are deemed not to be possible, as these are picked up at a higher level. For instance, dereferencing a pointer to a path structure in a path handling method. We can assume the path pointer is not NULL as we would not be called if the path was empty.

[base/gdevpdfd.c]

2010-10-07T07:50:09.274081Z Ken Sharp

Static analysis discovered two variables being altered that are not subsequently used. Although this is safe, removed the code anyway.

[base/gdevpdfb.c]

2010-10-07T07:49:13.279339Z Ken Sharp

static analysis found that the result of fread was not being used. Add code to test the result and flag a warning if expected data not read.

[base/gdevpdf.c]

2010-10-06T14:03:32.653153Z Robin Watts

Fix for part 2 of Bug 691484, valgrind warnings about uninitialised values in clist code. The problem is that we are writing out a cmd_block without initialising it all. The fix is simply to initialise it (using a memset, so accounting for all padding bytes too) before starting to use it. This stops the valgrind warnings. No changes in localcluster testing.

[base/gxclist.c]

2010-10-06T13:48:15.425458Z Ken Sharp

Add some body parentheses to 'if' statements in order to silence some clang warnings.

[base/gdevpdfp.c base/gdevpdtf.c]

2010-10-06T12:06:46.017717Z Robin Watts

Whitespace tweaks to gxiscale.c. The complexity in the file is more than enough for my tiny brain without expecting it to cope with inconsistent indentation too :)

[base/gxiscale.c]

2010-10-05T21:38:11.272406Z Robin Watts

Fix for part 1 of bug 691484 - uninitialised memory usage in clist code. The FAPI code copies bitmaps and pads them out so that each raster line is appropriately aligned. Previously the padding bytes were left uninitialised. Unfortunately the clist code reads the padding when compressing the bitmaps, which a) upsets valgrind and b) means that the exact size of the clist will vary from run to run. Here we tweak the copying code to ensure that the padding bytes are always set to zero. No differences shown in local cluster. This solves part 1 of the bug.

[psi/zfapi.c]

2010-10-05T20:27:54.714250Z Michael Vrhel

Clean up of a few comments about device profiles

[base/gsicc_manage.c]

2010-10-05T20:18:10.046358Z Michael Vrhel

Fix for error in detecting the presence of a device profile set in the command line. Unfortunately, the device was not being reset from the default profile based upon the setting.

[base/gsicc_manage.c]

2010-10-05T13:57:22.688207Z Alex Cherepanov

Add missing decoding of #nn escape to encrypted PDF reader. Besides fixing the bug sample file, this patch also corrects a colorant name in IA3Z0440.pdf on psdcmyk device. Bug 691636.

[Resource/Init/pdf_sec.ps]

2010-10-05T12:48:16.473671Z Ken Sharp

Fix (pdfwrite) : ConvertCMYKImagesToRGB not working Bug #691647 "-dConvertCMYKImagesToRGB no longer works" Originally caused by the conversion to the ICC workflow, which meant that all images appear to be in a ICC space, and only images originally natively CMYK are converted. Probing the ICC space using the provided utility to return the original colour space allows the code to work, but reveals a more serious error. The code in psdf_setup_image_filteres() alters the image colour space and decrements the reference count of the original colour space. This seems logically correct, and in one of the three calling paths it is correct, but under one of the other two conditions it causes a crash. The routine pdf_begin_typed_image_impl() makes two copies of the original image parameters, and when it does so it does *not* increment the reference counts of any counted objects. This copied data is presented to the image filter setup several times, and if CMUK to RGB conversion is going on the original colour space is decremented each time. This leads to obvious problems. The simplest solution would be to increment the reference counts when the copy is made, but that would mean checking all the error condition break outs, and decrementing the reference count in each case. Since the colour space is only decremented in the filter setup, this patch increments the count before the call, and if the colour space is the same afterwards (whether an error occurred or not) decrements it back again. If the colour space changes we do not decrement the space of course, as the filter setup routine has done that. In addition, extended the test for whether CMYK images should be converted to include the original test of the native space, in case we get here after an image has been converted to a base space and no longer has an ICC space. No expected differences, this configuration is not tested by the regression suite.

[base/gdevpsdi.c base/gdevpdfi.c]

2010-10-05T12:10:46.672154Z Robin Watts

Fix for part 1 of Bug 691635, supplied by Norbert Janssen. Many thanks. In the recent work to remove global variables where possible, I had failed to change an instance of iodev_default to be iodev_default(mem). No expected changes.

[base/gsiodisk.c]

2010-10-03T16:13:00.326561Z Alex Cherepanov

Change the order of operands in a logical expression to avoid dereferencing an uninitialized variable. Bug 690214.

[psi/zfont2.c]

2010-10-01T19:36:06.952768Z Ray Johnston

Drop support for these less popular compilers. This will be the first step to changing to project files for Windows.

[base/wctail.mak base/watclib.mak base/bcwin32.mak base/gp_iwatc.c base/watcw32.mak base/wccommon.mak]

2010-10-01T02:58:15.408387Z Alex Cherepanov

Replace sequential CFF parser coded in PostScript with a parser that uses direct access to the data and coded in C. Solve numerous problems caused by the old parser. New -dOLDCFF option can revert to the old parser. Differences in 16-01.PS.pdf and 16-01.PS.pdf are progressions.

[doc/Use.htm psi/int.mak psi/zfont1.c psi/zfont2.c Resource/Init/gs_cff.ps]

2010-09-29T15:50:22.840688Z Ray Johnston

Fix calculation of offset to tag plane in pdf14_mark_fill_rectangle to cure writing past the end of an allocated buffer. Detected with customer 532 on fts_08_0808.pdf. Only affects devices with object tagging (bitrgbtags).

[base/gdevp14.c]

2010-09-28T12:36:41.051799Z Ken Sharp

Fix (pdfwrite) : Don't unreasonably limit the PDF output level Bug #691318 " -dCompatibilityLevel=1.6 produces PDF 1.5" Although the highest output level for pdfwrite features is 1.5, it is possible to use pdfmarks to create a PDF file which uses higher level features. In this case its reasonable to have pdfwrite produce a higher level PDF file. This patch allows pdfwrite to produce output up to PDF 1.7, the highest currently specified. No differences expected.

[base/gdevpdfp.c]

2010-09-28T12:26:13.182021Z Ken Sharp

Fix (pdfwrite) : allow for UserPasword and OwnerPassword in page device Bug #691256 "OwnerPassword and UserPassword don't work as device parameters" pdfwrite sets up encryption filters when the device is opened, and the device is not (currently) closed until Ghostscript shuts down. This means that changes to the page device dictionary which require a restart (eg the encryption parameters) do not affect the current setup, though they may be (incorrectly) written when the device is closed. This patch addresses the specific issue of OwnerPassword by closing the device if the password is changed *and* we have not yet written any pages. If we have already begun the output when a password change occurs then we ignore it and flag a warning. This is also a first step in the direction of making pdfwrite open and close properly so that we don't need to restart Ghostscript to use it. No expected differences.

[base/gdevpdfp.c]

2010-09-27T12:05:17.449032Z Ken Sharp

Fix (Fonts): Prevent xfont being used in composefont On platforms supporting X-Windows xfonts can be used with Ghostscript, however we don't want to find an xfont (eg Courier) when using composefont to create a CID-Keyed instance as this will not work. Test to see if the top level font is a type 0, and if it is, don't search for a matching xfont, but instead go through the usual PostScript machinery. No differences expected.

[base/gxchar.c]

2010-09-27T09:33:55.410495Z Ken Sharp

Fix (pdfwrite/ps2write) : Don't dereference mask colour spaces Bug #691106 "-sDEVICE=pdfwrite -dConvertCMYKImagesToRGB=true" When checking to see if an image needs to be converted to RGB, the image space is checked to see if it is CMYK. However an image mask does not have a colour space (it is NULL), firstly so that we can tell its an image mask, and secondly because masks genuinely do not have a colour space, they take on the current colour. Attempting to dereference the NULL colour space causes a crash. Since a mask never needs converting to RGB, we short circuit the test by detecting a NULL colour space.

[base/gdevpsdi.c]

2010-09-25T02:08:22.451780Z Alex Cherepanov

For long time ps2pdf*.bat files failed when they were used with some options and a single argument. findstr is now used to identify options by the leading '-' and handle this case. Bug 691622.

[lib/ps2pdf.bat lib/ps2pdf12.bat lib/ps2pdf13.bat lib/ps2pdf14.bat]

2010-09-24T13:25:07.243032Z Chris Liddell

For disk based TTFs, only lookup the character code in the TTF cmap if the font is not using an Identity ordering. No cluster differences expected. Bug 691623.

[psi/zfapi.c]

2010-09-24T09:03:34.206583Z Ken Sharp

Fix (TrueType fonts) : memory leak Bug #691088 This does not affect the PostScript/PDF interpreters which now use FreeType but is relevant still for XPS and PCL. A buffer was allocated to contain the GSUB table from the TT font, but was never freed leading to memory leaks. I've adopted the same approach as that taken for the 'glyph length' array and added a notification procedure which is called when the font is released, and that procedure frees the GSUB buffer. At the same time, removed the functions: add_quadratic_curve append_simple check_component These were only called by each other, or by append_component which had already been removed as unused. No expected differences.

[base/gstype42.c]

2010-09-24T03:27:45.689228Z Michael Vrhel

Removal of debug code that was accidentally committed.

[base/gdevp14.c]

2010-09-23T19:45:27.249371Z Michael Vrhel

Fix so that objects tag information makes it through transparency rendering AND the clist. An issue was that the pdf14 encode and decode procedures are used as opposed to the target device encode and decode procedures and it is through a value in the color index that we currently communicate the object type through the clist. When we are in page rendering mode, it is easy to get the current object from mem->gs_lib_ctx->BITTAG, but this is not set correctly in clist rendering if for example a glyph is stored in the clist as a mask fill. Instead the information about the object is extracted from the color index. So, to make this work, we had to introduce an encode method for the pdf14 device that incorporates the tag information and also make sure that the bit depth for the pdf14 color info value is incremented appropriately so that the extra byte is stored and extracted from the clist. The object type is then recovered during the pdf14 mark fill rect procedure. This was tested with the updated bitrgbtags device using a custom file that has overlapping text, image and path objects with varying transparency amounts.

[base/gdevp14.c base/gsimage.c base/gsutil.h base/gstext.c base/gsdps1.c base/gdevbit.c base/gdevmem.c base/gxblend1.c base/gspaint.c base/gdevddrw.c base/gsutil.c base/gxclrast.c base/gxblend.h]

2010-09-23T14:46:50.766627Z Robin Watts

Final part of the fix for bug 691612. Currently the code blindly sets the "lop_pdf14" whenever the pdf14 device is in use. This forces the 'lop_is_idempotent' test to fail, which in turn forces slower cases to be taken through the code. This patch alters that logic, so that the pdf14 device can leave that bit unset if the parameters are set up in such a way that the lop really can be idempotent (i.e. normal blending, solid alphas etc). This vastly improves the speed of rendering non-alpha content, so we are no longer penalised for having just a small amount of transparent content on a page. Testing shows 398 files that change, but bmpcmp reveals these all to be very small changes to do with whether individual pixels are filled or not. This is consistent with the typical mismatches between special case and normal renderings, so can safely be ignored for now.

[base/gdevp14.c]

2010-09-23T12:17:57.296649Z Robin Watts

As part of the investigation into bug 691612, we noticed that the clist band playback code doesn't call the device stroke_path method, but instead calls the default implementation directly. In order the fix the bug, we'd like it to call through the device version (pdf14_stroke_path). Consensus is that it's an oversight that it's not calling the device version already, and tests indicate no differences (*) so this patch changes it to call via the vector. (* Actually regression testing shows 2 pdfwrite differences, but they are in unbanded tests, so can't be executing this code, so are probably just indeterminisms).

[base/gxclrast.c]

2010-09-23T10:46:33.821569Z Robin Watts

As part of the investigation into bug 691612, a problem was found with the rop3_is_idempotent (and hence lop_is_idempotent) macros. This patch fixes this definition and adds some more comments explaining the rop operations. Thanks to lpd for confirming this change. This produces 78 differences in the regression tests, bmpcmp reveals these to all be neutral or progressions (in some cases, significant progressions).

[base/gsropt.h]

2010-09-23T08:16:36.207911Z Ken Sharp

Fix (pdfwrite) : Do not write Encodings with Symbolic TrueType fonts Bug #690744, #691036, #691319. The PDF specification makes it clear that Symbolic TrueType fonts should not have a FontDescriptor which contains an Encoding entry. pdfwrite has specifically been doing this, the reason being (code comments) : * We write True Types with Symbolic flag set. * PDF spec says that "symbolic font should not specify Encoding entry" * (see section 5.5, the article "Encodings for True Type fonts", paragraph 3). * However Acrobat Reader 4,5,6 fail when TT font with no Encoding * appears in a document together with a CID font with a non-standard CMap * (AR 4 and 5 claim "The encoding (CMap) specified by a font is corrupted." * (we read it as "The encoding or CMap specified by a font is corrupted.", * and apply the 1st alternative)). We believe that AR is buggy, * and therefore we write an Encoding with non-CID True Type fonts. * Hopely other viewers can ignore Encoding in such case. Actually in this case * an Encoding doesn't add an useful information. Since this is working around a bug in old versions of Acrobat, and the presence of an Encoding causes preflight errors and is specifically forbidden in PDF/A, this work around has been removed. I would like to check recent versions of Acrobat to see if this issue persists, but am unable to find an example file. The change predates the adoption of Subversion, the first logged change is October 2003.

[base/gdevpdtt.c]

2010-09-22T15:13:20.906048Z Marcos H. Woehrmann

Removed unused label from base/gxicolor.c that caused compiler warning. Fixes Bug #691633 reported by Norbert Janssen.

[base/gxicolor.c]

2010-09-21T12:03:52.655546Z Chris Liddell

Add the new entries for produce outlines and maximum bitmap size to the FAPI server declarations in the UFST and Bitstream code. No cluster differences expected. Bug 691634

[psi/fapiufst.c psi/fapibstm.c]

2010-09-20T01:26:14.070109Z Alex Cherepanov

Fix end-of-file detection in reusable streams. Don't try to read non-existing blocks after the last one. Just return EOF flag and the data that are already in the buffer. Bug 691625.

[psi/zfrsd.c]

2010-09-17T10:29:36.728794Z Robin Watts

In revision 11723 I'd copied a prototype, but forgotten to edit the name. (bytes_copy_rectangle to bytes_copy_rectangle_zero_padding). This was resulting in a couple of warnings about 'no previous prototype'. No expected differences.

[base/gsbitops.h]

2010-09-17T06:44:27.206613Z Michael Vrhel

Removal of unused variable introduced in last commit.

[base/gdevp14.c]

2010-09-17T05:40:48.428712Z Michael Vrhel

Addition of support to enable persistence of objects tag information through transparency rendering. In the current code base, transparency blending erases all knowledge about the objects that were drawn and blended, setting the entire object to image type. With this commit, the tag information is retained through blending by doing a bit-wise or of the tag values. When a device supports tags, the pdf14 device will create an additional plane to maintain the tag data information. Blending of the tag information occurs in pdf14_mark_fill_rectangle, pdf14_mark_fill_rectangle_ko_simple and pdf14_compose_group. A new device procedure called put_image is added. This is called by the pdf14_put_image operation, which enables the communication of the tag information to the target device. pdf14_put_image will first attempt to pass the alpha channel and the image data not scaled by the alpha channel and the tag data to the target device. The planar offset location of the alpha and tag data is communicated in the put_image procedure interface. If the target device cannot handle this form of the data, it should return 0. The pdf14_put_image operation will then blend the alpha data and attempt the put_image again but this time with an alpha offset of 0 to indicate that there is no alpha data. Note that the alpha data remains valid for those devices that still want the alpha but also want to have the graphics library do a premultiplcation of the alpha with the data. Details of this interface will be added to the documentation. In addition, the bitrgbtags device is being updated to demonstrate the use of the put_image procedure.

[base/gdevp14.c base/gxdevcli.h base/gxclist.c base/gdevp14.h base/gdevbbox.c cups/gdevcups.c base/gsovrc.c base/gxblend.c base/gxblend1.c base/gdevprn.c base/gsutil.c base/gxblend.h]

2010-09-16T14:57:06.777148Z Alex Cherepanov

Fix a problem introduced by the rev. 11497 that broke ps2pdf*.bat scripts when they receive optional arguments. The bug results from interaction between "shift" and %~dp0 that is used after the "shift".

[lib/ps2pdf.bat lib/ps2pdf12.bat lib/ps2pdf13.bat lib/ps2pdf14.bat]

2010-09-16T11:09:31.082242Z Robin Watts

Another partial fix for Bug 690993. The sole remaining Valgrind warning is that memcpy is called on overlapping src/dst blocks in cmd_read_data. Investigation supports this, and suggests that we should be using memmove instead. This does stop the error, and leaves us valgrind warning free. This also appears to resolve the indeterminism, in that repeated runs of the command line given in the bug return identical results. The bug remains open though, as there is still a mismatch between banded and non-banded mode. No expected differences.

[base/gxclrast.c]

2010-09-16T11:05:47.689000Z Robin Watts

Partial 'fix' for Bug 690993. When encoding a bitmap into a clist, we copy it into a block with potentially larger padding requirements. These extra padding bytes were left undefined, causing subsequent attempts to compress the bitmap to cause valgrind to give warnings. The fix is simply to introduce and use a new function that copies a bitmap and zeros the padding. This should eliminate the warnings, produce better compression, and (more importantly) mean that every run uses the same amount of memory, hence eliminating potential odd effects where clists may be of different lengths on different runs. This still leaves bug 690993 open. No expected differences.

[base/gsbitops.c base/gsbitops.h base/gxclbits.c]

2010-09-15T08:15:52.075230Z Ken Sharp

Fix (ps2write) : Bug #689419 "Text missing if nested BT with opdfread.ps" Type 3 fonts which select another font and then draw text from it (a common feature of Quark Xpress) can result in nested 'BT' operators when processed by ps2write. The opdfread prologue does not cater for this, specifically the TextMatrix is not saved and restored around a BT/ET pair. If the text matrix is altered by the font selection, then the 'ET' will not restore the old matrix leading to incorrectly sized or disappearing text. The patch (supplied by SaGS) saves the TextMatrix in a stack (stored in an array) and restores the matrix after an ET, in case it is nested. Currently this allows for nesting up to 20 deep, which should be more than adequate. Note that if we were to encounter a nested BT with no ET this would still fail, but in this case the file produced by ps2write would be invalid, and the missing ET should be fixed. No differences expected, the regression suite doesn't test ps2write.

[Resource/Init/opdfread.ps]

2010-09-14T12:58:09.089527Z Ken Sharp

Fix (pdfwrite) : Don't colour convert SMask images Bug #690612 "PDF sRGB conversion loses images" The handling of SMask images in pdfwrite is a bit convoluted. These are handled by converting initially to a DevicePixel colour space, then detecting that later and replacing with a DeviceGray space. However, after doing so, if ColorConversionStrategy was set, the space (and image samples) would be converted to another colour space. This is not legal for SMask images. This code simply checks to see if the image is an SMask before setting colour conversion and doesn't convert the colour space/samples if it is and SMask. No expected differences.

[base/gdevpdfi.c]

2010-09-14T09:07:06.998296Z Ken Sharp

Fix a compiler warning.

[base/gdevpdfo.c]

2010-09-14T08:06:03.949247Z Ken Sharp

pdfwrite enhancement : performance improvement with type 3 fonts Bug #690575 "PS to PDF Conversion extremely slow (possibly endless)" The type 3 font code assembles CharProcs for type 3 fonts by writing them individually into a 'cos_stream'. Each time a new one is completed it is compared to all the existing CharProcs to see if it is a duplicate. This was done by fseek/fread/memcmp operations. As the number of CharProcs increases, the time spent seeking, reading and comparing the data increases dramatically and performance becomes very poor. Not only that, but the test is actually done twice for each new CharProc. This patch tackles the problem by creating an md5 hash of the data written to a cos_write_stream (a subclassed cos_stream) as it is written. The cos_stream 'equal' routine checks to see if the md5 hash is valid and if it is then compares the hashes. If the md5 hash is not valid (ie not a cos_write_stream) then it uses the old seek/read/compare mechanism. This will improve the performance of any stored data if it is stored using a cos_write_stream and compared against other data of the same type. (I don't believe we do this anywhere else currently, but I'm not suer) This does improve the performance significantly, and the code no longer spends most of its time waiting for I/O operations to complete. It is still slow, but this is the result of using lots of type 3 fonts. Because of the way these must be processed in order to capture the outlines they are never going to be fast. In my test this runs 2-3 times faster than before. There should be no differences in output from the old code.

[base/gdevpdfo.c base/gdevpdfo.h]

2010-09-14T07:49:11.816447Z Chris Liddell

Bump version number to 9.01 and associated changes.

[base/gscdef.c base/version.mak Resource/Init/gs_init.ps]

## Version 9.00 (2010-09-14)

This is the first release in the stable 9.x series.

This release includes a move to an ICC-based color rendering workflow. The design allows easy integration of 3rd party color management modules (CMMs) and management of DeviceN and spot source colors with ICC profiles as well as with non-ICC proprietary methods. The default CMM is the well known littleCMS. Postscript color objects and non-ICC CIE-based PDF color spaces are converted to equivalent ICC profiles enabling complete color management for all color spaces by an ICC-based CMM. New command line options enable the specification of gray, rgb and cmyk default ICC profiles as well as output device ICC profiles. The new work flow provides performance improvements in the rendering of images, shadings and transparencies. In addition, the color conversions are designed to work efficiently in multithreaded display list (c-list) rendering through the use of a shared link cache. Finally, proper ICC based rendering now occurs for ALL XPS objects including Named colors, N-Channel colors and images with internally embedded ICC profiles.

The second major change in this release is that glyph rendering for all font types except Type 3 is now handled by Freetype (via a much improved and enhanced Font API). The most obvious benefit of this is a complete, and proven implementation of the TrueType byte code interpreter (now unencumbered by patents).

Another major change is that the Postscript interpreter's graphics state now stores two separate colour space settings for stroking and filling, to better support the stroke and fill colours required by the PDF interpreter.

Finally, support for optional content has been added to the PDF interpreter.

This release also includes a number of improvements to the pdfwrite device to improve reliability and quality with PCL and XPS input. Many improvements to the support of JPX images in PDF files, PDF annotation rendering and the usual number of general bug and robustness fixes.

For security reasons, Ghostscript no longer searches the current directory by default. Use -P option to revert to old behavior.

For a list of open issues, or to report problems with this release, please visit bugs.ghostscript.com.

### Incompatible changes

No recorded incompatible changes.

### Changelog

2010-09-13T15:09:40.310889Z Chris Liddell

Commit the missing header changes from the previous checkin.

[psi/ifapi.h]

2010-09-13T14:53:46.788657Z Chris Liddell

Another revision of the FAPI code. Due to a problem in Freetype which needs further investigation, we cannot produce an outline, then decide to produce a bitmap if it is small enough. We work around this by producing a bitmap, and if it is too large, dispose of it, and retry with an outline, thus although we still risk larger than ideal memory use, it is very short lived. A glyph too large to be cached (for which we will now usually use an outline) does not suffer from the Freetype issue mentioned above. The maximum allowable bit for Freetype to produce is now 1.5 x the maximum cache bitmap as set in the Postscript state - it is set larger than the cache bitmap since it is *vital* that if GS expects a bitmap to be cache we supply a bitmap. Given that the bounding boxes arrived at the GS cache device and the Freetype rendering code arrived at slightly differently, there would be the chance of edge cases where FAPI would produce an outline, when the cache expects a bitmap. Allowing FAPI plenty of leeway avoids that. The calculation to convert a quadratic to a cubic spline in the Freetype interface code was slightly wrong. Also, FAPI now sets the fill adjust to 0 for filling outline glyph, instead of inhereting the value from the originating graphics state, which gives *much* more consistent output between the bitmap and outline cases, and addresses the slightly excessive boldness observed for outline glyphs since the adoption of Freetype/FAPI as the default font scaler/renderer. Finally, support for the existing Ghostscrit text anti-aliasing capability is improved. Bug 691604

[psi/fapi_ft.c psi/zfapi.c psi/fapiufst.c psi/fapibstm.c]

2010-09-13T10:25:34.372202Z Chris Liddell

Revert revisions 11690 and later from the FAPI code (and revert version no. to 9.00) to get a "good" base version, in preparation for a corrected version of the changes in 11690 (and subsequent changes in the FAPI code).

[psi/fapi_ft.c psi/zfapi.c base/version.mak Resource/Init/gs_init.ps psi/ifapi.h psi/fapiufst.c psi/fapibstm.c]

2010-09-09T13:51:48.502020Z Alex Cherepanov

Fix a case where /Width attribute was not checked for null. Bug 691602, customer 700.

[Resource/Init/pdf_font.ps]

2010-09-09T07:26:52.042155Z Chris Liddell

Fix broken version number in gs_init.ps in trunk

[Resource/Init/gs_init.ps]

2010-09-09T06:26:54.427296Z Chris Liddell

Add a couple of ".0"s to ensure we get floating point division to arrive at intermediate values for the conic to cubic spline conversion.

[psi/fapi_ft.c]

2010-09-09T03:45:12.738999Z Michael Vrhel

Fix for compiler complaint from commit of rev 11700

[base/gdevpdfb.c base/devs.mak]

2010-09-08T23:20:36.969829Z Michael Vrhel

Fix to enable proper mask filling with patterns that have transparency. Major change is in gdevp14.c where begin_type_image and mask_fill procedures now will (if we are filling with a pattern that has transparency) push a transparency group. When we are finished processing the image, the group is popped which enables proper blending. There remains an issue with a special file that Ken created when it is run in c-list mode. A new bug will be opened for this issue. Thanks to Ray for helping with this project and finding a bounding box issue in the creation of the transparency group during c-list reading.

[base/gdevp14.c base/gxclimag.c base/gsptype1.c base/lib.mak base/gxpcmap.c base/gdevpdfb.c base/gsptype1.h base/gstrans.c base/gxpcolor.h base/gxblend1.c base/gxp1fill.c base/gxp1impl.h base/gdevpdfi.c]

2010-09-08T16:22:42.112334Z Ken Sharp

Fix (pdfwrite) : incorrect pattern matrix calculation Bug #690504 "ps2write does not work with asymmetric resolutions, like 600x1200dpi " The problem was caused by frankly totally incorrect calculations when generating the /Matrix for a pattern. Because we always see the CTM including the resolution scaling but need to output a matrix with this removed, we scale the CTM by the inverse of the resolution scaling. But the calculation simply divided the CTM through by the scale factors, which is totally incorrect and fails badly if the matrix involves rotation. The code now correctly creates and multiplies a scale matrix. Note, the order of multiplication is important here. No differences expected.

[base/gdevpdfv.c]

2010-09-08T08:30:15.885002Z Chris Liddell

Slight refinement in the how the FAPI character generation detects we are producing anti-aliased glyphs. Also, it seems that when assigning variable value to a second, larger data type, whilst gcc promotes the data type before the assignment, MSVC promotes the variable later, so shifting a 32 bit integer up during an assignment to a 64 bit integer variable works find on gcc, but MSVC loses the most significant bits. So we need to force the promotion to happen with a cast. Bug 691588

[psi/fapi_ft.c psi/zfapi.c]

2010-09-07T16:51:36.404533Z Chris Liddell

Add a further header to ifapi.h required for Unix/Linux builds, and add the two additional headers to ifapi.h's dependencies.

[psi/ifapi.h psi/int.mak]

2010-09-07T16:26:46.989782Z Chris Liddell

Pull in gp.h in ifapi.h for the int64_t type - it seems to be required on Windows.

[psi/ifapi.h]

2010-09-07T15:32:17.143998Z Chris Liddell

Some fairly substantial changes to the FAPI code to get very high resolutions and anti-aliased text working reliably. For AA text, we now make *sure* to produce outlines for non-cached glyphs, thus the GS path code can anti-alias correctly (for cached glyphs, the "show" machinery does the anti-aliasing from the cache bitmap). The high res problems were highlighted by the bbox device (which runs at 4000 dpi). To resolve these the width and height parameters for Freetype had to have value overflow compensation added, to match the existing underflow compensation. FAPI/Freetype also now will only create a glyph bitmap if the bitmap size is smaller than the allowable glyph cache bitmap. It may still produce a bitmap for a non-cached glyph, if the cache is full, but the individual glyph bitmap is not larger than the allowable glyph item - this is allow for better consistency when we're near the limit of the total cache size. Finally, the FAPI outline retrieval code now requires 32.32 fixed point variables (rather than the previous 16.16), which prevents overflow, and improves accuracy. If also provides us with the opportunity to check for overflow/underflow of the GS internal fixed point variables, before calling the GS path code. There are quite a few cluster changes. I have checked them all, and one is a progression (missing glyphs now render) and the rest are the pixel level differences expected by having GS render a path, rather than Freetype - most are due to Freetype grid fitting to the glyph bitmap, and GS grid fitting to the page raster. Bug 691592 - bbox issue Bug 691588 - anti-aliasing

[psi/fapi_ft.c psi/zfapi.c psi/ifapi.h psi/fapiufst.c psi/fapibstm.c]

2010-09-06T10:14:25.582663Z Ken Sharp

Fix (pdfwrite) : string not being re-encoded Bug #690441 " Files render properly with gs, but are misformatted by ps2pdf" A Coverity fix in revision 9072 prevented a crash, but also circumvented code that was essential to run under some conditions. (This is described by comments in the code as a 'trick'). The routine created a text string with the encoded text for a font with a custom encoding derived from a CIDFont with an unusual CMap. In order to avoid the potential crash, but still re-encode the string, which is essential, the relevant portion of the code has been copied and is exercised instead of executing 'pdf_reserve_char_code_in_pdfont()'. This produces the reencoded string we need, but if the encoding fails, where we would have caused a crash by dereferencing a NULL pointer, we instead return an error. No differences expected, we obviously don't have a test case in the regression suite.

[base/gdevpdtt.c]

2010-09-03T15:49:54.010009Z Ray Johnston

Fix for hang condition in the stream logic for the luratech JPXDecode. We need to return EOFC with the final bit of data. Found with PDF 1.7 FTS.

[base/sjpx_luratech.c]

2010-09-03T08:31:32.767708Z Chris Liddell

A Type 0 font dictionary in a PDF which contained a spurious FontDescriptor object confused the interpreter, which resulted in creating a Font resource directly, rather than instantiating the DescendantFonts for the Type 0. We'll now remove the spurious entry from the Type 0 dictionary, to prevent any on-going confusion. No cluster differences expected. Bug 691589

[Resource/Init/pdf_font.ps]

2010-09-03T07:21:06.059509Z Ken Sharp

typo, misplaced quote in revision 11684

[lib/lpgs.bat]

2010-09-03T07:19:33.619992Z Ken Sharp

Typo, misplaced quote in revision 11684

[lib/pdfopt.bat]

2010-09-03T06:52:44.087509Z Ken Sharp

More Windows batch file madness. Guard all path expansion with quotes, since the Windows command shell processor is too stupid to do so, even when expanding variables/arguments itself. Add a trailing separator to the %TEMP% variable before specifying the filename, as apparently some setups don't get a trailing separator by default. A paired separator (ie \\) doesn't seem to cause a problem so this ought to be safe even if the setup does have a trailing separator.

[lib/pf2afm.bat lib/gsdj500.bat lib/ps2ascii.bat lib/ps2pdfxx.bat lib/lpr2.bat lib/gsndt.bat lib/gstt.bat lib/eps2eps.bat lib/pdf2dsc.bat lib/gsbj.bat lib/ps2epsi.bat lib/gsdj.bat lib/dumphint.bat lib/ps2ps2.bat lib/gsnd.bat lib/font2c.bat lib/pdfopt.bat lib/gst.bat lib/pdf2ps.bat lib/ps2pdf.bat lib/gslj.bat lib/bdftops.bat lib/pfbtopfa.bat lib/ps2pdf12.bat lib/ps2pdf13.bat lib/ps2pdf14.bat lib/lpgs.bat lib/gslp.bat lib/ps2ps.bat lib/pftogsf.bat]

2010-09-02T15:57:50.419060Z Ken Sharp

Remove a couple of duplicated font names form the embedding white list, and reduce the list length #define appropriately.

[base/whitelst.c]

2010-09-02T14:15:39.116953Z Ken Sharp

Include the header file purely to get the prototype for the function, otherwise gcc complains.

[base/whitelst.c]

2010-09-02T13:50:13.043694Z Ken Sharp

pdfwrite enhancement The addition of code to test and honour the 'embedding flags' in TrueType fonts has led to problems because PostScript producers are embedding type 42 fonts in the PostScript which are non-embeddable and worse use a custom non-reversible encoding, so that the resulting PDF file has garbage text when a normally encoded font is used as a replacement. It seems that Adobe has published a 'white list' of fonts which have been granted at least some embeddable rights. It isn't obvious if these are fonts which were type 1 (and therefore could be converted to TrueType and get incorrect embedding rights) or if the fonts were originally released as TrueType with the wrong embedding rights. In any event, this list has now been added to pdfwrite; if a font is encountered which has restricted embedding, then its name will be checked against this list, if it is found in the list then it will be considered as embeddable. We have already encountered one font on this list which has a slightly different name to the original (a space was removed) so spaces in the font names are ignored. This list will have to change over time, and we may find other examples of characters which we want to handle specially (eg oumlaut treated as o and e) No differences expected as this is not tested in the current regression suite.

[base/whitelst.c base/gdevpdtf.c base/devs.mak base/whitelst.h]

2010-09-01T18:47:52.658366Z Chris Liddell

Update the release notes, dates etc for a second 9.00 release candidate

[doc/History7.htm doc/Projects.htm doc/History8.htm doc/History9.htm man/dvipdf.1 man/ps2ascii.1 doc/Use.htm doc/Readme.htm doc/Source.htm doc/Deprecated.htm man/ps2epsi.1 doc/Install.htm doc/API.htm doc/Issues.htm doc/DLL.htm doc/Drivers.htm man/pfbtopfa.1 doc/Release.htm doc/Commprod.htm doc/Xfonts.htm doc/Devices.htm doc/Language.htm man/gs.1 man/pf2afm.1 doc/Ps2ps2.htm doc/Fonts.htm man/printafm.1 doc/Ps2pdf.htm doc/Develop.htm doc/Helpers.htm man/pdf2dsc.1 doc/Psfiles.htm doc/Lib.htm doc/gs-vms.hlp man/font2c.1 man/gsnd.1 base/version.mak man/pdfopt.1 man/pdf2ps.1 man/ps2pdf.1 doc/Make.htm doc/Details8.htm doc/Details9.htm doc/Unix-lpr.htm doc/C-style.htm doc/Ps-style.htm doc/History1.htm doc/History2.htm man/gslp.1 man/wftopfa.1 doc/History3.htm man/ps2ps.1 doc/Ps2epsi.htm doc/History4.htm man/ps2pdfwr.1 doc/History5.htm doc/History6.htm]

2010-09-01T17:49:18.515475Z Chris Liddell

Update the release notes for the second 9.00 release candidate.

[doc/History9.htm doc/News.htm doc/Details9.htm doc/Details.htm]

2010-09-01T13:59:34.488373Z Ken Sharp

Silence some compiler warnings. Altered a static function to 'void' from 'int' as it returns no values and the callers don't test any putative return value. #ifdef a boolean declaration, as the code which uses it has been #ifdef'ed Add some parameters to two functions, so that they match the prototypes, the parameters are not used in these functions.

[base/gdevpdfk.c base/gdevpdfc.c]

2010-09-01T06:08:51.456140Z Michael Vrhel

Fix to avoid issues with subtractive monochrome devices when we have transparency. The gray device pdf14 prototype is used in this case. VERY limited testing indicates that this fixes a crash with the cups device with its default settings and gives proper rendering. More complete testing is required to ensure that proper blending is being performed and to investigate the other process color models that the cups device supports (e.g. cmy).

[base/gdevp14.c]

2010-08-31T23:21:15.562664Z Michael Vrhel

Revert back to having pdfwrite handle what to do with PS color spaces instead of using the V4 profile that gsicc_create generates. Also, fix a few issues that existed with pdfwrites handling of those spaces, in particular adjustments are made for non D50 white points. D50 is the required white point for the ICC profile. About 189 pdfwrite test files will report differences. I went through them with bmpcmp. Since the profiles that were generated differ between gsicc_create and pdfwrite minor color differences exist. In addition, there were some regressions that existed, which this revision will fix.

[psi/zcolor.c base/gdevpdfk.c psi/zimage.c base/gdevpdfc.c base/gsciemap.c]

2010-08-31T15:34:27.935572Z Ken Sharp

Fix (pdfwrite) : linewidth corruption when Tr is 1 Bug #690436 " (regression) re-distilling pdf causes R graphics to go block-single-color." The problem was cause din the pdfwrite-specific text rendering routines. When the text render mode is 1 (stroke), the linewidth is adjusted by the current text matrix. However the routine to do this is called each time any element of the text 'graphics state' changes. So if multiple calls to (eg) Td were made, the linewidth would be altered even though there had been no change in 'w'. Fixed by getting the current linewidth before the text rendering routine, and setting it back to this value after the text rendering routine. No expected differences. However z400454b01d4-1.pdf seems to exhibit some minor differences which I am unable to reproduce locally. They are so minor that bmpcmp ignores them, and on my tests the PDF files are identical bar the date/time stamps and other metadata. I don't believe this is a real difference.

[Resource/Init/pdf_ops.ps]

2010-08-28T22:04:55.196791Z Alex Cherepanov

Implement rendering of /Highlight annotation. Acrobat always uses transparency and ignores appearance streams. Bug 691572, customer 532. Progressions or minor differences (when the annotation has an appearance stream) are observed in annots.pdf, CATX1385.pdf, CATX6166.pdf, CATX6508.pdf, CATX7659.pdf, CATX8255.pdf, IA3Z4030.pdf, fts_32_3225.pdf

[Resource/Init/pdf_main.ps Resource/Init/pdf_draw.ps]

2010-08-27T13:54:14.847396Z Ken Sharp

Fix (pdfwrite) : faulty matrix transformations for Pattern dictionaries Bug #690398 "Geometric issue with pattern" The problem is the definition of the default co-ordinate space. When a Pattern is at the page level or drawn inside a form, we need to remove our 0.1 scaling in order to return to the 'default co-ordinate space'. However, when painted on a form nested inside a form, the default co-ordinate space is the parent form, so we don't need to undo the scaling. This is the same problem addressed for shading dictionaries in revision 11347.

[base/gdevpdfv.c]

2010-08-27T12:10:54.938774Z Ken Sharp

Fix (pdfwrite) : FormDepth not tracked properly. Part of the fix for Bug#690398. In order to know whether a pattern matrix should be converted to the top level CTM, or to an enclosing Form CTM, we track the Form Depth by noting when transparency groups begin and end (currently this is the only way to get a form output by pdfwrite). There was a problem with mask groups, because although pdf_begin_transparency_mask calls pdf_begin_transparency_group, pdf_end_transparency_mask doe snot call pdf_end_transparency_group. This resulted in the depth being incremented at the start of the mask, but not decremented at the end, so patterns could be emitted at the page level but with the CTM for a Form level, leading to missing content. Fixed by decrementing the FormDepth appropriately.

[base/gdevpdft.c]

2010-08-27T12:02:46.764612Z regression

Added the ability to specify which regression test files will only be run during nightly regression testing (i.e. not for commit regression tests). To skip files add them, one per line, to the nightly_only.lst file in the corresponding directory (creating this file if none exists). See tests_private/customer_tests/nightly_only.lst for an example.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/readlog.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl toolbin/localcluster/compare.pl]

2010-08-26T23:34:28.641761Z Alex Cherepanov

Implement rendering of /Squiggly annotation without an appearance stream. Bug 691572, customer 532.

[Resource/Init/pdf_draw.ps]

2010-08-26T15:49:51.752958Z Ken Sharp

Remove an unused local variable (gcc compiler warning) No differences expected

[base/gdevpdf.c]

2010-08-24T21:37:29.611143Z Chris Liddell

Merge a couple of corrections from the 9.00 tag.

[doc doc/History9.htm doc/News.htm doc/Details9.htm]

2010-08-24T20:31:40.602213Z Chris Liddell

Merge doc changes from 9.00 and bump version number to 9.01

[doc/Projects.htm man/dvipdf.1 man/ps2ascii.1 doc/Use.htm man/ps2epsi.1 doc/DLL.htm doc/Drivers.htm doc/Release.htm man/gs.1 doc/Ps2pdf.htm man/printafm.1 psi/psromfs.mak psi/dxmain.c toolbin/tests/check_dirs.py doc/Helpers.htm psi/dxmainc.c man/gsnd.1 man/pdfopt.1 base/version.mak Resource/Init/gs_init.ps man/ps2pdf.1 man/pdf2ps.1 doc/News.htm doc/Details8.htm doc/Make.htm doc/Unix-lpr.htm doc/Details9.htm doc/History1.htm doc/History2.htm man/wftopfa.1 doc/History3.htm doc/History4.htm doc/Details.htm man/ps2ps.1 doc/History5.htm doc/History6.htm doc/History7.htm doc/History8.htm doc/History9.htm doc/Readme.htm doc/Source.htm doc/Deprecated.htm /trunk/gs doc/Install.htm doc/Changes.htm doc/API.htm doc/Issues.htm man/pfbtopfa.1 doc/Commprod.htm doc/Xfonts.htm doc/Devices.htm doc/Language.htm psi/dmmain.c doc/Fonts.htm doc/Ps2ps2.htm man/pf2afm.1 doc/Develop.htm man/pdf2dsc.1 psi/dmmain.r doc/Psfiles.htm doc/Lib.htm doc/gs-vms.hlp man/font2c.1 doc/C-style.htm doc/Ps-style.htm man/gslp.1 doc/Ps2epsi.htm man/ps2pdfwr.1]

2010-08-24T13:46:29.931715Z Ken Sharp

Enhancement - Font copying (pdfwrite) Bug #691573 " invalidfont in xshow". The file does in fact contain an invalidfont, the type 42 embedded fonts are defined by adding /.notdef to the CharStrings dictionary as if it were the Encoding array. The key /.notdef is added 256 times with values ranging from 0 to 255. Of course only the last one is actually defined. This means that when we come to copy the /.notdef glyph for our font copy, the type 42 GID is 255. However the font does not contain a glyph with GID 255, so the copy of the font fails. Although this is an illegal font, Adobe Acrobat Distiller does produce a PDF file from it. In order to duplicate this, code has been added when copying a font. If we fail to copy a glyph, and the glyph is /.notdef and the GID is non-zero, we try to copy a glyph with GID 0 instead. If that fails we error out, otherwise we use the glyph with GID 0. (TrueType font /.notdef glyph has GID 0) This works for the supplied file but is not, of course, a guaranteed solution since another badly formed font may not contain a glyph with GID 0. No Expected Differences

[base/gxfcopy.c]

2010-08-24T12:29:59.958275Z Chris Liddell

In preparation for the release, add my username to real name mapping in AUTHORS, add an initially empty History9.htm, and update News.htm to point to it.

[doc/History9.htm doc/News.htm doc/AUTHORS]

2010-08-23T16:49:47.032287Z Ken Sharp

Fix (pdfwrite) : errors in XMP metadata parsing Bug #691562 "ERROR -15 closing pdfwrite device". This use of a DOCINFO pdfmark exposed 3 separate bugs in pdfwrite's handling of XMP metadata. 1) Decoding an escaped PostScript string. Unescaped characters and octal escapes worked correctly, but non-octal escapes moved the index into the string one place too many. 2) The escape '\b' (backspace) wasn't handled and returned incorrect data. Although not tested by this issue, the form feed (\f) also wasn't handled. 3) When converting UTF16 data to UTF-8, the end of the destination (UTF-8) buffer was calculated incorrectly, causing a spurious buffer overrun error. The code now handles the missing escapes, does not advance the character position after decoding a non-octal escape and correctly defines the end of buffer. After this the Title string displays the same in Acrobat as the same pdfmark sent through Adobe Distiller. No expected differences as this only affects the document metadata.

[base/gdevpdfe.c]

2010-08-21T08:03:46.086781Z Lars Uebernickel

Remove unnecessary version checks for libtiff in configure.ac. Since the local copy is preferred over the system's (see r11635), comparing the version of the two libraries is unnecessary.

[base/configure.ac]

2010-08-20T16:07:22.239869Z Chris Liddell

When we produce a glyph uncached, and it's to be filled with a pattern colour space *and* there is PDF transparency involved force FAPI to (try to) produce an outline (for lower level code to use as a clip) instead of a bitmap (to use as a mask). This does produce some pixel level differences in a few cluster files, but improves a load of PDF 1.7 FTS jobs. Bug 691550

[psi/zfapi.c]

2010-08-19T04:01:05.188148Z henrys

Fix bug #691564. The assignment of the target device did not use the proper reference counting assignment procedure resulting in a lost reference to the target device.

[base/gxpcmap.c]

2010-08-17T14:31:58.354019Z Alex Cherepanov

Skip opacity and unknown components during reading of JPX image data. This improves image quality (compared to the previous state that interpreted an opacity channel as yet another data sample) and serves as a transition to full support of opacity in JPX images. Bug 691489, customer 532.

[base/sjpx.h psi/zfjpx.c base/sjpx.c]

2010-08-17T01:22:18.729560Z Alex Cherepanov

Don't include opacity channels in the number-of-components count. Recognize general ICC profile (type 3) and construct a corresponding ICC-based color space. Bug 691470, customer 532.

[Resource/Init/pdf_draw.ps]

2010-08-15T09:49:03.044306Z Chris Liddell

Ensure we only check the compatibility of the system libtiff if we're actually going to use it. No cluster differences expected. Bug 691548

[base/configure.ac]

2010-08-15T09:42:21.565047Z Chris Liddell

The "shortcut" for rendering masks use by the FAPI code for uncached glyph bitmaps (gx_image_fill_masked) is only safe, in the general case when drawing "plain" colours to the output. For complex colour spaces (like patterns) we must use the "long hand" version. This causes minor pixel level differences in some cluster tests (due to rounding differences), and some (very small) progressions: there are differences in about 20 cluster jobs. Bug 691549.

[psi/zfapi.c]

2010-08-14T21:10:29.198491Z Alex Cherepanov

Fix a memory corruption problem introduced by the rev. 11588 on some systems. Free the string returned by systempapername() but don't free the static string returned by defaultpapername() . Bug 691557.

[base/gp_upapr.c]

2010-08-13T19:46:28.340691Z Ken Sharp

Fix (pdfwrite( : Invalid compression filter emitted. Bug #691556 "Images compressed with the RunLengthDecode filter are invalid" A typo in gdevpdfx.h caused the /Filter entry of an image dictionary to be written with a trailing comma if the filter was RunLength. No differences expected

[base/gdevpdfx.h]

2010-08-12T18:14:30.164084Z Till Kamppeter

pstoraster: Removed unneeded "-dDEBUG" from Ghostscript command line.

[cups/pstoraster.in]

2010-08-12T18:10:47.335830Z Till Kamppeter

CUPS Raster output device: Do verbose degug logging only if compiled in debug mode. Bug 690581.

[cups/gdevcups.c]

2010-08-12T06:39:08.575092Z regression

Added support for regression testing of the cups device.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl]

2010-08-12T02:55:40.283339Z Michael Vrhel

Fix to handle case where the profiledir is NOT set AND there is a change in the process color model for the device AFTER a profile had already been set.

[base/gsicc_manage.c]

2010-08-12T01:42:17.270497Z Alex Cherepanov

Implement variable text rendering for widget annotations. Bug 691536, customer 532.

[Resource/Init/pdf_main.ps Resource/Init/pdf_draw.ps]

2010-08-11T23:31:48.385487Z Michael Vrhel

Fix for indeterminism issue that was introduced with changes in 16bit image handling. Last subpixel element was not getting unpacked properly.

[base/gxi16bit.c]

2010-08-11T23:05:48.288399Z Michael Vrhel

Another compiler complaint fix. Proper cast of device.

[base/gdevpsdi.c]

2010-08-11T21:31:03.877037Z Michael Vrhel

Fix for compiler error due to implicit declaration

[base/gdevpsdi.c base/devs.mak]

2010-08-11T18:54:51.837319Z Michael Vrhel

Fix so that if the device process color model changes the profile is updated accordingly.

[base/gsicc_manage.c]

2010-08-11T16:17:45.421152Z Henry Stiles

Fix bug # 691532. Do not attempt to clone an image that does not exist, each completed page should have an associated image. We'd like to handle this corrupt file with a better fix, for example the absence of an end page segement is clearly a problem with respect to the specification, but Adobe and Artifex have chosen to support other "off spec" streams so more subtle and less obvious error checking is needed. Thanks to Tim Waugh for analysis on this problem.

[jbig2dec/jbig2_page.c]

2010-08-11T15:22:22.427529Z Ken Sharp

Add some words about the ps2write device to the devices documentation.

[doc/Devices.htm]

2010-08-10T16:44:20.491267Z regression

Several minor changes to the cluster regression system, the most signifcant of which are: seg. faults are now reported for every case (previously they were only reported if they were new) skip.lst files are now checked for errors changes to gs/psi now test the pcl/pxl/xps products since changes to Ghostscript can affect the pdfwrite path the tests_private/pdf/PDF_1.7_FTS repository was added

[toolbin/localcluster/clustermonitor.pl toolbin/localcluster/clustermaster.pl toolbin/localcluster/readlog.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl toolbin/localcluster/compare.pl]

2010-08-10T16:20:19.775613Z Michael Vrhel

Commit to move the ICC profile for the device within the device structure. This will make it easier to handle dynamic changes that may occur to the process color model for the device. Also a move of device profiles into non gc memory and removal of any references to profiles to the GC. A few progressions occur with this commit including Bug689918.pdf testpage.pdf.

[base/gxi12bit.c base/gsdevice.c base/gdevpdfk.c base/gxpcmap.c base/gxdevice.h /trunk/ghostpdl/xps/xpsgradient.c base/gdevprn.c base/gdevpsdi.c base/gscsepr.c base/gscpixel.c base/gxcmap.c base/gdevbit.c base/gxclip.c base/gxicolor.c base/gximag3x.c base/gscspace.c base/gsicc.c base/gscdevn.c base/gscolor2.c base/lib.mak base/gxiscale.c base/gsicc_manage.c base/gxcspace.h base/gscicach.c base/gdevnfwd.c base/gxdevcli.h base/gdevp14.c psi/zdevice.c base/gsicc_create.c base/gsicc_cache.c base/gdevp14.h base/gsicc_cache.h base/gxccman.c base/gscms.h base/gxclist.h psi/zusparam.c base/gxshade.c base/gxblend.c base/gsequivc.c base/gsciemap.c]

2010-08-10T09:15:50.312005Z Ken Sharp

Enhancement : pdfwrite performance enhancement for pdfwrite when handling files with large amounts of text. Bug #689859 "Performance comparison versions 7.07 and 8.62 on HP-UX ia64" Alex's analysis shows that pdfwrite was spending a lot of time trying to to see if two type 1 fonts were the same before deciding whether a glyph could be added to a font, or was already present in a font copy. Most of the time was spent extracting and comparing /Subrs. The new code creates a hash (MD5) of both the local and global Subrs (if present) and stores that in the type 1 'data' field in the font (16 bytes). The hashes are created by pdfwrite only as they are required, so there is no performance penalty for rendering. The hash comparison is considerably quicker than the long winded Subrs comparison. For many files the performance difference is minimal but for file containing lots of pages, mostly composed of text, there is a considerable saving. The text files run in about 60% of the time they did before this change.

[base/gxfont1.h base/gxfcopy.c psi/zfont1.c]

2010-08-10T08:13:35.250205Z Chris Liddell

A small revision to the fix for Bug 691326: the glyphs array must have at least one entry. No cluster differences expected. Bug 691343

[Resource/Init/gs_ttf.ps]

2010-08-09T00:41:31.173587Z Ray Johnston

Free the pattern-clist devices that are created (and left for the GC to free) when pattern-clist patterns are used with a device that is using the clist for the page. Those that were allocated during the print_page clist playback would be those that leaked. Since the devices were closed, this could lead to GC referencing objects that were invalid. Related to, but not the final fix to Bug 691527.

[base/gxpcmap.c]

2010-08-09T00:07:27.505245Z Alex Cherepanov

Remove spurious "cvx" operators after .pushextendedgstate and .popextendedgstate . Do .popextendedgstate after checking that "Q" has a correspondingh "q". Bug 691538.

[Resource/Init/pdf_ops.ps]

2010-08-07T15:58:08.066501Z Alex Cherepanov

Implement rendering of Widget annotation border background specified by /BC and /BG entries of the appearance characteristics dictionary /MK. Bug 691524, customer 532.

[Resource/Init/pdf_draw.ps]

2010-08-06T20:21:11.891509Z Ray Johnston

Fix segfault seen with fts_17_1704.pdf when the clist playback of patterns that had been stored as clists were attempted to be read from the clist as bitmaps. This happened when -dMaxPatternBitmap=1000000 was used which is smaller than the default, confusing a HACK that attempted to force the use of the pattern-clist mode. Also remove some #if 0 idle code.

[base/gsptype1.c base/gxpcmap.c base/gxcolor2.h]

2010-08-06T17:22:16.521958Z Chris Liddell

I missed a couple of now unused variables in the previous commit.

[psi/iname.c]

2010-08-06T15:49:21.355481Z Ray Johnston

Add documentation on -dMaxPatternBitmap=# parameter in the 'Improving Performance' section of the Use.htm file. The actual parameter was added in rev 11605.

[doc/Use.htm]

2010-08-06T15:03:00.994141Z Chris Liddell

Prevent doing a gc "unmark" on memory already (potentially) freed. Relates to Bug 691380. I could not reproduce the seg fault as reported, but valgrind reported the write to freed memory in the same place as the reported seg fault.

[psi/iname.c]

2010-08-06T11:15:22.616992Z Ken Sharp

Fix pdfwrite There is a hack in type 3 font creation in pdfwrite which increases the FontMatrix if all the elements are very small, apparently Acrobat is unable to cope with very small FontMatrix entries. However, if all the entries are 0, it ends up running round a loop multiplying by 10 indefinitely. This change simply avoids the loop if all the matrix elements are 0. Naturally this isn't a useful font, its a Quality Logic test file.

[base/gdevpdtt.c]

2010-08-06T11:11:40.511965Z Ken Sharp

Revision 11600 introduced a sever regression with text in XPS files. This revision addresses that by only applying the fix to preserve glyph data when the text operation is TEXT_FROM_SINGLE_GLYPH as this is the only case where the affected union is a glyph not a pointer to a series of glyphs, and is therefore the only case which is affected. Expected Differences: All XPS files with text should again work correctly.

[base/gdevpdte.c]

2010-08-06T08:27:20.529691Z Chris Liddell

Revise some of the FAPI related information.

[doc/Use.htm doc/Make.htm doc/Develop.htm doc/Psfiles.htm]

2010-08-06T05:53:42.503244Z Alex Cherepanov

Implement rendering of standard Stamp and Text annotations. Ghostscript uses different font than Acrobat in Stamp icons and uses the same icon for the Text annotation regardless of the /Name attribute. Bug 691525, customer 532.

[Resource/Init/pdf_draw.ps]

2010-08-06T04:24:59.663647Z Ray Johnston

Add a new paramter MaxPatternBitmap with a default value of 8Mb. Formerly the pattern_clist mode would be used when the bitmap size exceeded 1Mb and prior to rev 11___ this calculation was flawed and could allow pattern bitmaps as large as 64Mb to avoid the pattern_clist mode. While the clist based pattern tiling is slow, setting the threshold to 8Mb should be rare enough to minimize performance impact. Bug 691512.

[base/gsdevice.c base/gdevp14.c base/gxdevcli.h base/gsdparam.c base/gxpcmap.c base/gxdevice.h base/gdevbit.c]

2010-08-05T23:26:12.261846Z Till Kamppeter

CUPS Raster output device: Segmentation fault on mid-job changes of the color depth. This patch prevents the crash by forcing a memory reallocation on color depth changes. The approach principally works but we did not decide yet whether it is the final solution, as Michael Vrhel is still doing major changes in the color handling. Bug 690435.

[cups/gdevcups.c]

2010-08-05T19:16:11.698734Z Ray Johnston

Fix comment about no support for BITS=4

[lib/viewrgb.ps]

2010-08-05T19:14:00.403158Z Ray Johnston

Minor correction to usage string left over from when this was split out from setupgs.

[psi/mkfilelt.cpp]

2010-08-05T17:40:36.908437Z Chris Liddell

The "show" machinery expected that even non-marking text operations (such as stringwidth) would result in a glyph bitmap which could be cached (assuming the glyph would be a candidate for the cache with a normal marking operation, like show). FAPI, however, did not create a glyph bitmap for non-marking operations, thus the cache would receive a valid, but "empty" glyph. This caused Postscript that used stringwidth before a show to sometimes "lose" glyphs, by using the empty cached glyph. FAPI's behaviour now matches the expectations of the show/cache management code. Causes cluster differences in Bug688372.ps, fts_31_3111.pdf, and 14-08.PS, these are all progressions. Bug 691517

[psi/fapi_ft.c psi/zfapi.c]

2010-08-05T15:49:39.430735Z Ken Sharp

Fix (pdfwrite) A piece of data (pointer to glyph data) was stored and passed into a routine 'process_text_modify_width' which expected the glyph data to remain unchanged but modified the text enumerator data. This doesn't work if the glyph data is a pointer to the text enumerator data. NB the text enumerator is saved and restored around the call. Modified so that the calling routine makes a copy of the glyph data before calling 'process_text_modify_width'. This should prevent 13-10.ps from entering an infinite loop.

[base/gdevpdte.c]

2010-08-04T23:15:24.779084Z Robin Watts

Fix for Bug 691504 (gs taking a long time to render a file). Revision 8694 changes code from using a simple cast to an int to using a call to (int)floor. This fixes problems, but costs a factor of 3 in processing time for heavily tiled files. Here we change to using a macro version of floor instead. This removes the function call and NaN handling overheads and returns us to the same kind of performance as we had before. We apply the same change throughout the file (i.e. all the calls to (int)floor, not just the two changed in r8694. There is still scope for optimising this code further, but this closes the regression. No differences seen in local cluster testing.

[base/gxp1fill.c]

2010-08-04T22:59:04.842835Z Alex Cherepanov

Implement rendering of Underline and StrikeOut annotations without appearance streams. Bug 691526, customer 532.

[Resource/Init/pdf_draw.ps]

2010-08-03T12:02:47.197684Z Ken Sharp

Fix : FAPI (no bug number, discovered working on a different problem) Another place where the FAPI code assumes that a text enumerator is a show_enum and casts it as such. While this is true for rendering, it is not the case when capturing glyphs for pdfwrite. Altered the code to test if the enumerator is a show_enum and if not, to get the graphics state from the enumerator 'pis' pointer instead if possible. Signal an error if this is not possible. No differences expected.

[psi/zfapi.c]

2010-08-03T08:02:13.862491Z Ken Sharp

Enhancement : PDF interpreter. Bug #691503 When creating an outline (/OUT pdfmark), especially for the pdfwrite device, check the destination page to see that it lies between FirstPage and LastPage; if it does not, then don't emit it. This is an extension to the existing control which checked that the destination page wasn't greater than the number of pages in the PDF file.

[Resource/Init/pdf_main.ps]

2010-08-03T07:56:50.987568Z Ken Sharp

In the section 'Using Unicode True Type fonts', replace the example CSI array with one whose values are strings, not names. These must be string values.

[doc/Use.htm]

2010-08-02T21:30:29.939498Z Alex Cherepanov

Partly revert rev. 11392 that over-simplified the check for a valid obj line in the PDF file. Use --search-- to reject impossible cases but revert to the old logic to verify the results. Bug 691502.

[Resource/Init/pdf_rbld.ps]

2010-08-02T16:45:00.756282Z Alex Cherepanov

Fix a compiler warning about a missing prototype for free() caused by my previous commit.

[base/lib.mak base/gp_upapr.c]

2010-08-02T13:49:03.975996Z Alex Cherepanov

Fix a memory leak. Free the paper name string allocated amd returned by libpaper.

[base/gp_upapr.c]

2010-08-02T09:20:04.666066Z Ken Sharp

Missing ';' in r11586 replaced. Should build now.

[base/gdevpdfx.h]

2010-08-02T09:06:47.523074Z Ken Sharp

Fix a few minor compiler warnings from gcc. No differences expected.

[base/gdevpdfx.h base/gdevpdf.c]

2010-08-02T06:39:25.229115Z Till Kamppeter

Applied patch to fix "imagen" output device (bug 690561).

[base/gdevimgn.c]

2010-08-01T08:59:15.942136Z Chris Liddell

Remove the now redundant --disable-cairo directives.

[toolbin/localcluster/readme toolbin/localcluster/run.pl]

2010-07-31T16:07:37.431496Z Chris Liddell

Remove the "dead" devcairo device. No cluster differences expected. Bug 690009

[ghostscript.vcproj base/configure.ac base/gdevcairo.c base/devs.mak]

2010-07-31T15:45:39.194094Z Chris Liddell

Reapply r11570 Copying converted samples to the output raster used the byte length of the input raster, rather than the byte length of the converted data. Change to use the correct length. Bug 691494 - credit to SaGS for the patch.

[base/gdevdbit.c]

2010-07-31T15:04:24.124204Z Till Kamppeter

No need to install Resources and iccprofiles if COMPILE_INITS=1 When COMPILE_INITS=1, the mentioned directories are not used and just waste disk space and also confusing. Bug 689253.

[base/unixinst.mak]

2010-07-31T00:37:07.940018Z Ray Johnston

Fix the calculation of the size of the pattern bitmap by correcting the calculation of the effective depth (bits per pixel). PaintType 2 is the uncolored (mask == 1 bit per pixel) mode, PaintType 1 is colored, thus needs the full target device color_info.depth bits per pixel. Bug 691514 detected running the PDF 1.7 FTS for customer 532.

[base/gxpcmap.c]

2010-07-30T23:13:52.534878Z Till Kamppeter

Distinguish the two uses of cdev - one from icc merge, one the from very old lpd code (bug 691463). This causes a warning when building with gcc, msvc, and also DEC CC.

[base/gdevbbox.c]

2010-07-30T21:34:19.596701Z Till Kamppeter

Removed unneeded ";" characters from C code to silence warnings of DEC CC (bug 691463)

[contrib/gdevbjc_.h base/gxpcolor.h base/strmio.h base/gdevrinkj.c base/gdevbit.c base/gdevpdtf.h base/gsovrc.h]

2010-07-30T20:38:48.303275Z Till Kamppeter

configure script: Hide error message when "sed" does not have a "--version" option.

[base/configure.ac]

2010-07-30T20:09:21.607711Z Till Kamppeter

Tips about cross-compiling 64-bit ghostscript on 32-bit windows This procedure is slightly simplier(?) than the cross-compiling instruction which Russell removed with r9807 about a year ago. Note that ARCH_STRUCT_ALIGN_MOD mentioned in Russell's instruction was removed r6773 (in 2006) and note also that all the "genconf" references in r9807 should be "genarch" instead.

[doc/Make.htm]

2010-07-30T17:15:23.787490Z Michael Vrhel

Fix for bug 691488. This commit fixes the issues that we are seeing with the JPEG2000 images in the FTS files EXCEPT for the issues related to SmaskInData. Those images will be addressed in a separate commit and will now be handled in bug 691470. With this commit, support is in place for faster 16 bit image rendering due to the improved ICC support, which lets us avoid the multiple conversions from 16 bit to frac to float to unsigned short to byte which occurred in the old flow. Also, the jasper interface will now, when it encounters a 16 bit or 12 bit image, use the higher bit depth renderer and pass the data along. Previously, we were truncating to 8bits in our jasper interface. These changes have been regression tested and checked with bmpcmp.

[base/gxi12bit.c base/lib.mak base/gxi16bit.c Resource/Init/gs_lev2.ps Resource/Init/gs_res.ps base/sjpx.c Resource/Init/pdf_draw.ps base/gximage.h]

2010-07-30T17:13:46.325084Z Michael Vrhel

Fix for double to float conversion warnings. Bug 691498.

[base/gsicc_create.c]

2010-07-30T17:06:59.251898Z Henry Stiles

rollback to revision 11564, 11565 broke the build

[base/gxi12bit.c base/lib.mak base/gxi16bit.c contrib/gdevbjc_.h base/gdevbbox.c base/gxpcolor.h Resource/Init/gs_res.ps Resource/Init/pdf_draw.ps base/gsovrc.h base/gdevpdtf.h base/gsicc_create.c autogen.sh Resource/Init/gs_lev2.ps base/strmio.h base/configure.ac base/gdevrinkj.c base/sjpx.c base/gdevbit.c base/gximage.h base/gdevdbit.c]

2010-07-30T14:27:07.462183Z Michael Vrhel

Fix for bug 691488. This commit fixes the issues that we are seeing with the JPEG2000 images in the FTS files EXCEPT for the issues related to SmaskInData. Those images will be addressed in a separate commit and will now be handled in bug 691470. With this commit, support is in place for faster 16 bit image rendering due to the improved ICC support, which lets us avoid the multiple conversions from 16 bit to frac to float to unsigned short to byte which occurred in the old flow. Also, the jasper interface will now, when it encounters a 16 bit or 12 bit image, use the higher bit depth renderer and pass the data along. Previously, we were truncating to 8bits in our jasper interface. These changes have been regression tested and checked with bmpcmp.

[base/gxi12bit.c base/lib.mak base/gxi16bit.c Resource/Init/gs_lev2.ps Resource/Init/gs_res.ps base/sjpx.c Resource/Init/pdf_draw.ps base/gximage.h]

2010-07-30T14:08:14.058178Z Chris Liddell

Copying converted samples to the output raster used the byte length of the input raster, rather than the byte length of the converted data. Change to use the correct length. Bug 691494 - credit to SaGS for the patch.

[base/gdevdbit.c]

2010-07-30T13:59:52.334818Z Michael Vrhel

Fix for double to float conversion warnings. Bug 691498

[base/gsicc_create.c]

2010-07-30T11:37:15.489627Z Till Kamppeter

Distinguish the two uses of cdev - one from icc merge, one the from very old lpd code (bug 691463). This causes a warning when building with gcc, msvc, and also DEC CC.

[base/gdevbbox.c]

2010-07-30T11:20:07.130600Z Till Kamppeter

Suppressed error message during ./configure if "sed" does not support "--version" (bug 691463)

[base/configure.ac]

2010-07-30T11:16:17.321612Z Till Kamppeter

Removed unneeded ";" characters from C code to silence warnings of DEC CC (bug 691463)

[contrib/gdevbjc_.h base/gxpcolor.h base/strmio.h base/gdevrinkj.c base/gdevbit.c base/gdevpdtf.h base/gsovrc.h]

2010-07-30T11:12:47.691429Z Till Kamppeter

Removed unneeded quotes in autogen.sh.

[autogen.sh]

2010-07-30T11:10:35.977735Z Till Kamppeter

On Tru64 stdint.h does not exist but the types required by jbig2 are in inttypes.h there (bug 691463).

[base/configure.ac]

2010-07-30T11:03:27.732163Z Till Kamppeter

On Tru64 the integer types are in inttypes.h and not in stdint.h as in VMS Bug 691463, required for jbig2dec.

[base/stdint_.h jbig2dec/os_types.h]

2010-07-30T11:00:25.895059Z Till Kamppeter

Replace "==" bashism by "=" in configure.ac "==" is a bash extension. See bash's manpage recommending "=" for posix compliance (bug 691463). This causes various tests to fail and resulted in the link failure from mis-detecting omni.

[base/configure.ac]

2010-07-30T10:56:44.338677Z Till Kamppeter

'%' in printf() needs to be '%%' Tru64 C issues a warning (bug 691463).

[base/mkromfs.c]

2010-07-30T10:53:30.576036Z Till Kamppeter

Removed duplicate AC_PATH_PROG(pkg-config) check in ./configure. The extra check caused ./configure: !: not found messages on some platforms. Bug 691463.

[base/configure.ac]

2010-07-30T10:14:47.310782Z Till Kamppeter

Update documentation as --enable-dynamics is no longer required for "make so" to work.

[doc/Make.htm]

2010-07-30T10:10:41.906626Z Till Kamppeter

Added some missing initializations in DeviceN This should have been part of the DeviceN change. If left unset, the code path assumes color display and goes down the color display path and eventually segfaults. Bug 690428.

[base/gdevxcmp.c]

2010-07-30T09:56:23.737093Z Till Kamppeter

Fix time-struct related build failure with SunStudio (bug 691453). Apparently many platforms and compilers, including gcc and intel C, require both <sys/time.h> and <time.h>. This patch just adds Sun Pro C to the list of such platforms and compilers.

[base/time_.h]

2010-07-30T09:45:51.500432Z Till Kamppeter

Avoid that the x11 output device can create huge windows which crash the X server. Bug 690444.

[base/gdevxini.c]

2010-07-30T08:58:17.493418Z Till Kamppeter

Assorted fixes for the modularized X11 output device All object files destined for shared libraries needed to be compiled with -fPIC but this is not the case for gsparamx.c, gdevemap.c, and gdevxcmp.c which are required by other parts to be built as standard. This change makes x11 not depend on gsparamx.c and gdevemap.c (and not geeting them included in the shared library X11.so). gsparamx.c is part of psdf and is usually included and available, and gdevemap.c is small enough to be inserted completely where it is used. gdevxcmp.c is addressed by building it with $(GLCCSHARED) and not with $(GLCC). In addition, $(CC_SHARED) is only used for object files, rather than for linking, so DYNAMIC_CFLAGS is more appropiate here than DYNAMIC_LDLAGS. Bug 691510

[base/gdevxxf.c base/Makefile.in base/devs.mak]

2010-07-29T18:28:06.621749Z Ray Johnston

Add a comment recommending -sstdout=%stderr with -sOutputFile=- to prevent PostScript files that print from messing up the output. Bug 691507.

[doc/Use.htm]

2010-07-29T14:29:19.627579Z Robin Watts

Remove unused variable left over from removal of pattern_cache_alt. No expected changes.

[base/gsstate.c]

2010-07-29T14:05:39.594612Z Ken Sharp

Fix (pdfwrite) : try not to write out invalid xref Exposed by bug #691503. There are circumstances under which we create a reference to a /Page object which does not yet exist (creating an outline tree for example). In this case we create a reference to the page, and set its initial offset to the current position in the PDF file. When we later write the real object we update the position to reflect the point in the file where it is actually stored. However, if we don't actually ever write the object (in the case above, because LastPage is set before the destination page), then the object remains pointing to the wrong location in the file. This is then written into the xref table, and this confuses the current version of Ghostscript. The patch creates new pages with an offset of 0 (which is always invalid because the PDF header means the minimum offset for any object is 15). If the page is later created then the offset gets updated. If it is not written, however, we now check in the xref writing code to see if an object has an offset of 0. If it does, then we break the xref table up and do not write an xref entry for the missing object. Ghostscript is happy with this and processes the file. NB the proper fix is to not emit the Outline entry for the page which will not be present in the output, and a patch has been suggested to achieve this. This code has some uses, however, as it may prevent this kind of problem in the future. It also permits objects to be created and never referenced (presumably because they are never used) without leaving invalid entries in the xref, which might be useful. No expected differences.

[base/gdevpdf.c base/gdevpdfu.c]

2010-07-29T13:59:53.090810Z Chris Liddell

Two changes for two primarily pdfwrite problems with FAPI/FT. The first is to only replace whichever of BuildGlyph or BuildChar procedures the original font actually contained, replacing both regardless confused some of "decoding" code elsewhere in GS (op_show_continue_dispatch()) and we ended up receiving a valid glyph to render instead of notdef. In this case we ended up incorrectly stroking a charpath (this was seen with Quark's Type 3 "special effects" font). With rendering output this resulted in a boldening effect on the glyph, in pdfwrite, the result was strange extra lines through the glyph. The second change is to due pdfwrite's use of a unit matrix for some of its work. This resulted in small glyph metrics rounding to zero within Freetype, and pdfwrite thinking a glyph had a width of zero. So make the scale value at which we consider a glyph to be "small" an order of magnitude larger, which gets compensated for in the calculation of Freetype's final matrix. Unfortunately this does cause ~2600 differences in the cluster tests: some are progressions, most are pixel differences due to rounding differences because the scaling numbers have changed in Freetype. Fixes Bug 691383

[psi/fapi_ft.c psi/zfapi.c]

2010-07-28T18:44:46.282683Z Robin Watts

Fix bug #691493. Revert some of the work done for gs_2_colors. I had needlessly attempted to have 2 pattern_cache's, one for stroking colors and one for non-stroking colors. Given that the pattern_cache is indexed by color id number, this is not necessary as all the data can live happily in just one instance. This removes the problem seen in the bug (where it was getting into an infinite loop trying to populate the cache). Local cluster testing shows this produces 57 differences, all (I think) non-determinisms.

[base/gsstate.c base/gxistate.h base/gsistate.c]

2010-07-28T12:37:51.588339Z Till Kamppeter

CUPS Raster output device "cups": Improved support for rendering jobs with high memory demands. Let Ghostscript determine the memory buffer sizes automatically (as it does with all the other output devices) if the environment variable RIP_MAX_CACHE is not set, zero, or does not begin with a number (like "auto"). If RIP_MAX_CACHE defines a valid value, use the actual value for BufferSpace and not 1/10 of it. MaxBitmap is the maximum buffer size to be used when rendering in full page mode, BufferSpace is the buffer size used in banding mode. Banding mode is used if MaxBitmap is too small to hold one page. Bug 691499.

[cups/gdevcups.c]

2010-07-28T09:22:49.016213Z Robin Watts

Add new gp_thread_start, gp_thread_finish abstraction, and deprecate old gs_create_thread function. Adapt multiple rendering thread code to use this new style instead. Hopefully this should solve the problems seen in rare cases when a test thread doesn't get scheduled until after the DLL has exited and the code isn't around any more. No expected differences. This code has been tested with MSVC and on linux with pthreads. While it should work with Borland and Watcom (as all the headers appear consistent) I have not been able to properly test it. Therefore the code is currently configured to fall back to the old code, thus hopefully guaranteeing that this commit won't make the operation under Borland/Watcom any worse than it is now. This fallback is controlled by a single define for each of these systems in gp_wsync.c, so it's easy to test. If users can report success with the new code we can remove the fallback trivially.

[base/gp_wsync.c base/gxclthrd.c base/gp_nsync.c base/gp_psync.c base/gxclthrd.h base/gpsync.h]

2010-07-28T07:36:52.403693Z Ken Sharp

As pointed out by SaGS in Bug #691440, comment 5(C) there was a typo in revision 11498, a '>>' was accidentally dropped form the batch file.

[lib/ps2pdf.bat]

2010-07-27T07:10:03.221027Z Chris Liddell

Add missing free of the new bitmap data.

[psi/zfapi.c]

2010-07-27T07:02:47.392994Z Chris Liddell

Slightly revise comment for why we might need to create a new bitmap in fapi_finish_render_aux() No cluster differences expected.

[psi/zfapi.c]

2010-07-26T08:48:33.786696Z Chris Liddell

A much better solution for Bug 691328. The bitmap data coming from a font scaler/renderer may not have its raster alignment as Ghostscript expects, so in the event that is the case, create a bitmap which is GS compatible in the FAPI layer, before calling any further operations on it. This reverts the previous "hack" from r11362. No cluster differences expected.

[base/gsbitops.c psi/zfapi.c]

2010-07-24T22:57:46.607791Z Alex Cherepanov

Render 3D annotations (using appearance stream) on the printer device even if Print flag (0x4) is not set. This is done following AR8 and AR9 example but contrary to PDF 1.7 spec. Bug 691486, customer 532.

[Resource/Init/pdf_draw.ps]

2010-07-23T20:01:28.232264Z Alex Cherepanov

Make *clean targets remove generated tif*.h files. Bug 691485.

[base/gs.mak]

2010-07-23T19:01:45.196186Z Alex Cherepanov

Remove .dividesfnts procedure, which is not needed by PS interpreter after the introduction and use of string_array_access_proc() way back in revision 176. FreeType doesn't require a particular way to split sfnts either. ps2write includes procedures to create a well formed Type 42 from a TrueType font. The error is caused by .dividesfnts only spliting strings when the split offset is even. The sample file has a *long* run of cases where the split offsets are odd. When an even offset is finally found, the number of buffered bytes exceeds the maximum length of the string causing /rangecheck error. Thanks to Chris Liddell for the analysis of the problem. Bug 691473, customer 532.

[Resource/Init/gs_ttf.ps]

2010-07-23T09:20:28.484085Z Chris Liddell

Commit the correct change for Bug 691427

[base/lib.mak]

2010-07-23T08:22:43.299979Z Chris Liddell

Change the gsicc* targets from using GCFLAGS to CFLAGS. This ensure that the options for building .so objects are correct. Additionally, add the extra dependencies to the sodebug target so it works correctly. No cluster differences expected. Bug 691427

[base/lib.mak base/unix-dll.mak]

2010-07-23T02:57:37.996803Z Alex Cherepanov

Handle the case when, contrary to the spec, default viewing optional content configuration dictionary has /BaseState attribute equal /OFF. Mark all OCGs /OFF and unmark ON UCGs. Bug 691491, customer 532.

[Resource/Init/pdf_main.ps]

2010-07-21T19:26:14.458296Z Michael Vrhel

Fix for bug 691478 Note that string objects that are maintained as user params must be either allocated in non-gc memory or be a constant in the executable. The problem stems from the way userparams are retained during garbage collection in a param_list (collected by currentuserparams). For some reason this param_list does not get the pointers to strings relocated during the GC. Note that the param_dict itself is correctly updated by reloc, it is just the pointers to the strings in the param_list that are not traced and updated. In this particular case, ICCProfilesDir sets a string in the icc_manager. When a reclaim occurs, the string is relocated (when in non-gc memory and when it is noted to the gc with the proper object descriptor). Then if a set_icc_directory occurs, the user params pointer has NOT been updated and validation problems will occur. Fix for this was to make the string not known to the GC and to allocate in non-gc memory. When icc manager is deallocated, the string is also deallocated.

[base/gsicc_manage.c psi/zusparam.c]

2010-07-21T00:03:16.900862Z Michael Vrhel

Fix so that non-isolated transparency groups are rendered correctly. This fixes a rendering issue with fts_25_2524 and with a few in the test suite. A future optimization will be to avoid the extra buffer push if the blend mode is normal, since in that case we can draw directly into the parent buffer.

[base/gdevp14.c]

2010-07-20T09:46:34.095118Z Masaki Ushizaka

Add support for user defined huffman table. This code adds support for segment type 53 segments, which supplies inline huffman code table. Bug 689853. Many thanks to Justin Greer.

[jbig2dec/jbig2_segment.c jbig2dec/jbig2_huffman.c jbig2dec/jbig2_text.c jbig2dec/jbig2_symbol_dict.c jbig2dec/jbig2_huffman.h]

2010-07-20T08:23:05.218485Z Masaki Ushizaka

Catching up to the latest jbig2dec source. This includes following jbig2dec git commits: commit d26c7e4f39f76fe70cc61d6dc14d05a042a9be48 Author: Masaki Ushizaka <masaki@ghostscript.com> Date: Tue Jul 20 08:01:29 2010 +0000 Fix jbig2_image_set_pixel function prototype The declaration of jbig2_image_set_pixel was differenct between jbig2_image.h and jbig2_image.c (int value vs bool value). And prevented compiling it by MSVC comiler in C++ mode. This patch fixes it. Bug #691461. commit c5d61c78c0de785b74b86d4e5298e3cc7b9e2b68 Author: Masaki Ushizaka <masaki@ghostscript.com> Date: Fri Jul 16 09:13:41 2010 +0000 A little fix to allocating memory size commit e12fa07da845515911db8be2f7cfa8ef551061ba Author: Tor Andersson <tor.andersson@gmail.com> Date: Thu Jul 15 00:49:09 2010 +0200 Use the jbig2_new and jbig2_renew macros instead of calling jbig2_alloc and jbig2_realloc directly. Also adds a few typecasts and #defines required to compile the source as C++. commit 31dd7ef66dbd1c34df08365aa3c36e6391617f37 Author: Tor Andersson <tor.andersson@gmail.com> Date: Thu Jul 15 00:42:38 2010 +0200 Update VERSION define in config_win32.h commit 941b73315a166fe07e0f1a1b81171477285280f7 Author: Tor Andersson <tor.andersson@gmail.com> Date: Thu Jul 15 00:41:46 2010 +0200 Add Makefile.unix -- a simple makefile for unix-like systems. commit f6066822041bbffd7169fd4bfc19c48daae8f155 Author: Tor Andersson <tor.andersson@gmail.com> Date: Thu Jul 15 00:35:58 2010 +0200 Fix memory leak of the word stream struct. No visible difference expected.

[jbig2dec/config_win32.h jbig2dec/jbig2.c jbig2dec/jbig2_image_pbm.c jbig2dec/jbig2_metadata.c jbig2dec/jbig2_image.c jbig2dec/jbig2_huffman.c jbig2dec/jbig2_text.c jbig2dec/jbig2_priv.h jbig2dec/jbig2_image.h jbig2dec/jbig2_refinement.c jbig2dec/jbig2dec.c jbig2dec/jbig2_arith_iaid.c jbig2dec/jbig2_halftone.c jbig2dec/Makefile.unix jbig2dec/jbig2_segment.c jbig2dec/jbig2_arith.c jbig2dec/jbig2_symbol_dict.c jbig2dec/jbig2_generic.c jbig2dec/jbig2_page.c]

2010-07-20T05:56:04.938511Z Michael Vrhel

Remove noisy warnings if embedded icc profile is not valid. In those cases, we use the default and move on.

[psi/zicc.c]

2010-07-19T21:22:35.957060Z Michael Vrhel

Fix for Bug691474. Source of error was due to icc hash code being read from clist after the transfer function. It should have been read prior to the transfer function. This was the first file we have seen that had a soft mask with a transfer function. Also fix for rendering of this file. The softmasks only uses the alpha channel as opposed to the luminosity of the object. Progression with CityMap-evnice.pdf in test suite. That file must have a alpha style softmask.

[base/gdevp14.c base/gstparam.h]

2010-07-19T15:45:36.535276Z Chris Liddell

Update trunk to FreeType 2.4.1 The important change (from Ghostscript's point of view) is that the previously patented TrueType hinting operations have been enabled by default after the expiration of the patents in question. This change (the hinting being enabled) causes 3060 non-pdfwrite cluster changes, and 655 pdfwrite changes - these are expected, and are progressions.

[freetype/builds/unix/config.sub freetype/src/pshinter/pshglob.c freetype/src/base/ftpfr.c freetype/src/pshinter/pshglob.h freetype/src/type1/t1objs.c freetype/docs/DEBUG freetype/builds/win32/w32-dev.mk freetype/src/type1/t1objs.h freetype/docs/reference/ft2-gasp_table.html freetype/src/pshinter freetype/docs/INSTALL.CROSS freetype/src freetype/docs/reference/ft2-lcd_filtering.html freetype/src/truetype/ttgload.c freetype/builds/win32/win32-def.mk freetype/src/type1 freetype/builds/wince/vc2005-ce freetype/src/truetype/ttgload.h freetype/src/tools/ftrandom/ftrandom.c freetype/devel/ft2build.h freetype/src/tools/docmaker/formatter.py freetype/src/autofit/Jamfile freetype/src/bdf/module.mk freetype/docs/reference/ft2-glyph_stroker.html freetype/include/freetype/config/ftheader.h freetype/src/cff/Jamfile freetype/src/cff/cffparse.c freetype/src/raster/ftraster.c freetype/src/cff/cffparse.h freetype/src/cff/cffcmap.c freetype/src/raster/ftraster.h freetype/src/cff/cffcmap.h freetype/src/raster/ftrend1.c freetype/include/freetype/internal/services/svttglyf.h freetype/builds/wince/vc2005-ce/freetype.vcproj freetype/src/raster/ftrend1.h freetype/docs/INSTALL.ANY freetype/src/psnames/module.mk freetype/src/base/ftutil.c freetype/src/autofit/afglobal.c freetype/src/cache/ftcsbits.c freetype/builds/mac/ftmac.c freetype/src/autofit/afglobal.h freetype/src/pcf/rules.mk freetype/src/base/ftsystem.c freetype/src/cache/ftcsbits.h freetype/builds/amiga/include/freetype freetype/builds/mac/FreeType.m68k_cfm.make.txt freetype/src/psaux/psaux.c freetype/builds/ansi freetype/src/cff/module.mk freetype/src/pshinter/rules.mk freetype/src/pcf/pcfread.c freetype/src/bdf/bdflib.c freetype/docs/reference/ft2-list_processing.html freetype/include/freetype/ftcache.h freetype/src/pcf/pcfread.h freetype/builds/unix/ft2unix.h freetype/src/raster/Jamfile freetype/builds/atari/FREETYPE.PRJ freetype/src/gzip/rules.mk freetype/src/pshinter/pshalgo.c freetype/include/freetype/internal/services/svcid.h freetype/include/freetype/ftincrem.h freetype/src/lzw freetype/builds/compiler/bcc-dev.mk freetype/src/pshinter/pshalgo.h freetype/src/tools/test_afm.c freetype/src/psnames/psnamerr.h freetype/src/cache/ftccache.c freetype/src/cache/ftcmru.c freetype/include/freetype/config/ftstdlib.h freetype/src/cid/cidtoken.h freetype/vms_make.com freetype/include/freetype/freetype.h freetype/docs/INSTALL.UNIX freetype/src/cache/ftccache.h freetype/src/cache/ftcmru.h freetype/src/tools/cordic.py freetype/src/pfr/Jamfile freetype/src/pfr/pfrload.c freetype/src/pfr/pfr.c freetype/builds/amiga/src freetype/src/pfr/pfrload.h freetype/include/freetype/fterrdef.h freetype/builds/detect.mk freetype/src/tools/ftrandom freetype/docs/reference/ft2-cache_subsystem.html freetype/builds/win32/vc2005 freetype/src/type1/t1gload.c freetype/builds/win32/vc2008 freetype/src/base/ftbbox.c freetype/builds/dos freetype/src/otvalid/otvgdef.c freetype/src/type1/t1gload.h freetype/include/freetype/ftsystem.h freetype/docs/reference/ft2-glyph_variants.html freetype/src/bdf/bdferror.h freetype/builds/unix/aclocal.m4 freetype/src/gxvalid/rules.mk freetype/docs/reference/ft2-bdf_fonts.html freetype/src/pcf/pcf.c freetype/src/otvalid/rules.mk freetype/include/freetype/internal/services/svotval.h freetype/src/bdf/Jamfile freetype/src/gxvalid/gxvbsln.c freetype/src/pfr/pfrdrivr.c freetype/src/pcf/pcf.h freetype/builds/compiler/win-lcc.mk freetype/src/type1/Jamfile freetype/src/pfr/pfrdrivr.h freetype/src/pcf/pcferror.h freetype/src/sfnt/ttsbit0.c freetype/src/base/ftmac.c freetype/builds/mac/FreeType.ppc_classic.make.txt freetype/src/base/ftgloadr.c freetype/src/base/ftbase.c freetype/docs freetype/builds/win32/vc2005/freetype.vcproj freetype/docs/reference/.gitignore freetype/src/base/ftbase.h freetype/builds/compiler freetype/src/gxvalid/gxvmort0.c freetype/src/bdf/bdf.c freetype/builds/amiga/src/base/ftsystem.c freetype/src/bdf/bdf.h freetype/src/cff/cff.c freetype/src/gxvalid/gxvalid.c freetype/builds/win32/w32-lcc.mk freetype/include/freetype/internal/services freetype/include/freetype/internal/psaux.h freetype/src/gxvalid/gxvalid.h freetype/autogen.sh freetype/src/base/fttype1.c freetype/docs/reference/ft2-type1_tables.html freetype/src/autofit/afmodule.c freetype/builds/unix/detect.mk freetype/include freetype/src/autofit/afmodule.h freetype/builds/vms freetype/src/pfr/pfrcmap.c freetype/objs/README freetype/builds/dos/dos-wat.mk freetype/builds/exports.mk freetype/src/pfr/pfrcmap.h freetype/src/psaux/Jamfile freetype/src/cff/cffpic.c freetype/builds/amiga/smakefile freetype/src/base/ftdebug.c freetype/src/gzip/inflate.c freetype/src/cff/cffpic.h freetype/src/type1/t1driver.c freetype/src/otvalid/otvbase.c freetype/include/freetype/ftmoderr.h freetype/src/gxvalid/gxvopbd.c freetype/src/type1/t1driver.h freetype/builds/win32/vc2005/freetype.sln freetype/builds/mac freetype/builds/atari freetype/builds/compiler/visualage.mk freetype/builds/newline freetype/builds/vms/ftsystem.c freetype/src/base/basepic.c freetype/src/type1/t1parse.c freetype/src/otvalid/otvmath.c freetype/src/gxvalid/gxvmort1.c freetype/src/base/basepic.h freetype/src/psnames/rules.mk freetype/src/type1/t1parse.h freetype/docs/reference/ft2-winfnt_fonts.html freetype/src/pcf/Jamfile freetype/src/gzip/Jamfile freetype/src/base/ftbdf.c freetype/builds/mac/ascii2mpw.py freetype/builds/unix/.gitignore freetype/src/raster/module.mk freetype/src/type1/t1afm.c freetype/src/cid/cidobjs.c freetype/include/ft2build.h freetype/include/freetype/internal/services/svgxval.h freetype/include/freetype/internal/ftrfork.h freetype/builds/win32/ftdebug.c freetype/src/tools freetype/src/type1/t1afm.h freetype/src/type1/t1tokens.h freetype/src/pshinter/pshrec.c freetype/src/cid/cidobjs.h freetype/builds/dos/dos-emx.mk freetype/src/pshinter/pshrec.h freetype/src/autofit/autofit.c freetype/builds/win32/w32-wat.mk freetype/builds/wince/vc2008-ce freetype/src/truetype/ttobjs.c freetype/include/freetype/ftchapters.h freetype/src/type1/t1errors.h freetype/include/freetype/ftlzw.h freetype/src/otvalid/otvgsub.c freetype/src/truetype/ttobjs.h freetype/src/tools/apinames.c freetype/src/winfonts/fnterrs.h freetype/src/cache/ftcache.c freetype/builds/win32/visualc/freetype.sln freetype/include/freetype/ftglyph.h freetype/docs/reference/ft2-gx_validation.html freetype/builds/vms/ftconfig.h freetype/builds/win32/vc2005/index.html freetype/builds/unix/unixddef.mk freetype/src/raster/rasterrs.h freetype/src/autofit/aflatin2.c freetype/builds/dos/detect.mk freetype/src/type42/Jamfile freetype/src/base/ftpic.c freetype/builds/wince freetype/src/autofit/aflatin2.h freetype/builds/win32/w32-mingw32.mk freetype/include/freetype/fttypes.h freetype/src/cache/ftcglyph.c freetype/src/gxvalid/gxvmort2.c freetype/builds/link_std.mk freetype/src/cache/ftcglyph.h freetype/src/pshinter/pshinter.c freetype/src/cache/Jamfile freetype/src/tools/test_bbox.c freetype/include/freetype/internal/services/svpsinfo.h freetype/src/type42/t42types.h freetype/builds/os2/os2-dev.mk freetype/builds/mac/ftlib.prj.xml freetype/src/gxvalid/gxvmort.c freetype/src/raster/rastpic.c freetype/builds/win32/vc2008/index.html freetype/src/gxvalid/gxvmort.h freetype/src/gxvalid/README freetype/src/raster/rastpic.h freetype/src/tools/docmaker/docbeauty.py freetype/builds/amiga/include freetype/docs/reference/ft2-incremental.html freetype/src/gzip/ftgzip.c freetype/include/freetype/ftcid.h freetype/include/freetype/internal/services/svpfr.h freetype/builds/compiler/watcom.mk freetype/builds/dos/dos-gcc.mk freetype/src/sfnt/module.mk freetype/src/psnames freetype/docs/INSTALL freetype/src/type1/t1load.c freetype/src/gzip/inftrees.c freetype/src/gzip freetype/builds/amiga/src/base/ftdebug.c freetype/docs/INSTALL.VMS freetype/src/type1/t1load.h freetype/src/gzip/inftrees.h freetype/src/pfr/pfrsbit.c freetype/src/gxvalid/gxvfeat.c freetype/src/cff/cfftoken.h freetype/include/freetype/internal/ftgloadr.h freetype/docs/PROBLEMS freetype/builds/wince/vc2008-ce/freetype.sln freetype/src/pfr/pfrsbit.h freetype/src/truetype/Jamfile freetype/src/gxvalid/gxvfeat.h freetype/builds/unix/configure freetype/docs/reference/ft2-basic_types.html freetype/src/otvalid freetype/src/gxvalid/gxvkern.c freetype/docs/INSTALL.MAC freetype/src/cid/Jamfile freetype/include/freetype/ftmm.h freetype/builds/symbian/freetype.mmp freetype/src/base/ftglyph.c freetype/src/sfnt freetype/src/otvalid/otverror.h freetype/docs/UPGRADE.UNIX freetype/src/autofit/afcjk.c freetype/src/autofit/aftypes.h freetype/src/sfnt/sfdriver.c freetype/src/psaux/afmparse.c freetype/src/autofit/afcjk.h freetype/src/sfnt/sfobjs.c freetype/src/base/ftobjs.c freetype/src/sfnt/sfdriver.h freetype/src/psaux/afmparse.h freetype/src/sfnt/sfobjs.h freetype/src/pfr/rules.mk freetype/docs/reference/ft2-sfnt_names.html freetype/builds/win32/visualc/freetype.vcproj freetype/builds/atari/deflinejoiner.awk freetype/src/psaux/module.mk freetype/src/base/ftstroke.c freetype/src/base/ftfstype.c freetype/docs/GPL.TXT freetype/src/base/ftbitmap.c freetype/src/pshinter/pshpic.c freetype/src/winfonts freetype/builds/dos/dos-def.mk freetype/src/pshinter/pshpic.h freetype/builds/win32/w32-gcc.mk freetype/src/psnames/pstables.h freetype/src/sfnt/rules.mk freetype/builds/wince/vc2005-ce/index.html freetype/src/autofit/afpic.c freetype/docs/raster.txt freetype/builds/atari/FNames.SIC freetype/builds/atari/ATARI.H freetype/src/autofit/afpic.h freetype/src/otvalid/otvgpos.c freetype/docs/reference/ft2-multiple_masters.html freetype/src/cff/cffdrivr.c freetype/docs/reference/ft2-base_interface.html freetype/src/cid/cidriver.c freetype/builds/mac/README freetype/src/otvalid/otvgpos.h freetype/include/freetype/ftgasp.h freetype/builds/unix/unix-cc.in freetype/src/autofit/afindic.c freetype/src/cff/cffdrivr.h freetype/src/cid/cidriver.h freetype/src/autofit/afindic.h freetype/docs/INSTALL.GNU freetype/src/raster freetype/builds/unix/ft-munmap.m4 freetype/src/winfonts/module.mk freetype/src/sfnt/ttkern.c freetype/docs/reference/ft2-index.html freetype/src/gzip/infutil.c freetype/src/sfnt/sferrors.h freetype/src/psaux/t1cmap.c freetype/src/sfnt/ttkern.h freetype/src/gxvalid/gxvmort4.c freetype/src/gzip/infutil.h freetype/include/freetype/ttnameid.h freetype/src/psaux/t1cmap.h freetype/builds/os2/detect.mk freetype/src/gzip/zconf.h freetype/docs/reference/ft2-user_allocation.html freetype/src/base/ftpatent.c freetype/src/truetype/rules.mk freetype/src/truetype freetype/src/base/ftadvanc.c freetype/src/tools/docmaker/tohtml.py freetype/builds/unix/unix-dev.mk freetype/src/otvalid/otvcommn.c freetype/src/otvalid/otvalid.c freetype/include/freetype/config/ftmodule.h freetype/src/otvalid/otvcommn.h freetype/src/otvalid/otvalid.h freetype/include/freetype/ftxf86.h freetype/include/freetype/internal/ftserv.h freetype/Jamrules freetype/src/type1/module.mk freetype/builds/win32/vc2008/freetype.sln freetype/src/base/ftapi.c freetype/docs/VERSION.DLL freetype/docs/LICENSE.TXT freetype/docs/reference/ft2-gzip.html freetype/builds/compiler/emx.mk freetype/include/freetype/ftstroke.h freetype/builds/unix/unix.mk freetype/include/freetype/ftlist.h freetype/include/freetype/ftbitmap.h freetype/objs/.gitignore freetype/src/type42/t42parse.c freetype/src/bdf/bdfdrivr.c freetype/modules.cfg freetype/docs/reference/ft2-toc.html freetype/docs/reference/ft2-computations.html freetype/builds/win32/visualce/freetype.dsp freetype/ChangeLog.20 freetype/src/cid/ciderrs.h freetype/src/type42/t42parse.h freetype/ChangeLog.21 freetype/builds/unix/configure.ac freetype/ChangeLog.22 freetype/builds/unix/ftconfig.in freetype/builds/beos freetype/ChangeLog.23 freetype/src/bdf/bdfdrivr.h freetype/builds/win32/visualce/freetype.dsw freetype/include/freetype/tttables.h freetype/docs/reference/ft2-quick_advance.html freetype/builds/unix/freetype2.in freetype/src/cid/module.mk freetype/src/autofit/afdummy.c freetype/src/gxvalid freetype/docs/reference/ft2-mac_specific.html freetype/src/tools/chktrcmp.py freetype/include/freetype/internal/services/svxf86nm.h freetype/src/autofit/afdummy.h freetype/src/pcf/pcfdrivr.c freetype/include/freetype/internal/ftobjs.h freetype/builds/symbian/bld.inf freetype/src/gxvalid/gxvmort5.c freetype/src/psnames/Jamfile freetype/src/pcf/pcfdrivr.h freetype/builds/unix/ftsystem.c freetype/docs/MAKEPP freetype/Jamfile freetype/builds/win32/visualce/index.html freetype/builds/compiler/gcc-dev.mk freetype/include/freetype/ftotval.h freetype/src/tools/test_trig.c freetype/src/tools/docmaker/content.py freetype/include/freetype/ftadvanc.h freetype/builds freetype/include/freetype/internal/services/svpostnm.h freetype/builds/unix/mkinstalldirs freetype/src/cff/rules.mk freetype/src/gzip/zlib.h freetype/src/type42/t42error.h freetype/src/smooth/module.mk freetype/src/sfnt/sfnt.c freetype/docs/reference/ft2-truetype_tables.html freetype/builds/compiler/gcc.mk freetype/builds/unix/config.guess freetype/src/otvalid/Jamfile freetype/src/autofit/afloader.c freetype/include/freetype/internal/services/svkern.h freetype/builds/beos/beos-def.mk freetype/src/autofit/afloader.h freetype/src/cache/ftcerror.h freetype/src/sfnt/Jamfile freetype/src/psaux/psobjs.c freetype/src/gzip/infcodes.c freetype/src/truetype/ttpic.c freetype/src/psaux/psobjs.h freetype/docs/reference/ft2-header_file_macros.html freetype/src/pshinter/pshnterr.h freetype/docs/reference/ft2-ot_validation.html freetype/src/base/ftcalc.c freetype/src/gzip/infcodes.h freetype/src/truetype/ttpic.h freetype/src/bdf/rules.mk freetype/include/freetype/internal/tttypes.h freetype/src/psaux freetype/builds/unix/freetype2.m4 freetype/docs/reference/ft2-outline_processing.html freetype/src/gxvalid/gxvmorx0.c freetype/include/freetype/internal/ftvalid.h freetype/include/freetype/fterrors.h freetype/builds/win32/visualc/freetype.dsp freetype/src/gzip/infblock.c freetype/builds/win32/visualc/freetype.dsw freetype/src/base/ftlcdfil.c freetype/include/freetype/internal/ftmemory.h freetype/src/type1/type1.c freetype/include/freetype/ftpfr.h freetype/src/gzip/infblock.h freetype/src/type42/rules.mk freetype/src/tools/ftrandom/Makefile freetype/src/pshinter/module.mk freetype/builds/amiga/include/freetype/config/ftmodule.h freetype/src/gxvalid/gxvmorx.c freetype/docs/formats.txt freetype/builds/amiga/makefile.os4 freetype/src/cff/cffobjs.c freetype/src/smooth/ftsmooth.c freetype/src/gxvalid/gxvmorx.h freetype/include/freetype/ftoutln.h freetype/src/cff/cffobjs.h freetype/docs/reference/ft2-truetype_engine.html freetype/builds/beos/detect.mk freetype/src/smooth/ftsmooth.h freetype/include/freetype/ftsynth.h freetype/src/winfonts/rules.mk freetype/src/tools/ftrandom/README freetype/src/pcf freetype/docs/CHANGES freetype freetype/src/base freetype/src/base/ftotval.c freetype/include/freetype/tttags.h freetype/src/autofit freetype/src/truetype/module.mk freetype/include/freetype/internal/autohint.h freetype/src/tools/glnames.py freetype/src/sfnt/ttload.c freetype/src/gxvalid/gxvfgen.c freetype/builds/atari/gen-purec-patch.sh freetype/src/sfnt/ttload.h freetype/src/pfr/pfrtypes.h freetype/docs/reference/ft2-system_interface.html freetype/builds/win32/w32-bcc.mk freetype/src/pcf/README freetype/src/gxvalid/gxvtrak.c freetype/include/freetype/internal/ftdriver.h freetype/objs freetype/include/freetype/ftgzip.h freetype/include/freetype/internal/services/svbdf.h freetype/src/base/ftrfork.c freetype/src/smooth/rules.mk freetype/src/base/rules.mk freetype/src/gxvalid/gxvmorx1.c freetype/src/autofit/afwarp.c freetype/src/cid/cidload.c freetype/include/freetype/ftgxval.h freetype/src/autofit/afwarp.h freetype/builds/win32/w32-intl.mk freetype/include/freetype/internal/services/svgldict.h freetype/src/cid/cidload.h freetype/src/gxvalid/gxvprop.c freetype/docs/reference/ft2-raster.html freetype/include/freetype/ftlcdfil.h freetype/src/type42/type42.c freetype/src/tools/docmaker/sources.py freetype/src/raster/rules.mk freetype/src/truetype/ttgxvar.c freetype/src/pshinter/Jamfile freetype/src/truetype/ttdriver.c freetype/src/gxvalid/Jamfile freetype/src/truetype/ttgxvar.h freetype/src/pfr/pfrgload.c freetype/builds/unix/unix-lcc.mk freetype/src/Jamfile freetype/src/pshinter/pshmod.c freetype/src/autofit/aflatin.c freetype/src/truetype/ttdriver.h freetype/src/base/ftsnames.c freetype/src/pfr/pfrgload.h freetype/src/pshinter/pshmod.h freetype/include/freetype/internal/ftcalc.h freetype/include/freetype/ftrender.h freetype/builds/unix freetype/src/base/ftgasp.c freetype/src/autofit/aflatin.h freetype/src/base/ftdbgmem.c freetype/src/smooth/ftspic.c freetype/include/freetype/t1tables.h freetype/src/cid/cidgload.c freetype/src/base/ftoutln.c freetype/src/smooth/ftspic.h freetype/builds/compiler/intelc.mk freetype/src/base/ftwinfnt.c freetype/src/base/ftsynth.c freetype/src/cid/cidgload.h freetype/include/freetype/internal/internal.h freetype/src/sfnt/ttbdf.c freetype/src/lzw/ftlzw.c freetype/src/sfnt/ttbdf.h freetype/builds/win32/vc2008/freetype.vcproj freetype/builds/win32/w32-bccd.mk freetype/src/truetype/ttpload.c freetype/src/gxvalid/gxvmorx2.c freetype/src/truetype/ttinterp.c freetype/src/lzw/rules.mk freetype/src/truetype/ttpload.h freetype/src/base/ftxf86.c freetype/src/base/ftstream.c freetype/src/truetype/ttinterp.h freetype/src/sfnt/ttcmap.c freetype/builds/ansi/ansi.mk freetype/include/freetype/internal/services/svmm.h freetype/src/pfr freetype/builds/compiler/ansi-cc.mk freetype/src/sfnt/ttcmap.h freetype/src/gxvalid/module.mk freetype/src/gxvalid/gxvjust.c freetype/builds/toplevel.mk freetype/src/truetype/tterrors.h freetype/builds/win32 freetype/builds/symbian freetype/src/pcf/pcfutil.c freetype/src/cid/type1cid.c freetype/src/pcf/pcfutil.h freetype/src/base/ftgxval.c freetype/builds/win32/visualce freetype/include/freetype/internal/pshints.h freetype/builds/amiga freetype/builds/amiga/src/base freetype/builds/win32/w32-icc.mk freetype/src/sfnt/ttmtx.c freetype/src/psnames/psmodule.c freetype/src/sfnt/ttmtx.h freetype/builds/wince/vc2008-ce/index.html freetype/src/psaux/psauxmod.c freetype/src/pfr/module.mk freetype/src/base/ftcid.c freetype/src/psnames/psmodule.h freetype/include/freetype/ftsnames.h freetype/src/psaux/psauxmod.h freetype/README.git freetype/configure freetype/src/gzip/inffixed.h freetype/src/bdf freetype/docs/reference/ft2-pfr_fonts.html freetype/src/sfnt/ttcmapc.h freetype/docs/reference freetype/builds/os2/os2-gcc.mk freetype/builds/compiler/bcc.mk freetype/builds/link_dos.mk freetype/docs/reference/ft2-cid_fonts.html freetype/include/freetype/ftwinfnt.h freetype/builds/unix/freetype-config.in freetype/src/pfr/pfrobjs.c freetype/src/base/Jamfile freetype/docs/release freetype/include/freetype/ftimage.h freetype/src/lzw/ftzopen.c freetype/src/pfr/pfrobjs.h freetype/src/lzw/Jamfile freetype/src/truetype/truetype.c freetype/Makefile freetype/src/base/fttrigon.c freetype/builds/win32/w32-vcc.mk freetype/src/lzw/ftzopen.h freetype/src/autofit/afhints.c freetype/builds/unix/install.mk freetype/src/autofit/afhints.h freetype/builds/win32/visualce/freetype.vcproj freetype/include/freetype/ftmac.h freetype/src/psaux/rules.mk freetype/src/type1/rules.mk freetype/src/cache/ftcimage.c freetype/src/psnames/pspic.c freetype/builds/atari/README.TXT freetype/src/cache/ftcimage.h freetype/include/freetype/config/ftconfig.h freetype/src/cid/cidparse.c freetype/src/psnames/pspic.h freetype/src/cff/cfferrs.h freetype/src/cid/cidparse.h freetype/docs/reference/ft2-version.html freetype/src/smooth/Jamfile freetype/src/tools/docmaker freetype/src/gzip/adler32.c freetype/src/tools/docmaker/.gitignore freetype/include/freetype/internal/sfnt.h freetype/docs/reference/README freetype/builds/compiler/unix-lcc.mk freetype/src/winfonts/winfnt.c freetype/devel/ftoption.h freetype/builds/wince/ftdebug.c freetype/src/gzip/zutil.c freetype/src/sfnt/sfntpic.c freetype/builds/unix/unix-def.in freetype/src/winfonts/winfnt.h freetype/builds/os2/os2-def.mk freetype/src/smooth/smooth.c freetype/src/gzip/zutil.h freetype/src/sfnt/sfntpic.h freetype/devel freetype/src/smooth/ftgrays.c freetype/src/raster/ftmisc.h freetype/docs/reference/ft2-module_management.html freetype/src/gxvalid/gxvmorx4.c freetype/include/freetype/internal/pcftypes.h freetype/src/pfr/pfrerror.h freetype/src/smooth/ftgrays.h freetype/src/winfonts/Jamfile freetype/builds/beos/beos.mk freetype/src/raster/raster.c freetype/include/freetype/internal/services/svwinfnt.h freetype/docs/CUSTOMIZE freetype/include/freetype/config freetype/builds/unix/configure.raw freetype/include/freetype/internal/t1types.h freetype/builds/wince/vc2008-ce/freetype.vcproj freetype/docs/reference/ft2-font_formats.html freetype/src/otvalid/module.mk freetype/include/freetype/internal/services/svpscmap.h freetype/ChangeLog freetype/include/freetype/fttrigon.h freetype/builds/win32/visualc freetype/src/cache/ftcmanag.c freetype/docs/FTL.TXT freetype/src/sfnt/ttsbit.c freetype/README freetype/src/cache/ftcmanag.h freetype/src/sfnt/ttsbit.h freetype/builds/mac/FreeType.ppc_carbon.make.txt freetype/builds/wince/vc2005-ce/freetype.sln freetype/docs/reference/ft2-sizes_management.html freetype/src/type42/t42drivr.c freetype/src/psaux/psconv.c freetype/include/freetype/ftbdf.h freetype/include/freetype/ftsizes.h freetype/src/type42/t42drivr.h freetype/src/cff freetype/include/freetype/internal/services/svtteng.h freetype/src/psaux/psconv.h freetype/include/freetype/internal/ftdebug.h freetype/src/tools/docmaker/docmaker.py freetype/src/gxvalid/gxverror.h freetype/src/autofit/module.mk freetype/include/freetype/internal/ftstream.h freetype/src/cff/cfftypes.h freetype/builds/modules.mk freetype/src/smooth freetype/docs/reference/ft2-bitmap_handling.html freetype/src/gxvalid/gxvmorx5.c freetype/src/gxvalid/gxvmod.c freetype/builds/freetype.mk freetype/include/freetype/internal/ftpic.h freetype/src/type42 freetype/src/gxvalid/gxvmod.h freetype/include/freetype/ftbbox.h freetype/src/otvalid/otvmod.c freetype/builds/unix/install-sh freetype/src/psnames/psnames.c freetype/builds/os2 freetype/src/cid/rules.mk freetype/src/psaux/psauxerr.h freetype/src/type42/t42objs.c freetype/src/otvalid/otvmod.h freetype/src/cache/ftccmap.c freetype/src/cache/ftcbasic.c freetype/src/cache freetype/src/smooth/ftsmerrs.h freetype/src/type42/t42objs.h freetype/include/freetype/internal/services/svttcmap.h freetype/version.sed freetype/builds/amiga/include/freetype/config/ftconfig.h freetype/src/psaux/t1decode.c freetype/docs/reference/ft2-glyph_management.html freetype/src/autofit/rules.mk freetype/src/tools/docmaker/utils.py freetype/builds/win32/visualc/index.html freetype/src/psaux/t1decode.h freetype/builds/ansi/ansi-def.mk freetype/src/otvalid/otvjstf.c freetype/src/type42/module.mk freetype/src/cff/cffgload.c freetype/src/autofit/aferrors.h freetype/src/gxvalid/gxvlcar.c freetype/builds/amiga/makefile freetype/include/freetype/internal/services/svsfnt.h freetype/src/bdf/README freetype/src/base/ftinit.c freetype/src/cff/cffgload.h freetype/src/cache/ftccback.h freetype/include/freetype/internal freetype/src/base/ftmm.c freetype/src/pcf/module.mk freetype/docs/TODO freetype/docs/reference/ft2-lzw.html freetype/src/tools/Jamfile freetype/builds/win32/detect.mk freetype/builds/unix/ltmain.sh freetype/src/autofit/afangles.c freetype/include/freetype/config/ftoption.h freetype/src/gxvalid/gxvcommn.c freetype/src/cff/cffload.c freetype/include/freetype freetype/src/autofit/afangles.h freetype/builds/compiler/visualc.mk freetype/src/gxvalid/gxvcommn.h freetype/src/cff/cffload.h freetype/builds/mac/FreeType.m68k_far.make.txt freetype/builds/amiga/include/freetype/config freetype/src/sfnt/ttpost.c freetype/src/sfnt/ttpost.h freetype/src/cid freetype/src/cache/rules.mk freetype/include/freetype/ttunpat.h freetype/builds/amiga/README freetype/include/freetype/ftmodapi.h freetype/include/freetype/internal/fttrace.h]

2010-07-18T05:30:08.091459Z Alex Cherepanov

Implement halftones type 6, 10, 16 in PDF interpreter. Use default halftone when the halftone type is incorrect.

[Resource/Init/pdf_draw.ps]

2010-07-18T00:03:37.786299Z Alex Cherepanov

Recognize enumerated color space #12 as CMYK following JPX baseline spec.

[Resource/Init/pdf_draw.ps]

2010-07-17T21:23:39.853613Z Alex Cherepanov

Re-implement handling of named page sizes to avoid dependence on the definitions of compatibility operators (a4, letter, etc.) in userdict. Bug 691458.

[Resource/Init/gs_init.ps Resource/Init/gs_setpd.ps Resource/Init/gs_statd.ps]

2010-07-17T00:07:09.985181Z Alex Cherepanov

Remove unused variables CC_D and CC_INT from all makefiles.

[psi/os2.mak base/unixhead.mak base/bcwin32.mak base/openvms.mak base/watcw32.mak base/msvccmd.mak base/wccommon.mak]

2010-07-16T20:40:49.337914Z Alex Cherepanov

Fix the bug that prevented recognition of GenericResourceDir/Category/Name as a valid resource path and required inclusion of GenericResourceDir in the search path to find the same resource by searching. New procedure does the following: 1. Returns GenericResourceDir/Category/Name if it exists. 2. Searches for Category/Name in LIBPATH. Returns actual path if found. 3. For non-existing resources return the same path as (1). Old implementation added GenericResourceDir twice, didn't close files, used system memory, called expensive procedures twice, etc. Regression testing shows trivial differences in 23-07.ps, which prints the length of ResourceFileName procedure. This is a partial fix for bug 691408.

[Resource/Init/gs_res.ps]

2010-07-16T19:58:03.971410Z Michael Vrhel

Prepend icc directory to device profile name if the default name is used so that we have it during clist reading. This is a fix for the iccprofiles/ problem in 691408 when compile inits is not used. Also, fix so that the profile name is allocated in non-gc memory. This was a source of issues with the userparams dict not seeming to be traced or at least not getting its members relocated if a profile in the icc manager was relocated. This fixes the breaking of the psdcmyk device in rev 11499. Also removal of spurious warning messages.

[base/gsicc_manage.c]

2010-07-15T20:42:06.487509Z Ray Johnston

Change pdf14_put_image so that the gx_default_begin_typed_image will be able to call the device's 'begin_image' which is often hooked for device specific (hardware accelerated) image rendering. This avoids the default image rendering which results in LOTS of fill_rectangle calls. Found with customer 532.

[base/gdevp14.c]

2010-07-15T19:28:38.670595Z Ray Johnston

The other half of the version.mak change.

[Resource/Init/gs_init.ps]

2010-07-15T18:14:17.190964Z Ray Johnston

Update version to 9.00 PRE-RELEASE (with a bogus date, but before Aug 1) This will serve to notify folks what the next release will be (not 8.72)

[base/version.mak]

2010-07-15T14:49:39.770856Z Alex Cherepanov

Improve Ghostscript operation when current directory is not included in the search path. 1. Make file path separators at the end of LIBPATH entries optional to reduce the number of trivial configuration errors. 2. Search LIBPATH list for valid iccprofiles/ directory as a sibling to (Resource) and set it as a default to ensure a valid default. This code follows /GenericResourceDir example. 3. Make sure that the path name derived from /GenericFontDir is is not searched but other font file names are searched. Earlier code relied on a feature of .libfile not searching for an absolute path and failed when the path was relative. Partial fix for bugs 691350, 691408.

[Resource/Init/gs_lev2.ps Resource/Init/gs_fonts.ps Resource/Init/gs_res.ps]

2010-07-15T05:42:55.376283Z Alex Cherepanov

Add copying default ICC profiles to disk-install location. This is necessary for the builds with COMPILE_INITS=0, which looks for ICC profiles on disk. Thanks to Hin-Tak for the patch. Bug 691449.

[base/unixinst.mak]

2010-07-14T21:25:33.726848Z Till Kamppeter

Allow the CUPS Raster backend alternatively output compressed (version 2) CUPS Raster data (bug #689885).

[cups/gdevcups.c]

2010-07-13T18:30:29.088597Z Chris Liddell

Ensure the local variable into which we read Truetype cmap table data (platform ID, encoding ID etc) is actually large enough to hold all the data we read into it. Bug 691452 (part 1) No cluster differences expected.

[base/gsfcid2.c]

2010-07-13T08:24:56.010563Z Ken Sharp

Update the documentation on producing PDF/X to make it clear that -sProcessColorModel is an absolute requirement, even when using -dUseCIEColor, and that the PDFA_def.ps file must be edited, at the very least to alter the ICCProfile entry. Also made some minor syntax changes in PDF/A and PDF/X documentation for greater clarity.

[doc/Ps2pdf.htm]

2010-07-13T07:04:59.625768Z Michael Vrhel

Fix for Bug 691444. Issue was introduced when interpolation max output range was set to be 65535 so that the output could be fed directly into CMM. Problem was for HT output devices like pbmraw the interpolation filter ignored the max range setting and used a max value of the frac range as output. This fixes a number of files that had regressions. Files checked with bmpcmp.

[base/sidscale.c]

2010-07-13T01:20:10.578834Z Michael Vrhel

Fix for bug 691445. pdf14 mapping procs were not paying attention to the trans device in the imager state. bmpcmp showed that this fixed several files.

[base/gdevp14.c]

2010-07-12T15:03:57.186505Z Chris Liddell

In the event the FAPI code has to replace the FontBBox array, make sure the new array is marked executable. No cluster differences expected.

[psi/zfapi.c]

2010-07-11T15:26:14.804339Z Michael Vrhel

Fix for overprint regressions introduced with icc branch merge. Review of bmp compares reveals that this fixes a number of issues hence the large number of differences with the commit. There is one regression introduced with this commit, which is IA3Z0302.pdf.pdf.pkmraw.300 page 2 a bug will be opened for this. Also, review of Atona_Technical_1v1_x3.pdf.pam.72 reveals there some overprint issues may still exist with bitmap and halftone image overprinting on top of spotcolors when Overprint is true and and Overprint mode is set to On. This issue may have existed prior to the icc commit. Will open a bug to investigate.

[base/gsicc_create.c base/gxcspace.h base/gscspace.c base/gsicc.c]

2010-07-10T01:28:54.795367Z Ray Johnston

Fix 'status' operator to return false when the IODevice prefix is not found instead of undefinedfilename. Found while working on 691408.

[psi/zfile.c]

2010-07-09T18:31:19.790276Z Ray Johnston

Fix to use stable memory for profiledir in icc_manager structure and change all 'current_' functions to return the actual value set, the default, or an empty string if no default. Also set the default ICCProfilesDir to %rom%iccprofiles which will work if COMPILE_INITS=1. This should also be set by the PS init code (see bug 691408).

[psi/zusparam.c]

2010-07-09T09:40:17.170342Z Ken Sharp

Improve Windows batch files. Bug #691440 "Windows bat files use relative paths and write to non-temp dir" As suggested by Bjorn Martensson in bug #691440. Altered all batch files which call other batch files so that they prepend the call with the location the original batch file was executed from. This allows batch files such as ps2pdf.bat to be called from locations other than the Ghostscript 'lib' directory. Also altered the location of temporary files created by the batch files to the Windows temporary folder by using the %TEMP% environment variable. If this variable is not set for some reason then this will still default to the current directory, as it does now. This allows batch files to be run from directories which are read only. Since these files are not used by our (Linux) cluster there will be no differences. I have tested a number of the scripts, but not all of them. The ones I have tested seem to work well. I finally found a reference which states that the %~d batch parameter was introduced to Windows in NT4, this means that these batch files will likely fail on older versions of Windows (ie Windows 3.x/95/98). I don't believe we need to support such antiquated Operating Systems any further.

[lib/pf2afm.bat lib/gsdj500.bat lib/ps2ascii.bat lib/ps2pdfxx.bat lib/lpr2.bat lib/gsndt.bat lib/gstt.bat lib/eps2eps.bat lib/pdf2dsc.bat lib/gsbj.bat lib/ps2epsi.bat lib/gsdj.bat lib/dumphint.bat lib/ps2ps2.bat toolbin/msvcxml.bat lib/gsnd.bat lib/font2c.bat lib/pdfopt.bat lib/gst.bat lib/pdf2ps.bat lib/ps2pdf.bat lib/gslj.bat lib/bdftops.bat lib/pfbtopfa.bat lib/ps2pdf12.bat lib/ps2pdf13.bat lib/ps2pdf14.bat lib/gslp.bat lib/lpgs.bat lib/ps2ps.bat lib/pftogsf.bat]

2010-07-08T20:01:59.912724Z Robin Watts

Extend the experimental ENABLE_TRAP_AMALGAMATION code to the TEMPLATE_slant_into_trapezoids cases too. The current code generates 3 trapezoids; the new code will (if the option is enabled) attempt to amalgamate the top/bottom traps into the middle one. Enabling this code (but disabling the existing code for trap amalgamation) shows no differences. Enabling all the trap amalgamation code shows 888 differences, all fairly innocuous. As this code is going in disabled, no cluster differences are expected.

[base/gxfillts.h base/gxfill.c]

2010-07-08T16:20:20.892723Z Alex Cherepanov

Update the Ghostscript man page to reflect the new default for -P option made by the rev. 11494.

[man/gs.1]

2010-07-07T21:27:55.422122Z Marcos H. Woehrmann

clusterpush.pl with no options now tests language_switch build as well as gs, pcl, and xps. Also some minor documentation improvements.

[toolbin/localcluster/clusterpush.pl toolbin/localcluster/readme]

2010-07-07T17:47:09.812924Z Alex Cherepanov

Dont't search for initialization files in the current directory first by default because this leads to well-known security and confusion problems. Do this only on the user's request by -P switch. Also revert rev. 11468, which is no longer needed. Bug 691350.

[base/openvms.mmk psi/zfile.c doc/Use.htm base/bcwin32.mak base/ugcclib.mak base/Makefile.in base/unix-gcc.mak base/macos-mcp.mak toolbin/msvcxml.bat psi/os2.mak base/watclib.mak base/openvms.mak base/macosx.mak base/watcw32.mak psi/msvc32.mak base/unixansi.mak base/msvclib.mak]

2010-07-07T13:49:57.894248Z Ken Sharp

Fix : temporary memory device not finalized. clist_init_data creates a temporary memory device in order to "get the memory planarity set up", using a local variable to hold the device. When the function exits the variable goes out of scope and disappears. Because the memory device is a forwarding device it increments the reference count of its target, but because it is never finalized it does not decrement the reference count when it is destroyed, leading to an incorrect target reference count. This only affects pdfwrite at present, but it prevents valid PDF files being written because the file is only terminated when the pdfwrite device reference count reaches 0 and the pdfwrite device is closed. Added calls to finalize the device before discarding it. No expected differences.

[base/gxclist.c]

2010-07-06T22:27:32.077335Z Alex Cherepanov

Increase the max number of color components to 14 to accomodate a new record (13) found in the wild. Bug 691425.

[base/gsccolor.h]

2010-07-06T09:25:40.558632Z Ken Sharp

Fix (pdfwrite) : Named destinations with no /Page not working properly Bug #691344 "REGRESSION: ps2pdf of 8.70 generates correct hyperlinks but not ps2pdf of 8.71" The revisions 9779 and 9788 fixed a problem where DOCVIEW pdfmarks without a /Page or /View entry were producing invalid PDF files, and a problem with DEST pdfmarks arising from it. Because DOCVIEW and DEST pdfmarks share some common code in pdfwrite to create a Destination annotation in the outptu PDF, this still left some confusion in the code. The problem was that DOCVIEW pdfmarks need not contain Page or View data, but named destinations *must*, but pdfmarks need not specify, in which case the current page is used. Added a parameter to pdf_make_dest which allows us to differentiate the two cases and use the current page number for a named destination if no page is supplied. The regression suite can't test this non-printing feature, so no differences are expected.

[base/gdevpdfm.c]

2010-07-06T07:04:53.806003Z Ken Sharp

Improve handling an error condition as suggested by Alex Cherepanov in Bug #691435, comment 9.

[base/gdevpdfj.c]

2010-07-06T00:11:44.270183Z Ray Johnston

Fix BAND_LIST_STORAGE=memory to handle files that create compressed memory files > 2Gb. Also add code to make the reporting of these file sizes a bit better, but portability may still be an issue. Reference Bug 690199 for customers 850 and 531.

[base/gxclmem.c base/gxclist.c]

2010-07-05T23:51:46.696108Z Alex Cherepanov

Replace all '==' executable names with '//== exec' in Ghostscript start-up code because MS driver redefines '==' in a way that requires write access to the top dictionary, and this is not always the case. Bug 689957.

[Resource/Init/gs_cmap.ps Resource/Init/gs_pdfwr.ps Resource/Init/pdf_main.ps Resource/Init/gs_resmp.ps Resource/Init/pdf_font.ps Resource/Init/gs_fonts.ps Resource/Init/pdf_base.ps Resource/Init/pdf_sec.ps Resource/Init/gs_ttf.ps Resource/Init/pdf_draw.ps Resource/Init/gs_cff.ps Resource/Init/gs_fapi.ps]

2010-07-05T16:18:38.343520Z Alex Cherepanov

Set svn:ignore property for all remaining generated files in jasper, jbig2dec, and tiff directories.

[tiff/contrib/iptcutil tiff/contrib/tags tiff/build tiff/tools tiff tiff/contrib tiff/contrib/mac-mpw tiff/contrib/acorn tiff/html jasper/src/libjasper/include/jasper tiff/contrib/mac-cw tiff/contrib/dbs tiff/html/images tiff/man tiff/contrib/win_dib tiff/html/man tiff/libtiff tiff/test tiff/contrib/addtiffo jbig2dec tiff/port tiff/contrib/ras tiff/contrib/mfs tiff/contrib/pds tiff/contrib/dbs/xtiff tiff/contrib/stream]

2010-07-05T15:10:09.278642Z Ken Sharp

Add a pair of parentheses to silence a gcc compiler warning. Also extend the comment slightly to be a little more informative. No differences expected.

[base/gdevpdfj.c]

2010-07-05T05:13:16.304757Z Alex Cherepanov

Use the presence of /CIDSystemInfo instead of /Subtype value to decide whether the object is a CID font. The former is required by Acrobat, the latter appears to be ignored by Acrobat, and so may be wrong. Bug 691426.

[Resource/Init/pdf_font.ps]

2010-07-05T01:23:43.139942Z Hin-Tak Leung

test for emptiness of HAVE_FONTCONFIG is better than non-yes-ness of enable_fontconfig; fine-tuning of r11448 to --disable-cairo when fontconfig is not available or user-disabled

[base/configure.ac]

2010-07-05T01:18:30.861454Z Hin-Tak Leung

new/renamed documentation file libpng-1.2.44.txt missed in r11482 for libpng 1.2.42->1.2.44 upgrade

[libpng/libpng-1.2.44.txt]

2010-07-04T19:04:17.740307Z Alex Cherepanov

Reaplly Hin-Tak's patch, rev. 11453, which was rolled back by the rev. 11462. Apply diff between stock 1.2.42 <-> 1.2.44 to upgrade to libpng 1.2.44 - bug fixes - CVE-2010-1205. Bug 691438.

[libpng/pngrtran.c libpng/scripts/makefile.gcmmx libpng/contrib/pngminim/encoder/gather.sh libpng/scripts/makefile.sgi libpng/scripts/makefile.sco libpng/scripts/makefile.hpgcc libpng/KNOWNBUG libpng/projects/xcode/libpng.xcodeproj/project.pbxproj libpng/scripts/pngos2.def libpng/scripts/makefile.nommx libpng/scripts/makefile.linux libpng/pngmem.c libpng/png.c libpng/contrib/pngminim/decoder/gather.sh libpng/scripts/makefile.64sunu libpng/scripts/makefile.elf libpng/scripts/libpng-config-head.in libpng/png.h libpng/CMakeLists.txt libpng/pngrio.c libpng/pngpread.c libpng/Y2KINFO libpng/scripts/makefile.netbsd libpng/pngwio.c libpng/pngrutil.c libpng/scripts/makefile.hpux libpng/scripts/makefile.darwin libpng/scripts/makefile.sggcc libpng/README libpng/contrib/pngminim/decoder/makefile libpng/scripts/makefile.32sunu libpng/libpngpf.3 libpng/scripts/makefile.solaris-x86 libpng/libpng-1.2.42.txt libpng/contrib/pngminim/preader/makefile libpng/scripts/makefile.solaris libpng/pngwtran.c libpng/contrib/pngminim/preader/gather.sh libpng/scripts/makefile.mingw libpng/scripts/makefile.aix libpng/scripts/makefile.hp64 libpng/scripts/png32ce.def libpng/scripts/makefile.beos libpng/scripts/makefile.ne12bsd libpng/pngread.c libpng/scripts/pngw32.def libpng/pngget.c libpng/INSTALL libpng/scripts/makefile.cegcc libpng/CHANGES libpng/contrib/pngminim/encoder/makefile libpng/projects/wince.txt libpng/libpng.3 libpng/example.c libpng/scripts/makefile.so9 libpng/pngwrite.c libpng/pngconf.h libpng/pngset.c libpng/LICENSE libpng/png.5 libpng/pngwutil.c libpng/scripts/makefile.openbsd libpng/scripts/makefile.dec libpng/scripts/README.txt libpng/scripts/makefile.cygwin libpng/pngtest.c libpng/ANNOUNCE libpng/scripts/libpng.pc.in]

2010-07-03T00:29:40.754683Z Hin-Tak Leung

missed linker defines needed to build under 64-bit windows in a previous commit r11388 for bug 691302

[psi/msvc32.mak]

2010-07-01T21:58:29.492747Z Michael Vrhel

Bubble up of error when allocation of default profile cmm handle fails. Fix for bug 691429

[base/gsicc_manage.c]

2010-07-01T21:13:55.381754Z Hin-Tak Leung

revert r11469(r11455) - wrong fix to bug 690428

[base/gdevxcmp.c]

2010-07-01T19:08:29.177579Z Ken Sharp

Enhancement (pdfwrite) : Fall back to Flate instead of JPEG when an image turns out short. Bug #691435 "any PDFSETTINGS besides /default gives dictfull error" There are two problems; firstly when an error is encountered closing a filter the error code (-1 or -2 usually) is returned and interpreted as a regular GS error, resulting in ridiculous error messages. Modified to return ioerror instead. Secondly, when an image terminates with insufficient data and pdfwrite is creating a DCT encoded image, we can't complete the image. In this case try to fall back to the simple Flate compressed stream instead. No differences expected.

[base/gdevpdfj.c]

2010-07-01T17:14:23.564053Z Michael Vrhel

Fix for Bug 691431. This was caused by a PS CIE color space being used for a transparency group color space. That really should not be allowed since those color spaces are unidirectional. They are installed though when -dUseCIEColor is used with a PDF file that has transparency. Solution is to use the default ICC profiles for the group color space when this occurs.

[base/gstrans.c]

2010-07-01T12:19:20.914734Z Robin Watts

Revert revision 11472 as it breaks almost every file in the cluster tests, and it's preventing other meaningful work being done.

[base/gp_unifn.c]

2010-07-01T00:41:57.037474Z Hin-Tak Leung

reapply 11457

[base/gs_dll_call.h]

2010-07-01T00:40:43.889090Z Hin-Tak Leung

reapply 11456

[base/gp_unifn.c]

2010-07-01T00:36:16.428446Z Hin-Tak Leung

reapply 11454 for outdated config.guess config.sub. see original commit log

[jpeg/config.guess jpeg/config.sub]

2010-07-01T00:33:05.624689Z Hin-Tak Leung

typo that causes linker error if one does not do make clean between builds

[base/lib.mak]

2010-07-01T00:00:22.982087Z Hin-Tak Leung

reapply r11455 - see original commit log for details

[base/gdevxcmp.c]

2010-06-30T23:34:11.835858Z Hin-Tak Leung

security patch from Werner Fink, to disable loading init files from group/world-writable directories - bug 691350

[psi/zfile.c]

2010-06-30T22:12:02.295636Z Michael Vrhel

Initialize profile member variables that are part of serialization. Fix for Bug 691433

[base/gsicc_manage.c]

2010-06-29T18:06:29.735123Z Henry Stiles

remove obsolete clusterpush scripts.

[/trunk/ghostpdl/tools/clusterpush.sh toolbin/clusterpush.sh]

2010-06-29T17:17:45.269232Z Henry Stiles

revert back to 11450.

[/trunk/ghostpdl/main/pcl6_gcc.mak libpng/pngrtran.c libpng/scripts/makefile.gcmmx base/ugcclib.mak libpng/contrib/pngminim/encoder/gather.sh /trunk/ghostpdl/xps/xpspath.c base/unix-gcc.mak libpng/scripts/makefile.sgi base/gp_unifn.c base/macos-mcp.mak libpng/scripts/makefile.sco libpng/scripts/makefile.hpgcc /trunk/ghostpdl/main/pcl6_msvc.mak libpng/KNOWNBUG libpng/projects/xcode/libpng.xcodeproj/project.pbxproj libpng/scripts/pngos2.def base/macosx.mak libpng/scripts/makefile.nommx libpng/scripts/makefile.linux jpeg/config.guess base/unixansi.mak libpng/pngmem.c base/msvclib.mak libpng/png.c libpng/contrib/pngminim/decoder/gather.sh libpng/scripts/makefile.64sunu jpeg/config.sub libpng/scripts/libpng-config-head.in libpng/scripts/makefile.elf libpng/png.h base/lib.mak libpng/CMakeLists.txt libpng/pngrio.c libpng/Y2KINFO libpng/pngpread.c libpng/scripts/makefile.netbsd /trunk/ghostpdl/xps/xps_msvc.mak libpng/pngwio.c libpng/pngrutil.c libpng/scripts/makefile.hpux libpng/scripts/makefile.darwin libpng/scripts/makefile.sggcc /trunk/ghostpdl/xps/xpsglyphs.c libpng/README doc/Make.htm libpng/contrib/pngminim/decoder/makefile libpng/scripts/makefile.32sunu libpng/libpngpf.3 libpng/scripts/makefile.solaris-x86 /trunk/ghostpdl/language_switch/pspcl6_msvc.mak libpng/libpng-1.2.42.txt libpng/contrib/pngminim/preader/makefile libpng/libpng-1.2.44.txt libpng/scripts/makefile.solaris base/Makefile.in libpng/pngwtran.c libpng/contrib/pngminim/preader/gather.sh /trunk/ghostpdl/xps/xpstile.c /trunk/ghostpdl/xps/xpsgradient.c libpng/scripts/makefile.hp64 base/gs_dll_call.h libpng/scripts/makefile.aix libpng/scripts/makefile.mingw libpng/scripts/png32ce.def /trunk/ghostpdl/common/msvc_top.mak libpng/scripts/makefile.beos base/watclib.mak /trunk/ghostpdl/xps/xpsopacity.c libpng/scripts/makefile.ne12bsd libpng/pngread.c /trunk/ghostpdl/xps/xpspage.c libpng/scripts/pngw32.def libpng/pngget.c libpng/INSTALL libpng/scripts/makefile.cegcc libpng/CHANGES libpng/contrib/pngminim/encoder/makefile libpng/libpng.3 libpng/example.c libpng/projects/wince.txt base/bcwin32.mak libpng/scripts/makefile.so9 libpng/pngconf.h libpng/pngwrite.c libpng/pngset.c libpng/LICENSE libpng/png.5 libpng/pngwutil.c base/openvms.mak base/gdevxcmp.c libpng/scripts/makefile.openbsd libpng/scripts/makefile.dec base/watcw32.mak base/unix-dll.mak libpng/scripts/README.txt libpng/scripts/makefile.cygwin psi/msvc32.mak libpng/pngtest.c libpng/ANNOUNCE /trunk/ghostpdl/xps/xpsimage.c libpng/scripts/libpng.pc.in]

2010-06-29T07:08:29.009258Z Hin-Tak Leung

more cygwin/mingw-related patches from Jan Nieuwenhuizen (lilypond/gub) ; this one depends on features of GNU make, so it is added as comments to avoid breaking build with non-GNU make

[base/unix-dll.mak]

2010-06-29T07:05:45.877229Z Hin-Tak Leung

avoid re-define _Windows if it is already defined; one of the cygwin/mingw-related patches from Jan Nieuwenhuizen (lilypond/gub)

[base/gs_dll_call.h]

2010-06-29T07:04:25.796552Z Hin-Tak Leung

cygwin is one platform which uses the unix file name interface but is sensitive to binary/text mode; one of the cygwin/mingw-related patches from Jan Nieuwenhuizen (lilypond/gub)

[base/gp_unifn.c]

2010-06-29T06:47:59.438186Z Hin-Tak Leung

gx_device_has_color() was changed 8 years ago in the deviceN commit (r2925), from just color_info.numcomponents > 1 to || (dev)->color_info.gray_index == GX_CINFO_COMP_NO_INDEX . This has some unfortunate side-effect for continuous tone gray devices which doesn't support transparency, such as a 8-bit gray X11 display, which goes down the wrong code path. These are quite rare so it took 7 years for the bug (bug 690428) to be seen.

[base/gdevxcmp.c]

2010-06-29T06:05:26.121392Z Hin-Tak Leung

updating jpeg config.sub config.guess to that from libpng 1.2.44; bug 690486

[jpeg/config.guess jpeg/config.sub]

2010-06-29T05:30:19.407679Z Hin-Tak Leung

apply diff between stock 1.2.42 <-> 1.2.44 to upgrade to libpng 1.2.44 - bug fixes - CVE-2010-1205

[libpng/pngrtran.c libpng/scripts/makefile.gcmmx libpng/contrib/pngminim/encoder/gather.sh libpng/scripts/makefile.sgi libpng/scripts/makefile.sco libpng/scripts/makefile.hpgcc libpng/KNOWNBUG libpng/projects/xcode/libpng.xcodeproj/project.pbxproj libpng/scripts/pngos2.def libpng/scripts/makefile.nommx libpng/scripts/makefile.linux libpng/pngmem.c libpng/png.c libpng/contrib/pngminim/decoder/gather.sh libpng/scripts/makefile.64sunu libpng/scripts/makefile.elf libpng/scripts/libpng-config-head.in libpng/png.h libpng/CMakeLists.txt libpng/pngrio.c libpng/pngpread.c libpng/Y2KINFO libpng/scripts/makefile.netbsd libpng/pngwio.c libpng/pngrutil.c libpng/scripts/makefile.hpux libpng/scripts/makefile.darwin libpng/scripts/makefile.sggcc libpng/README libpng/contrib/pngminim/decoder/makefile libpng/scripts/makefile.32sunu libpng/libpngpf.3 libpng/scripts/makefile.solaris-x86 libpng/libpng-1.2.42.txt libpng/libpng-1.2.44.txt libpng/contrib/pngminim/preader/makefile libpng/scripts/makefile.solaris libpng/pngwtran.c libpng/contrib/pngminim/preader/gather.sh libpng/scripts/makefile.mingw libpng/scripts/makefile.aix libpng/scripts/makefile.hp64 libpng/scripts/png32ce.def libpng/scripts/makefile.beos libpng/scripts/makefile.ne12bsd libpng/pngread.c libpng/scripts/pngw32.def libpng/pngget.c libpng/INSTALL libpng/scripts/makefile.cegcc libpng/CHANGES libpng/contrib/pngminim/encoder/makefile libpng/libpng.3 libpng/projects/wince.txt libpng/example.c libpng/scripts/makefile.so9 libpng/pngwrite.c libpng/pngconf.h libpng/pngset.c libpng/LICENSE libpng/png.5 libpng/pngwutil.c libpng/scripts/makefile.openbsd libpng/scripts/makefile.dec libpng/scripts/README.txt libpng/scripts/makefile.cygwin libpng/pngtest.c libpng/ANNOUNCE libpng/scripts/libpng.pc.in]

2010-06-29T05:25:07.282125Z Hin-Tak Leung

change documentation as --enable-dynamics is no longer required for "make so" to work

[doc/Make.htm]

2010-06-29T05:20:09.043972Z Hin-Tak Leung

split lcms code build into arch-specific targets; try to make both windows inline assembly and unix "make so" work simultaneously; bug 691427

[base/watclib.mak base/lib.mak base/bcwin32.mak base/openvms.mak base/ugcclib.mak base/macosx.mak base/watcw32.mak base/Makefile.in base/unix-gcc.mak base/unixansi.mak psi/msvc32.mak base/macos-mcp.mak base/msvclib.mak]

2010-06-29T05:16:38.524502Z Hin-Tak Leung

move the DYNAMIC_* defines out of the --enable-dynamic condition so that it applies generally; try to "make so" work with just ./configure ; many bugs ask for make so to work

[base/configure.ac]

2010-06-29T04:34:10.440639Z Hin-Tak Leung

switch autoconf png test away from testing for a soon-to-be-obsolete routine to one we actually use, to smooth over the libpng 1.2.x to 1.4.x transition; bug 691111

[jbig2dec/configure.ac base/configure.ac]

2010-06-29T04:15:47.742872Z Hin-Tak Leung

make --disable-fontconfig imples --disable-cairo; bug 690690

[base/configure.ac]

2010-06-29T04:04:53.158322Z Hin-Tak Leung

tries to remove empty *obj/*bin directories when invoking "make distclean"; bug 690871

[base/unix-end.mak base/Makefile.in base/unix-dll.mak base/unix-gcc.mak base/unixansi.mak]

2010-06-29T03:48:17.519902Z Hin-Tak Leung

check for GNU sed and switch to alternative sed options if sed is non-GNU; bug 691292

[cups/pstopxl.in base/configure.ac]

2010-06-29T03:44:30.895095Z Hin-Tak Leung

Part 2 of update (new files) posted to 687983, corrected for current svn HEAD.

[contrib/pscolor/black.pdf contrib/pscolor/color.pdf contrib/pscolor/colorsplit.vcproj contrib/pscolor/black.ps contrib/pscolor/color.ps contrib/pscolor/common.mak contrib/pscolor/input.ps contrib/pscolor/windows.mak]

2010-06-29T03:41:18.718227Z Hin-Tak Leung

Part 1 of the update (modifications to checked-in files) to the pscolor code posted in 687983, corrected for current svn head.

[contrib/pscolor/Makefile contrib/pscolor/test.c contrib/pscolor/instream.yy]

2010-06-29T03:38:46.508455Z Hin-Tak Leung

ijs communication should be all binary; left-over uncommitted patch from past ijs-related work

[ijs/ijs_server_example.c]

2010-06-29T03:34:45.878285Z Hin-Tak Leung

implements ./configure --with-ufst=UFST_ROOT_DIR ; bug 691293

[doc/Make.htm base/Makefile.in base/configure.ac]

2010-06-29T02:32:38.254860Z Michael Vrhel

Removal of static prototype that has no function.

[base/gsicc_cache.c]

2010-06-29T00:50:32.521441Z Michael Vrhel

Fix lack of end-of-line in file.

[base/gsicc_littlecms.c]

2010-06-28T15:04:31.998704Z Henry Stiles

Fix a typo, thanks to Ken for spotting this in review.

[base/gxpcmap.c]

2010-06-28T10:50:53.201708Z Michael Vrhel

Warnings of problems within lcms only occur now in debug mode. Fix for Bug 691401

[base/gsicc_littlecms.c]

2010-06-28T05:16:59.820980Z Michael Vrhel

Interface with lcms so that the memory allocators make use of ghostscript's allocator. This required fixing a few bugs in littlecms where he was using free instead of _cmsFree and also having lcms.h provide the prototypes if the external mem alloc is defined. Performed cluster push with no problem. Thanks to Henry for helping me track down a 64 bit issue.

[lcms/include/lcms.h base/lib.mak lcms/src/cmslut.c base/lcms.mak lcms/src/cmsio1.c base/gsicc_littlecms.c]

2010-06-26T20:06:13.718954Z Henry Stiles

The ad hoc gstate setup for patterns should not call grestore after gsave when erasing colored patterns because it results in "wraparound", creating another gstate (no saved gstate exists when the pattern is painted), see gsstate.c:gs_grestore() vs gsstate.c:gs_grestore_only(). Thanks to Ken Sharp for noticing the the extra gstate. No expected differences.

[base/gxpcmap.c]

2010-06-26T17:59:06.494303Z Henry Stiles

This file should have been checked in with revision 11433 which will not compile without this change.

[base/gdevpxat.h]

2010-06-25T12:00:50.643763Z Chris Liddell

Provide more robust behaviour when FT fails to render a glyph. Inistead of silently continuing when FT errors on a glyph, we'll now attempt to use the notdef, if the notdef triggers an error, we signal the error to the GS world. This ensures that any time we expect processing to continue there is valid glyph information available to the cache and other downstream devices. This causes one regression difference with 34_all.PS, where an extra TTF notdef is rendered. Bug 691416

[psi/fapi_ft.c]

2010-06-24T07:11:11.011423Z Ken Sharp

Remove a couple of currently unused variables to silence a harmless compiler warning.

[base/gdevpsft.c]

2010-06-23T17:14:40.891928Z Alex Cherepanov

Simplify and fix the implementation of operator --mul--, which mishandled some cases like "16#80000000 -1 mul". Bug 691412.

[psi/zarith.c]

2010-06-23T15:56:39.786311Z Ken Sharp

This patch adds limited support for TrueType collection fonts to pdfwrite and ps2write. In the PostScript world TTC fonts are never passed down to pdfwrite, we only ever see TrueType fonts. XPS, however, can pass back TrueType collection SNFTS data. This patch uses the first font from the TrueType collection and writes that to the output file. This may be too limited and may require further work in future.

[base/gdevpsft.c]

2010-06-23T14:33:08.852324Z Michael Vrhel

Fix for bug691415. When equivalent ICC profile is already created we should just use it. Thanks to Ken for getting the details together.

[base/gscsepr.c]

2010-06-23T05:02:13.734047Z Michael Vrhel

Fix for 691359. Problem tracked down by Alex. What lcms is trying to do is to figure out the best prelinearization for the incoming data prior to doing the CLUT interpolation. In the case when the input is RGB based and the output Gray, lcms was using uninitialized data in constructing is prelinearization. Tangentially related, there could still be problems with what lcms is doing here if the number of Input channels is 1 and the number of Output channels is 3. In that case, it is possible (but not likely) that I could have radically different gamma behavior in each of the RGB channels. Trans in such a case would be constructed based upon only one curve based on the red channel. In the real world, this is probably not a problem but ideally it would be optimal to use something that provides the best prelinearization in all three channels. That is an optimization for Marti to do and perhaps is already in lcms2.

[lcms/src/cmsgmt.c]

2010-06-22T14:54:59.999510Z Henry Stiles

Erase patterns with the color white instead of filling the pattern bitmap with 0 or 255. Previously the initialization was only used when anti aliasing was enabled, now initial erasing is done for all colored patterns, eliminating a long standing UMR in the pcl code where the pattern was combined with the destination/source with indeterminate results. The UMR manifested in frequent regression reports in the pcl tests (c321.bin for example), these reports should go away with this change, though (NB) the change only masks the underlying issue.

[psi/zpcolor.c base/gxpcmap.c base/gxpcolor.h]

2010-06-22T06:12:54.377174Z Masaki Ushizaka

Fix for bug 689836 and 691248. Bug 689836 - Huffman tables with only positive values are decoded incorrectly Bug 691248 - jbig2dec doesn't handle 042_11 (Huffman Symbol Region) This patch fixes mulfunctions seen on standard huffman table K, L, M and N. A difference will be seen on tests_private/comparefiles/Bug690360.pdf. This file was affected by table K mulfunction and this is a improvement.

[jbig2dec/jbig2_hufftab.h]

2010-06-22T06:00:12.605983Z Alex Cherepanov

Revert rev. 7964 and use a different approach: allocate all structures and proceed with their initialization only if all allocations were successful. Fix memory corruption that happens at the PostScript stack overflow. Bug 691295.

[psi/idosave.h psi/ialloc.c psi/isave.c]

2010-06-22T05:59:23.952778Z Masaki Ushizaka

Added test code for every line of each standard huffman tables.

[jbig2dec/jbig2_huffman.c]

2010-06-22T05:15:53.089456Z Alex Cherepanov

Add a /.notdef entry to /CharStrings dictionary if it's missing from an embedded Type1 font. Bug 691406, customer 130.

[Resource/Init/pdf_font.ps]

2010-06-21T16:41:55.147464Z Michael Vrhel

Removal of improper error message. Source of a potential access violation.

[base/gsicc_manage.c]

2010-06-21T15:07:03.992218Z Ken Sharp

Add the 'gs_error_Remap_Color' pseudo-error, a duplicate -f e_Remap_Color in the PostScript interpreter, to the 'base' error list so that PDL clients other than PostScript can make use of it for high-level pattern support.

[base/gserrors.h]

2010-06-21T01:14:18.832712Z Hin-Tak Leung

auto-detect host as *BSD and use a differently named obj directory; no effect on non-*BSDs. fixes bug 687214

[base/Makefile.in base/configure.ac]

2010-06-21T00:32:43.898825Z Hin-Tak Leung

adding more borland-related build tips; part of borland build fixes (bug 691400)

[doc/Make.htm]

2010-06-21T00:12:42.541103Z Hin-Tak Leung

got some garbage in the beginning of the file introduced in an earlier commit

[doc/Install.htm]

2010-06-21T00:01:12.712437Z Hin-Tak Leung

nsis-based installer script, makefile adaptation, documentation update; bug 691363

[psi/winint.mak doc/Release.htm psi/nsisinst.nsi doc/Install.htm]

2010-06-20T23:38:47.757390Z Hin-Tak Leung

borland build fix (bug 691400): borland defines P_tmpdir but not _P_tmpdir; similiar difference between borlandc and msvc has been seen with setmode/_setmode in the ijs code in ijs/ijs_server.c

[jasper/src/libjasper/base/jas_stream.c]

2010-06-20T23:32:24.162240Z Hin-Tak Leung

borland build fix (bug 691400): update and complete documentation on working around for too-many-warnings-equal-error problem of borland c++

[doc/Make.htm]

2010-06-20T23:29:34.775566Z Hin-Tak Leung

borland fix (bug 691400): Borland c++ does not support c99 LL nor ULL, but use i64/ui64 like MSVC for 64-bit integer literals

[base/sha2.c]

2010-06-20T23:11:37.618908Z Hin-Tak Leung

4 borland build fixes (bug 691400): - hook up libtiff - build mkromfs - build import library *.lib corresponding to the dll - build the split-out make_filelist (see also r11388 for Bug 691302, which does it for msvc)

[base/bcwin32.mak]

2010-06-20T23:03:49.551572Z Hin-Tak Leung

borland build does not create the obj and bin directories. part of borland build fix (691400)

[base/bcwin32.mak]

2010-06-20T22:57:32.647408Z Hin-Tak Leung

defines a unix target, since win32 requires specific compiler flags; HP-UX make/MS nmake both issues a warning and borland make issues an error for duplicate targets; fixes bug 691337, and also part of the problems with borland build (bug 691400)

[base/libtiff.mak]

2010-06-20T03:45:03.823204Z Alex Cherepanov

Fix malformed ICC profile generation on big endian systems, which was caused by confusion between internal and external representation of an integer.

[base/gsicc_create.c]

2010-06-20T03:01:50.289956Z Alex Cherepanov

Don't leave wild bytes at the end of a generated ICC profile. Fix Valgrind warnings and spurious hash value differences.

[base/gsicc_create.c]

2010-06-18T23:59:23.662717Z Michael Vrhel

Fix so that when the CIE color spaces are released, the icc equivalent space is also rc decremented as is the profile.

[base/gscscie.c]

2010-06-18T18:06:59.517404Z Michael Vrhel

Fix for memory leak in creation of icc profile from def(g) objects.

[base/gsicc_create.c]

2010-06-18T02:00:13.716745Z Alex Cherepanov

Use operator --search-- instead of --token-- during PDF rebuilding to reduce the load on the name table, slightly improve the speed, and work around the bug 691005 in a few cases.

[Resource/Init/pdf_rbld.ps]

2010-06-17T20:23:33.279930Z Hin-Tak Leung

adjust self-reference of bswin32.mak to correct location. Part 1 of fix to bug 691400

[base/bcwin32.mak]

2010-06-17T20:03:30.325885Z Hin-Tak Leung

mentioning -P-/-P and further reference to the INITIALIZATION FILES and Use.htm in the man page. bug 691350

[man/gs.1]

2010-06-17T19:46:05.887718Z Michael Vrhel

add missing type def for gsicc_create_mashed_clut

[base/gsicc_create.c]

2010-06-17T19:38:39.362075Z Hin-Tak Leung

split make_filelist functionality out of setupgs, to allow UAC restriction during packaging of the installer. Bug 691302

[psi/dwsetup.cpp psi/winint.mak psi/msvc32.mak psi/mkfilelt.cpp]

2010-06-17T19:31:28.160475Z Hin-Tak Leung

add info about silent batch installation; bug 691268

[doc/Install.htm]

2010-06-17T19:28:20.229863Z Michael Vrhel

rc_decrement any icc objects that may exist in the imager state that was created for handling the conversion from PS CIE objects to ICC profiles.

[base/gscie.c]

2010-06-17T18:04:35.295987Z Michael Vrhel

Free up tag list when done creating icc profile from PDF cal type.

[base/gsicc_create.c]

2010-06-17T17:13:34.616951Z Michael Vrhel

Change to help track down any memory leaks related to the new icc code. Also fix so that gs_init_iccmanager copies the null character from the default profile string names. There was a mismatch between what happened here and what happens when the default user params are set. This was causing the profiles to reset in the manager when they did not need to be.

[base/gsicc_manage.c]

2010-06-17T09:20:18.689467Z Ken Sharp

Fix (FAPI) move two FAPI related members from the show enumerator structure to the text enumerator structure. This ensures that these members are always available for rendering and eliminates a GPF caused when a device's text_begin method returns a text enumerator rather than the show enumerator returned by gx_default_text_begin. No differences expected.

[base/gxchar.h base/gxtext.h]

2010-06-16T06:11:25.298134Z Hin-Tak Leung

a few more CRLF eol and svn property corrections

[zlib/contrib/dotzlib/LICENSE_1_0.txt zlib/contrib/vstudio/readme.txt zlib/contrib/masmx64/readme.txt base/gsicc_cache.h base/gsicc_manage.c base/gsicc_manage.h zlib/projects/visualc6/README.txt zlib/contrib/dotzlib/readme.txt]

2010-06-15T17:17:15.944441Z Michael Vrhel

Rename of a few functions to match documentation, update of gdevwts.c to use new color architecture, addition of minor utility functions for use in gxps. This should not generate regressions.

[base/lib.mak base/gsicc_littlecms.h base/gsicc_cache.h base/gsicc_manage.c base/gscms.h base/gdevwts.c base/gsicc_manage.h base/gsicc_littlecms.c]

2010-06-15T16:54:40.171304Z Michael Vrhel

Update of Color Architecture document in preparation for release of GS 9.0

[doc/Color_Architecture.tex doc/figures/XPS_Integer_Gray_RGB_Image.eps doc/figures/Overview.eps doc/figures/XPS_DeviceN.eps doc/figures/PDF_Render.eps doc/figures/XPS_Render.eps doc/GS9_Color_Management.pdf doc/figures/XPS_Vector_Color.eps doc/figures/XPS_RGB_Image_Float.eps doc/figures/PS_Spec.eps doc/Color_Architecture.pdf doc/GS9_Color_Management.tex doc/figures/PS_Render.eps doc/figures/PDF_Spec.eps]

2010-06-14T23:10:27.633844Z Henry Stiles

Modified line endings from CRLF -> LF and propset to native.

[base/gsicc_cache.c base/gsicc_cache.h base/gsicc_manage.c base/gsicc_manage.h]

2010-06-14T18:42:47.881614Z Alex Cherepanov

Fix yet another case where memcpy() copies a memory block on itself. This doesn't cause any problems on Linux or Windows but violates the spec and irks Valgrind. Bug 691394.

[base/gsline.c]

2010-06-14T18:07:49.834071Z Chris Liddell

Remove the "<font> is being rendered with FAPI=<renderer>" messages. But leave a warning if we fall back to the old GS renderer.

[Resource/Init/gs_fapi.ps]

2010-06-14T11:19:07.131026Z Ken Sharp

Fix (pdfwrite) : limit composite object sizes when producing PDF/A Bug #691370 "Dictionary size not limited for PDF/A-1" The PDF/A specification insists that the implementation limitations of Acrobat as defined in PDF 1.4 should be followed when producing PDF/A files. Accordingly this limits the size of dictionaries to 4095 and arrays to 8191 when producing PDF/A output. Since there is no way to ignore the problem, setting the PDFACompatibiltyPolicy to 1 'don't emit the object, carry on producing PDF/A' can't be made to work. Since the user has expressed a desire for an output file, we fall back to Policy 0 'Produce a regular PDF file' instead. Also extend PDFACompatibilityPolicy to include policy 2 'abort'. No test file for this case, no differences expected.

[base/gdevpdfo.c]

2010-06-14T11:14:18.794921Z Ken Sharp

Extend to PDF/X emission the enhancement in revision 11369 which prevents emitting invalid PDF/A files when glyphs are missing from fonts.

[base/gdevpdte.c]

2010-06-14T11:12:40.380849Z Ken Sharp

Update the ps2pdf documenataion to reflect the fact that PDF/X-3 conversion now also uses the PDFACompatibilityPolicy to control behaviour when a conforming file cannot be produced. Also applied some general grammatical correction to the text.

[doc/Ps2pdf.htm]

2010-06-14T09:34:17.990404Z Ken Sharp

Fix (pdfwrite) : Don't emit invalid PDF/A files Bug #691383 "pdfwrite emits invalid PDF/A when glyphs are missing in the input font." If the input file references glyphs which are not in the font, then we could emit a PDF/A file which also referenced glyph which were not present in the fonts embedded in the PDF file. This patch uses the PDFACompatibilityPolicy to control the action in this case, and avoid emitting invalid PDF/A files. Also extended the functionality of the PDFACompatibilityPolicy to allow the user to abort PDF file production when a valid PDF/A file cannot be produced. No expected differences as PDF/A production is not tested by regression code.

[base/gdevpdfm.c base/gdevpdte.c]

2010-06-12T15:19:56.267658Z Henry Stiles

The ICC profile file name buffer was too small to accommodate the trailing null appended by strcat resulting in an invalid write to memory.

[base/gsicc_manage.c]

2010-06-11T17:24:06.899434Z Chris Liddell

In the event of a FreeType error when scaling a font face, don't clean up the FT data, but leave it to the garbage collector to call the font object's "finalize" function, which will then clean up the FT data. Secondly, add code to deal with very low resolutions underflowing some of FT's fixed point code (similar to code for small scale factors). Bug 691381

[psi/fapi_ft.c]

2010-06-11T07:53:37.156852Z Ken Sharp

Fix pdfwrite - device reference counting problem with patterns and XPS When using XPS as the input PDL, and pdfwrite as the output device, the pdfwrite device was counted up by pattern accumulator allocation, but the clist accumulator never counted the device down, leading to a reference count > 1 at EOJ. This meant that the pdfwrite device wasn't closed, since pdfwrite only emits the PDF file when it is closed this led to invalid unfinished PDF files. The code here modifies the behaviour of the pattern management so that we don't use the 'clist' path for accumulating patterns *if* the device can accumulate patterns itself *and* the PDL doesn't have_pattern_streams (to avoid pathological PDF file problems) This resolves the issue with device reference counts and all the FTS XPS files now produce complete PDF files.

[base/gxpcmap.c]

2010-06-10T16:11:08.241878Z Chris Liddell

When extracting a path from the FAPI world (for a charpath, for example), only close the path if it has been "opened". This prevents empty paths from non-marking glyphs resulting in a point being rendered on the page. Another part of Bug 691252. This change causes ~195 differences to be reported on the cluster, but they are all progressions.

[psi/zfapi.c]

2010-06-10T14:06:40.549557Z Chris Liddell

Make the rendering of the Truetype notdef glyph optional with the FAPI interface (as per the previous behaviour). A few cluster differences are expected as we have test files which use the TTF notdef, I have checked all the differences, and they are correct. This is part of Bug 691252

[psi/zfapi.c]

2010-06-09T18:59:09.419344Z Robin Watts

Update comparerevs.pl script so that it no longer ignores hash values on files taht have a non-zero error return. It now only ignores hash values on timeouts (because runs can easily produce different numbers of pages on each run). Also, the output is updated to show error values together with hash results. Error values are now always in brackets, on a red background.

[toolbin/localcluster/comparerevs.pl]

2010-06-08T16:20:39.058317Z Chris Liddell

In bytes_copy_rectangle() clamp the length of each row to be copied to the stride of the raster. This takes care of problems copying bitmaps from FT (or potentially other font libraries) which use different alignment to the "internal" rasters. Bug 691328.

[base/gsbitops.c]

2010-06-08T01:04:10.677952Z Alex Cherepanov

Check whether the font has /Encoding before trying to use it. Recent FAPI changes give /BuildChar procedure to all fonts including CIDFont resources. So the check for non-null pfdata->BuildChar no longer guaranteed that the font has /Encoding. Bug 691311.

[psi/zchar.c]

2010-06-07T17:14:20.171809Z Michael Vrhel

Fix for Bug 691368. lcms appears not to check its handles of link transforms when a profile is released, to clear out xform->InputProfile. Probably due to the fact that lcms may not expect a change of the formatters after the link is created. That would imply that we would need to create links based upon data types, which is not so efficient. Disable this check in lcms since it is only related to named color profiles, which we will not run into. Will kick this up to Marti.

[lcms/src/cmspack.c]

2010-06-06T18:00:36.332831Z Michael Vrhel

Fix for Bug 691367. Seg fault should no longer occur. If an attempt is made to set a color space in the graphic state and the ICC manager's profiles have not yet been initialized, it will be taken care of.

[base/gsicc_manage.c base/gscspace.c]

2010-06-05T20:03:55.912155Z Alex Cherepanov

Don't copy memory block into itself; clear a Valgrind warning.

[base/gsdparam.c]

2010-06-05T19:20:40.615579Z Michael Vrhel

Fix for indeterminisms in some PS files where the alternate tint transform color space for a DeviceN or Separation color space is CIE based. Previously we were returning either CMYK, or RGB based based upon the channel count for the CIE space. Now we are returning an equivalent ICC based color space. Also minor fix for uninitialized memory in generated profile.

[base/gscdevn.c base/gsicc_create.c base/gscsepr.c]

2010-06-03T16:57:17.441589Z Hin-Tak Leung

observe minst->search_here_first condition in file search; bug 691350

[psi/zfile.c]

2010-06-03T00:32:07.629281Z Hin-Tak Leung

Adding -P- and -dSAFER to many POSIX shell scripts, win32 and OS/2 batch scripts; bug 691355

[lib/bjc610b4.upp lib/bjc610b6.upp lib/lp386.bat lib/bjc610b7.upp lib/bjc610b8.upp lib/gsndt.bat lib/pdf2dsc lib/eps2eps.bat lib/st640plg.upp lib/ras8m.upp lib/ras24.upp lib/pv.sh lib/bj8oh06n.upp lib/necp2x.upp lib/stc600p.upp lib/pfbtopfa.bat lib/stc640p.upp lib/wftopfa lib/ps2ps lib/stc2s_h.upp lib/stc500ph.upp lib/ps2ps.cmd lib/pphs lib/stcany_h.upp lib/pf2afm lib/gsdj500 lib/dnj750c.upp lib/pf2afm.cmd lib/stc600pl.upp lib/stc800pl.upp lib/gsbj lib/ps2epsi lib/ps2epsi.cmd lib/dnj750m.upp lib/dumphint lib/gsnd lib/font2c lib/gsdj.bat lib/pdfopt lib/ras32.upp lib/ps2ps2.bat lib/pdf2ps lib/ps2pdf.cmd lib/pdf2ps.cmd lib/stc500p.upp lib/cdj690.upp lib/stc600ih.upp lib/st640p.upp lib/stc_h.upp lib/gslj.bat lib/stcany.upp lib/stc800ih.upp lib/bdftops.bat lib/stc_l.upp lib/ras1.upp lib/gslp.bat lib/lpgs.bat lib/st640ihg.upp lib/ras3.upp lib/stc1520h.upp lib/ras4.upp lib/stc300.upp lib/bj8ts06n.upp lib/eps2eps lib/ps2ascii.bat lib/eps2eps.cmd lib/stc2_h.upp lib/pdf2dsc.bat lib/stc.upp lib/stc300bl.upp lib/stc300bm.upp lib/bj8pp12f.upp lib/pfbtopfa lib/stc800p.upp lib/bjc610a0.upp lib/bj8gc12f.upp lib/st640pg.upp lib/bjc610a1.upp lib/cdj690ec.upp lib/bjc610a2.upp lib/ps2ps.bat lib/bjc610a3.upp lib/bjc610a4.upp lib/bjc610a5.upp lib/bj8hg12f.upp lib/stc2.upp lib/st640pl.upp lib/bjc610a6.upp lib/printafm lib/bjc610a7.upp lib/pf2afm.bat lib/gsdj500.bat lib/bjc610a8.upp lib/ps2pdfxx.bat lib/lpr2.bat lib/lp386r2.bat lib/stc200_h.upp lib/unix-lpr.sh lib/gsdj lib/necp2x6.upp lib/ps2ps2 lib/ps2epsi.bat lib/gsbj.bat lib/bj8pa06n.upp lib/ps2ps2.cmd lib/dumphint.bat lib/cdj550.upp lib/gslj lib/gsnd.bat lib/font2c.bat lib/bdftops lib/pdfopt.bat lib/pdf2ps.bat lib/st640ih.upp lib/gslp lib/ps2pdfwr lib/bjc610b1.upp lib/bjc610b2.upp lib/dvipdf lib/ps2ascii lib/bjc610b3.upp lib/pftogsf.bat]

2010-06-02T17:45:39.111970Z Robin Watts

Introduce new ENABLE_TRAP_AMALGAMATION build define. If set at build time then code is introduced to gxfillts.h to try to amalgamate some of the rectangles produced into the surrounding trapezoids. This can cause small rendering differences due to the difference in rounding within scan conversion and trap extraction. The option is disabled by default. No expected differences with it disabled. 439 non pdfwrite differences, 99 differences with it enabled.

[base/gxfillts.h]

2010-06-02T08:37:07.985901Z Ken Sharp

Revision 11348 accidentally included a number of font definitions in an updated cidfmap, This removes those definitions, which should not be present.

[Resource/Init/cidfmap]

2010-06-02T08:29:23.801870Z Ken Sharp

Documentation change Updated the comments at the head of the file to make it plain that the entries in the CSI array must be strings, not names. Although this is clearly documented in use.htm we have recently had several reports in which users have been trying to set name values in the array. Also added a pointer to the documentation as a further hint.

[Resource/Init/cidfmap]

2010-06-02T07:46:57.542525Z Ken Sharp

Fix pdfwrite, faulty matrix transformations for Shading dictionaries Bug #691352 "cairo pdf mis-distilled" Patterns in PDF are unpleasantly complicated by the need to transform the pattern to the 'default co-ordinate space'. Normally this means that we undo the resolution scaling which is normally applied to the CTM. For page streams this works well, but for forms the 'default co-ordinate space' is the space of the parent. For one level of form there is therefore no difference between the page and the form. When forms are nested however, the lower form's space becomes that of the parent. This means that patterns inside forms, which are nested inside another form, need to be transformed to the parent form co-ordinate space, not the page space. Since we don't currently emit forms from pdfwrite for anything except transparency groups what this means in practice is that we don't undo the CTM transformation if we are rendering a pattern inside a form, nested inside at least one other form.

[base/gdevpdfx.h base/gdevpdft.c base/gdevpdfv.c base/gdevpdfb.h]

2010-06-01T17:41:20.224359Z Michael Vrhel

Rename of gsicccache.c/h to gsicc_cache.c/h and gsiccmanage.c/h to gsicc_manage.c/h to fall in line with the name space of the other files that came from the icc branch. Currently working on the documentation and it is clear that this is needed (and I wish I had done it earlier).

[/trunk/ghostpdl/pxl/pxpthr.c /trunk/ghostpdl/pxl/pxl.mak /trunk/ghostpdl/xps/ghostxps.h base/gsiccmanage.c base/gxshade1.c base/gsiccmanage.h base/gscsepr.c base/gxshade4.c base/gxshade6.c /trunk/ghostpdl/pxl/pxtop.c base/gxcmap.c ghostscript.vcproj base/gsistate.c /trunk/ghostpdl/pcl/pcl.mak base/gdevrinkj.c base/gdevwts.c base/gdevxcf.c base/gxicolor.c base/devs.mak base/gsicc.c base/gdevimdi.c base/gscdevn.c base/gxclread.c base/gdevpsd.c base/lib.mak base/gxiscale.c base/gsicc_manage.c psi/int.mak /trunk/ghostpdl/pxl/pxgstate.c /trunk/ghostpdl/pcl/pctop.c base/gsicc_manage.h psi/zicc.c psi/zdevice.c base/gdevp14.c base/gsstate.c base/gsicc_cache.c base/gsicc_create.c psi/zcie.c base/gsicccache.c base/gxclist.c base/gsicc_cache.h base/gsicccache.h base/gstrans.c base/gscms.h base/gxidata.c base/gdevpdfc.c base/gxblend.c base/gxshade.c psi/zusparam.c base/gdevpdfg.c base/gxp1fill.c base/gxclrast.c base/gsciemap.c]

2010-05-31T14:49:14.514014Z Hin-Tak Leung

for "ln -s base/unix-gcc.mak Makefile; make" builds, do not modularize X, nor build most of the modularzed linux modules, since they depend on the linux GNU linker

[base/unix-gcc.mak]

2010-05-31T14:41:08.956692Z Hin-Tak Leung

another attempt to make "ln -s base/unix-gcc.mak Makefile; make" to work; libtiff really want configure so we hook it in

[base/libtiff.mak]

2010-05-31T09:58:14.532526Z Hin-Tak Leung

more icc branch merge related change to make "make -f base/unix-gcc.mak" and other targets work"

[base/unix-gcc.mak base/unixansi.mak]

2010-05-28T18:07:08.826907Z Henry Stiles

Fixes bug #690793. PJL Formlines was not set correctly if the paper size changed. Also, refactors such that PXL and PJL get paper sizes from the same source table.

[/trunk/ghostpdl/pl/pl.mak /trunk/ghostpdl/pxl/pxl.mak /trunk/ghostpdl/pl/pjparse.c /trunk/ghostpdl/pxl/pxsessio.c /trunk/ghostpdl/pxl/pxstate.h base/gdevpxen.h base/gdevpxut.c]

2010-05-27T21:02:21.460781Z Michael Vrhel

Fix so that shading strokes that go through the clist transparency code communicate the transparency device so that the proper color information is used as opposed to the color information related to the final target device. This should fix the indeterminism with bug688807.pdf when going out to a monochrome device.

[base/gdevp14.c base/gxshade.c]

2010-05-27T15:30:01.093150Z Henry Stiles

Forward declarations for statics functions were accidentally placed in the header file instead of the c file.

[base/gdevp14.c base/gdevp14.h]

2010-05-27T00:44:57.701730Z Michael Vrhel

Fix for indeterminism when using psdcmyk device and interpolated images. For cases where the device profile has fewer components than the actual number of device colorants we need to use the slower interpolation code. Otherwise we end up encoding uninitialized memory.

[base/gxiscale.c]

2010-05-26T22:01:50.106123Z Michael Vrhel

Fix for bug690218. For clist reader the pdf14 device was getting its color information set based upon the number of spot colorants in the page. The real number should be based upon the number of actual components the device is capable of handling. This occurs when using separation device with a limited set of colorants invoked via a command like -c "<< /SeparationColorNames [ /Cyan /Magenta /Yellow /Black ] /SeparationOrder [ /Cyan /Magenta /Yellow /Black ] >> setpagedevice"

[base/gdevp14.c]

2010-05-26T18:16:52.113331Z Michael Vrhel

Improvements and fixes in icc search path description and bolder alert with respect to Windows delimiter \" interpretation . Thanks to Ray.

[doc/Use.htm]

2010-05-26T16:08:36.881438Z Henry Stiles

The languages (pcl, xps, pclxl) debug builds were broken with the icc branch merge, gs_abort() is not supported. The code has been changed similarly to the old exit upon failed assertion code in gsalloc.c where gs_abort() is replaced with return, fixes bug #691340.

[base/gsicc_profilecache.c]

2010-05-26T03:07:02.463936Z Michael Vrhel

Addition of lcms and new icc files to Visual studio solution. Also did a little organizing of the files in the explorer window base folder.

[ghostscript.vcproj]

2010-05-25T20:43:02.039929Z Michael Vrhel

Update of documentation, clarifying the search methods used for finding the icc profiles.

[doc/Use.htm]

2010-05-25T19:38:23.177347Z Michael Vrhel

Removal of iccprofiles/ from default icc profile names and post-pend %rom% with iccprofiles/ . This is in preparation for having the ps init code initialize a default value for ICCProfilesDir (which will be ./iccprofiles/ ) so that code works with COMPILE_INITS=0 when not in the base directory and when -sICCProfilesDir is not specified on the command line.

[base/gsiccmanage.c base/gsiccmanage.h]

2010-05-25T17:15:59.119523Z Hin-Tak Leung

make static some private functions to remove compiler warnings

[contrib/gdevgdi.c base/gdevcairo.c contrib/gdevlx50.c]

2010-05-25T17:14:27.480893Z Hin-Tak Leung

make private functions static to silence some missing prototype warning

[imdi/cgen.c imdi/imdi_k.c]

2010-05-25T17:13:18.238667Z Hin-Tak Leung

silent one compiler warning

[base/gxstroke.c]

2010-05-25T13:50:21.339560Z Ken Sharp

Fix copy CIDFontType 2 properly Bug #690930 "Unicode Output: DEVICE=pdfwrite" When making a copy of a CIDFont with TrueType outlines (CIDFontType 2) for the benefit of pdfwrite, do not simply copy the subst_CID_on_WMode structure member as this will be restored away along with the font at end of page. Instead make a new structure and store that in the copied font. No differences expected, local cluster test shows a few but I think (hope) these are related to the ICC branch merge.

[base/gxfcopy.c]

2010-05-25T10:22:09.642632Z Chris Liddell

Bug 691336: Resolve some confusion between the original global variable removal changes, and subsequent changes, that could result in warning emprintf calls using a memory pointer that could not exist at that stage.

[psi/fapiufst.c]

2010-05-25T08:31:57.775100Z Ken Sharp

Silence a couple of gcc compiler warnings introduced with the ICC merge.

[base/gdevpdfk.c base/gdevpdfc.c]

2010-05-24T23:06:59.017275Z Hin-Tak Leung

Another bunch of CRLF to LF's. find . -type f | grep -v 'svn-base' | xargs file | grep CRLF | grep -v -E '\.(dsp|dsw|sln|rc):' | grep -v -E '(cbuilder5|masm|dotzlib|vstudio|BorlandC_5.5|visualc6)' | cut -d ':' -f 1 | xargs -n 1 svn propset svn:eol-style native find . -type f | grep -v 'svn-base' | xargs file | grep CRLF | grep -v -E '\.(dsp|dsw|sln|rc):' | grep -v -E '(cbuilder5|masm|dotzlib|vstudio|BorlandC_5.5|visualc6)' | cut -d ':' -f 1 | xargs dos2unix

[tiff/nmake.opt psi/zcolor.h toolbin/color/icc_creator/ICC_Creator/stdafx.h lib/cat.ps toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.cpp toolbin/color/icc_creator/example/cielab_values.txt toolbin/color/icc_creator/ICC_Creator/icc34.h contrib/lxm3200-tweaked/LICENSE toolbin/color/icc_creator/README.txt toolbin/color/icc_creator/ICC_Creator/ICC_Creator.cpp toolbin/color/named_color/named_color_table.txt zlib/contrib/testzlib/testzlib.txt lib/Fontmap.URW-136.T1 toolbin/color/icc_creator/example/tritone_names.txt zlib/contrib/testzlib/testzlib.c toolbin/color/icc_creator/ICC_Creator/CIELAB.h toolbin/color/icc_creator/ICC_Creator/icc_create.h base/gsicc_profilecache.c toolbin/color/icc_creator/ICC_Creator/stdafx.cpp toolbin/color/icc_creator/ICC_Creator/resource.h base/gsicc_profilecache.h toolbin/color/icc_creator/example/tritone_cielab.txt base/gsicc_create.c toolbin/color/icc_creator/ICC_Creator/targetver.h toolbin/color/icc_creator/ICC_Creator/ICC_CreatorDlg.h toolbin/color/icc_creator/ICC_Creator/res/ICC_Creator.rc2 psi/zcie.h psi/write_t2.c base/gsicc_create.h toolbin/color/icc_creator/example/color_names.txt base/gscms.h toolbin/color/icc_creator/ICC_Creator/icc_create.cpp toolbin/color/icc_creator/ICC_Creator/ICC_Creator.h psi/fapibstm.c lib/Fontmap.URW-136.TT]

2010-05-24T22:34:00.748368Z Hin-Tak Leung

remove some more CR's and more eol-style native. find . -type f -exec file {} \; |grep 'CRLF' | grep -v '/Projects' | grep -v 'svn-base' | cut -f 1 -d ':' | xargs -n 1 svn propset svn:eol-style native find . -type f -exec file {} \; |grep 'CRLF' | grep -v '/Projects' | grep -v 'svn-base' | cut -f 1 -d ':' | xargs -n 1 dos2unix

[lcms/Delphi/delphidemo.dof lcms/src/makefile.simple lcms/Delphi/demo1.pas lcms/python/testbed/srgb2xyz.py lcms/Delphi/Samples/create.pas lcms/python/testbed/srgb2lab.py lcms/Delphi/delphidemo.dpr lcms/python/testbed/cam02.py lcms/makefile.simple lcms/samples/makefile.simple lcms/Delphi/Samples/TEST.PAS lcms/Delphi/delphidemo.cfg lcms/python/testbed/createmsh.py lcms/python/testbed/lab2adobe.py lcms/Delphi/Samples/testfrm.pas lcms/Delphi/Samples/testwp.pas lcms/src/lcms.def lcms/Delphi/Samples/getxyz.pas]

2010-05-24T22:26:37.131050Z Hin-Tak Leung

manually fixing the last few files which escaped fileutils' identification.

[lcms/python/lcms.py lcms/COPYING lcms/src/cmscam97.c lcms/aclocal.m4 lcms/ltmain.sh lcms/README.1ST lcms/configure.ac]

2010-05-24T22:20:52.689626Z Hin-Tak Leung

Changes c/c++/shell script/english text to native text and strip off CR. find . -type f -exec grep -l '\r\n' {} \; | grep -v 'svn-base' | grep -v '\.vcproj' | grep -v '/Projects' | xargs -n 1 file | grep -E '(ASCII C\+\+ program text|ISO\-8859 English text|ASCII C program text|shell script text executable)' | cut -f 1 -d ':' | xargs dos2unix find . -type f -exec grep -l '\r\n' {} \; | grep -v 'svn-base' | grep -v '\.vcproj' | grep -v '/Projects' | xargs -n 1 file | grep -E '(ASCII C\+\+ program text|ISO\-8859 English text|ASCII C program text|shell script text executable)' | cut -f 1 -d ':' | xargs svn propset svn:eol-style native

[lcms/doc/TUTORIAL.TXT lcms/matlab/icctrans.c lcms/src/cmswtpnt.c lcms/tifficc/getopt.c lcms/src/cmsgamma.c lcms/src/cmsnamed.c lcms/samples/vprf.c lcms/src/cmserr.c lcms/samples/mkcmy.c lcms/src/cmsmtrx.c lcms/src/cmsxform.c.orig lcms/samples/icc2ps.c lcms/python/lcms_wrap.cxx lcms/tifficc/tiffdiff.c lcms/src/cmssamp.c lcms/samples/xgetopt.c lcms/Delphi/lcmsdll.pas lcms/include/icc34.h.in lcms/src/cmsmatsh.c lcms/src/cmspack.c lcms/jpegicc/jpegicc.c lcms/jpegicc/iccjpeg.c lcms/samples/icctrans.c lcms/testbed/testcms.c lcms/samples/mktiff8.c lcms/jpegicc/iccjpeg.h lcms/tifficc/tifficc.c lcms/src/cmsvirt.c lcms/src/cmspcs.c lcms/samples/icclink.c lcms/src/cmsgmt.c lcms/src/cmsio0.c lcms/src/cmsio1.c lcms/samples/mkgrayer.c lcms/filter.c lcms/python/lcms.i lcms/src/cmsxform.c lcms/src/cmsintrp.c lcms/src/cmscnvrt.c lcms/include/lcms.h lcms/doc/LCMSAPI.TXT lcms/src/cmscgats.c lcms/src/cmscam02.c lcms/include/icc34.h lcms/src/cmslut.c lcms/src/cmsps2.c lcms/samples/wtpt.c lcms/samples/itufax.c]

2010-05-24T22:07:41.207483Z Hin-Tak Leung

remove executable bits from files which don't need them. find . -type f -executable -exec file {} \; \ | grep -v 'shell script text executable' \ | cut -f 1 -d ':' |xargs -n 1 svn propdel svn:executable The last commit was created by: find . -type f -executable -exec file {} \; \ | grep 'script text executable' \ | cut -f 1 -d ':' |xargs -n 1 svn propset svn:eol-style native

[lcms/Projects/VC6/lcms.rc lcms/Projects/VC7/lcms.rc lcms/bin/Bin.txt lcms/Delphi/Samples/create.pas lcms/samples/vprf.c lcms/configure.ac lcms/README.1ST lcms/lcms.pc.in lcms/Projects/VC2008/lcms.sln lcms/testbed/sRGBSpac.icm lcms/Projects/VC2008/lcms.vcproj lcms/python/testbed/lab2adobe.py lcms/Delphi/demo1.dfm lcms/samples/xgetopt.c lcms/Projects/VC2005/icclink.vcproj lcms/Projects/VC6/icclink.dsp lcms/Projects/VC7/lcms.vcproj lcms/src/cmscam97.c lcms/testbed/testcms.c lcms/Projects/VC6/icc2ps.dsp lcms/Projects/VC7/icctrans.vcproj lcms/python/testbed/srgb2lab.py lcms/Projects/VC7/tifficc.vcproj lcms/filter.c lcms/Projects/VC6/lcms.dsp lcms/Delphi/delphidemo.cfg lcms/Projects/VC7/icc2ps.vcproj lcms/Projects/VC6/lcms.dsw lcms/Delphi/Samples/testwp.pas lcms/Projects/VC7/lcms.sln lcms/Projects/VC2008/tifficc.vcproj lcms/Projects/VC2005/resource.h lcms/python/testbed/whtpnt.py lcms/doc/TUTORIAL.TXT lcms/src/cmswtpnt.c lcms/Projects/VC2005/Python.vcproj lcms/Projects/BorlandC_5.5/mklcmsdll.bat lcms/include/Makefile.am lcms/Projects/VC7/jpegicc.vcproj lcms/install.gcc lcms/samples/wtpt.1 lcms/Projects/BorlandC_5.5/lcmsdll.lk lcms/src/cmserr.c lcms/makefile.simple lcms/Projects/BorlandC_5.5/lcms.rc lcms/samples/mkcmy.c lcms/src/cmsmtrx.c lcms/Makefile.am lcms/python/testbed/sRGB Color Space Profile.icm lcms/Projects/VC2008/jpegicc.vcproj lcms/Projects/VC7/lcmsdll.vcproj lcms/AUTHORS lcms/samples/icc2ps.1 lcms/Projects/VC2008/resource.h lcms/src/makefile.simple lcms/samples/mktiff8.c lcms/python/testbed/virtprf.py lcms/python/testbed/clamp.py lcms/Projects/BorlandC_5.5/lcmsdll.lst lcms/src/cmsvirt.c lcms/src/cmspcs.c lcms/src/cmsio0.c lcms/python/testbed/cam02.py lcms/Projects/VC6/resource.h lcms/src/cmsxform.c lcms/python/lcms.i lcms/src/cmsintrp.c lcms/Projects/VC2008/lcmsdll.vcproj lcms/jpegicc/jpegicc.1 lcms/COPYING lcms/Projects/VC2005/lcms.rc lcms/samples/icctrans.1 lcms/Projects/VC7/tiffdiff.vcproj lcms/src/cmscgats.c lcms/Projects/VC2008/lcms.rc lcms/tifficc/tifficc.1 lcms/src/cmscam02.c lcms/matlab/icctrans.matlab.pdf lcms/python/testbed/createmsh.py lcms/src/cmslut.c lcms/tifficc/Makefile.am lcms/Lib/MS/MS.TXT lcms/samples/wtpt.c lcms/Projects/VC6/tifficc.dsp lcms/Projects/VC7/Testbed.vcproj lcms/python/testbed/gamma.py lcms/samples/itufax.c lcms/python/Makefile.am lcms/Delphi/demo1.pas lcms/src/cmsgamma.c lcms/Projects/VC6/Python.dsp lcms/Projects/VC2008/Python.vcproj lcms/src/cmsnamed.c lcms/src/cmsxform.c.orig lcms/Projects/VC6/lcmsdll.dsp lcms/Projects/VC2008/Testbed.vcproj lcms/Projects/VC2005/lcms.vcproj lcms/python/testbed/AdobeRGB1998.icc lcms/samples/icc2ps.c lcms/tifficc/tiffdiff.c lcms/samples/makefile.simple lcms/Delphi/Samples/TEST.PAS lcms/src/cmssamp.c lcms/NEWS lcms/samples/Makefile.am lcms/Projects/VC2005/icctrans.vcproj lcms/Projects/VC2005/tifficc.vcproj lcms/Delphi/lcmsdll.pas lcms/Projects/VC2008/icctrans.vcproj lcms/include/icc34.h.in lcms/Delphi/delphidemo.dof lcms/Projects/VC6/lcms.opt lcms/src/cmsmatsh.c lcms/src/cmspack.c lcms/Projects/VC6/Python.plg lcms/jpegicc/jpegicc.c lcms/samples/icctrans.c lcms/Delphi/Samples/MAKETEST.BAT lcms/Projects/VC2005/icc2ps.vcproj lcms/ltmain.sh lcms/Delphi/Samples/gamutchk.pas lcms/tifficc/tifficc.c lcms/Projects/VC2005/lcms.sln lcms/src/cmsio1.c lcms/Projects/VC6/Testbed.dsp lcms/INSTALL lcms/Projects/VC7/icclink.vcproj lcms/jpegicc/makefile.simple lcms/jpegicc/Makefile.am lcms/Projects/VC2005/jpegicc.vcproj lcms/samples/icclink.1 lcms/Delphi/Samples/testfrm.pas lcms/Projects/VC6/jpegicc.dsp lcms/Projects/VC6/icctrans.dsp lcms/src/lcms.def lcms/Delphi/demo1.dcu lcms/Delphi/Samples/getxyz.pas lcms/matlab/icctrans.c lcms/ChangeLog lcms/Projects/VC2008/icclink.vcproj lcms/tifficc/getopt.c lcms/Lib/BC/BC.txt lcms/testbed/makefile.simple lcms/Projects/VC6/Testbed.plg lcms/Delphi/delphidemo.dpr lcms/testbed/Makefile.am lcms/Projects/VC2005/lcmsdll.vcproj lcms/Projects/VC7/resource.h lcms/Projects/VC7/Python.vcproj lcms/Delphi/demo1.ddp lcms/python/testbed/cam97.py lcms/jpegicc/iccjpeg.c lcms/python/testbed/constant.py lcms/Projects/VC2005/tiffdiff.vcproj lcms/python/testbed/srgb2xyz.py lcms/python/testbed/info.py lcms/jpegicc/iccjpeg.h lcms/Projects/VC2008/tiffdiff.vcproj lcms/Projects/VC2008/icc2ps.vcproj lcms/src/Makefile.am lcms/samples/icclink.c lcms/src/cmsgmt.c lcms/Projects/VC2005/Testbed.vcproj lcms/samples/mkgrayer.c lcms/include/lcms.h lcms/Delphi/delphidemo.res lcms/src/cmscnvrt.c lcms/python/swig_lcms lcms/doc/LCMSAPI.TXT lcms/python/testbed/sRGB2adobe.py lcms/tifficc/makefile.simple lcms/include/icc34.h lcms/src/cmsps2.c]

2010-05-24T22:02:13.500457Z Hin-Tak Leung

make all shell scripts in the lcms directory eol-style native.

[lcms/depcomp lcms/compile lcms/missing lcms/config.guess lcms/config.sub lcms/install-sh lcms/mkinstalldirs lcms/configure]

2010-05-24T18:36:16.496917Z Alex Cherepanov

Add missing EOL to the last line in one of the new ICC files because MSVC 6 requires this.

[base/gsiccmanage.c]

2010-05-24T16:31:58.315172Z Michael Vrhel

Merge of icc_work branch into trunk. These changes make the color architecture of the graphics library ICC-based. All colors are now managed in terms of ICC profiles including PS CIE color spaces, for which equivalent ICC profiles are created. A big feature of this change is that it makes it very easy to interface a color management module (CMM) to ghostscript. The default CMM is now littleCMS and the interface to littleCMS is contained in gsicc_littlecms.c . New member variables were added to the imager state including an ICC manager, which stores the default ICC profiles; a link cache, which reduces the cost of creating links between ICC profiles, and a profile cache which stores color spaces created from PS CIE, PDF CalRGB and PDF CalGray colors spaces. A new directory named iccprofiles has been added. It contains the default ICC profiles used if none are specified in the command line. If COMPILE_INITS=1, these will be included in the ROM file system. The new command line options related to ICC profiles are described in the Use.htm documentation. For c-list based rendering, all ICC profiles used in the rendering are stored in the c-list. During multi-threaded c-list reading, a link cache is associated with the primary reader device and is shared amongst the various threads. Efficiency improvements were made in the handling of soft mask groups, shading smoothness calculations, and color image rendering. For details on the branch, please see the commits that were made within the branch. There remain indeterminisms to fix. The files affected include Bug688807.pdf, Bug688845.eps, Bug690208.pdf, 09-34.PS, CATX0988.pdf, CATX1028.pdf, CATX1101.pdf, CATX5529.pdf. Rendering issues to investigate include Bug689830.pdf, fts43xx.xps (page 3) (shopping cart image), Bug689880.pdf, Bug691002.pdf, Bug689968.pdf, Bug688584.ps (page 4), catx4949.pdf. Note that the number of differences generated with the merge amounts to pretty much every file. Thanks to everyone who helped and provided input in this work, especially Ray Johnston.

[base/gdevpdfk.c base/gxclimag.c doc/Use.htm base/gdevdflt.c psi/icie.h base/gxpcmap.c base/gxpcolor.h lcms base/gscsepr.c base/gxshade4.c base/gxclthrd.c base/gxcmap.c base/gscscie.c base/gdevwts.c base/gsistate.c base/msvclib.mak base/gxclpage.c base/gscolor2.c base/gsicc_profilecache.c base/gxistate.h base/gscolor2.h base/gsicc_profilecache.h iccprofiles base/gdevp14.c base/gsicc_create.c base/gdevp14.h base/gsicc_create.h psi/write_t2.c psi/zusparam.c base/gdevpbm.c psi/zcolor.c psi/ztrans.c base/gdevpdft.c base/gxshade1.c /trunk/gs base/gdevpsdi.c psi/ireclaim.c psi/os2.mak base/watclib.mak Resource/Init/gs_lev2.ps base/gdevpsdu.c base/gscie.c base/gxclutil.c base/gscolor3.c base/gdevpsd.c base/gscie.h base/gxiscale.c base/gxcldev.h Resource/Init/gs_res.ps base/gxifast.c base/gxdevcli.h base/openvms.mak base/watcw32.mak base/gscms.h psi/msvc32.mak base/gsalloc.c base/lcms.mak base/gxp1fill.c base/gximage.h base/gsciemap.c base/gdevpx.c psi/zcsdevn.c base/ugcclib.mak base/unix-gcc.mak base/gsovrc.c base/gxcie.h base/macos-mcp.mak base/gxshade6.c base/macosx.mak base/gsccolor.h base/gdevrinkj.c base/unixansi.mak base/devs.mak base/gsicc.c base/gxipixel.c base/lib.mak psi/zimage.c base/gsicc.h psi/dxmain.c psi/dxmainc.c Resource/Init/pdf_draw.ps base/gscolor.c Resource/Init/pdf_ops.ps psi/zdevice.c psi/zcie.c psi/zdpnext.c base/gxclist.c psi/zcie.h base/gximono.c base/gxidata.c base/gstrans.c psi/iimage.h base/gdevpdfb.c base/gxclist.h base/gxshade.c base/gstrans.h base/gxclrast.c psi/zncdummy.c base/gxshade.h toolbin/color base/gsiccmanage.c base/Makefile.in base/gdevpdfv.c base/gsiccmanage.h base/gsicc_littlecms.c base/gxclpath.c base/gsicc_littlecms.h psi/icontext.c base/gxclpath.h base/gsstruct.h base/gdevxcf.c base/gxicolor.c base/gscspace.c base/gdevimdi.c base/gscdevn.c base/gscolor1.c base/gxclread.c base/gscspace.h base/bcwin32.mak base/gsdparam.c base/gs.mak psi/zshade.c base/gdevbbox.c psi/int.mak base/gxcspace.h psi/zicc.c base/gsstate.c base/winlib.mak base/gsicccache.c psi/zicc.h psi/zimage3.c base/gsicccache.h base/gdevpdfc.c base/gstparam.h base/gxblend.c base/gdevpdfg.c base/gxblend.h]

2010-05-24T02:01:13.653152Z Alex Cherepanov

Recognize Corel tint transform function and replace it with an equivalent calculator function. Bug 690986.

[psi/zfunc4.c]

2010-05-23T00:15:25.592930Z Alex Cherepanov

Decide whether load a CFF font as a simple font or a CIDFont based on the /Subtype of the font object instead of the /Subtype of the font stream. Acrobat appears to ignore the latter. Bug 691334.

[Resource/Init/pdf_font.ps]

2010-05-22T09:17:30.088324Z Ken Sharp

Explicit pointer cast to silence a gcc compiler warning.

[base/gxp1fill.c]

2010-05-21T15:16:07.910956Z Alex Cherepanov

Following Acrobat implementation but contrary to TTF spec, consider cmap entry that has endCode < startCode as an entry with endCode == startCode. According to the spec, "to use these arrays, it is necessary to search for the first endCode that is greater than or equal to the character code to be mapped. If the corresponding startCode is less than or equal to the character code ...". I.e. an entry with endCode < startCode should have no effect. Thanks to Ken for the patch. Bug 691326.

[Resource/Init/gs_ttf.ps]

2010-05-21T08:14:56.354805Z Ken Sharp

Fix: device reference counting problem with patterns and clipping Bug #690572 more details here. The problem was caused by installing a clip device while drawing a pattern tile. This patch initialises the finalize member of the structure where the clip device will be created to NULL. If a clip device is required, the member will be initialised to a real routine. After drawing the pattern cell, if the finalize routine is non-NULL we execute it. This correctly dereferences the forwarded device if we create a clipping device.

[base/gxp1fill.c]

2010-05-21T06:35:11.431787Z Hin-Tak Leung

adding missing dependencies so that setupgs and uninstgs can be built ahead or independent of the main targets

[psi/winint.mak psi/msvc32.mak]

2010-05-20T07:31:06.101672Z regression

The clustermaster.pl code now checks the pid in the lock file to see if the task is running. Also no longer test pdfwrite with the language switch build.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl]

2010-05-20T06:24:43.585523Z Hin-Tak Leung

Fix up the eol-style of the rest of the executable files by hand. Remove executable bit from toolbin/bmpcmp.c

[toolbin/bmpcmp.c jbig2dec/ltmain.sh tiff/config/ltmain.sh libpng/contrib/pngminim/encoder/gather.sh libpng/contrib/pngminim/preader/gather.sh libpng/scripts/libpng-config-body.in libpng/contrib/pngminim/decoder/gather.sh toolbin/tests/gsvalidate.py]

2010-05-20T06:10:20.265063Z Hin-Tak Leung

Set other type of shell script as native text. find . -type f -executable -exec file {} \; | \ grep 'script text executable' | grep -v 'POSIX' | \ cut -f 1 -d ':' |xargs -n 1 svn propset svn:eol-style native

[toolbin/localcluster/bmps2html.pl toolbin/tests/dump_checksum.py toolbin/tests/gscheck_testfiles.py toolbin/tests/dump_checksum_plus.py toolbin/localcluster/readlog.pl toolbin/search-svn-revs toolbin/localcluster/clustermonitor.cgi toolbin/localcluster/clusterpush.pl toolbin/tests/dump_checksum_raw.py toolbin/localcluster/compare.pl toolbin/localcluster/comparerevs.pl toolbin/tests/find_unique_file.py toolbin/localcluster/clustermaster.pl toolbin/localcluster/weekly.sh toolbin/localcluster/build.pl toolbin/tests/build_revision.py toolbin/htmldiff.pl toolbin/tests/compare_checksumdb.py toolbin/tests/update_baseline.py toolbin/tests/make_baselinedb.py toolbin/tests/validate.py toolbin/bugsByEngineer.pl toolbin/localcluster/clusterpull.sh toolbin/tests/regen_filelist.py toolbin/localcluster/pngs2html.pl toolbin/localcluster/nightly.pl freetype/builds/mac/ascii2mpw.py toolbin/tests/compare_checksums.py toolbin/tests/run_nightly.py toolbin/tests/regen_baseline.py toolbin/tests/myoptparse.py toolbin/tests/get_baselines.py toolbin/tests/run_regression.py toolbin/localcluster/setupcluster toolbin/localcluster/clustermonitor.pl toolbin/tests/testdiff.py toolbin/tests/updatelistpdf.py toolbin/tests/run_series.py toolbin/tests/updatelist.py toolbin/localcluster/run.pl toolbin/tests/get_baseline_log.py toolbin/performance.pl toolbin/localcluster/cachearchive.pl toolbin/tests/make_testdb.py toolbin/tests/collate.py]

2010-05-20T06:01:41.643170Z Hin-Tak Leung

Set all identifiable shell script as native text find . -type f -executable -exec file {} \; | \ grep 'POSIX shell script text executable' | \ cut -f 1 -d ':' |xargs -n 1 svn propset svn:eol-style native

[libpng/missing cups/pstoraster.in libpng/test-pngtest.sh cups/pstopxl.in libpng/install-sh jbig2dec/configure libpng/configure contrib/pcl3/ppd/catppd toolbin/clusterpush.sh libpng/depcomp jpeg/install-sh jbig2dec/config.guess contrib/pcl3/lib/if-pcl3 freetype/configure libpng/config.guess jasper/configure tiff/config/missing jbig2dec/config.sub jpeg/configure libpng/config.sub tiff/config/install-sh jpeg/config.guess zlib/configure jpeg/config.sub tiff/config/depcomp libpng/scripts/libpng-config-head.in tiff/config/compile libpng/scripts/libpng-config.in libpng/autogen.sh tiff/config/config.guess jbig2dec/mkinstalldirs jpeg/ltconfig tiff/config/config.sub libpng/mkinstalldirs contrib/epson740/ps-to-printer.fpi_rh5.2 jasper/acaux/missing jasper/acaux/install-sh tiff/autogen.sh freetype/builds/unix/install-sh freetype/builds/unix/mkinstalldirs tiff/configure jasper/acaux/depcomp jasper/acaux/compile tiff/config/mkinstalldirs jasper/acaux/config.guess contrib/pcl3/lib/cups-pcl3 jasper/acaux/config.sub]

2010-05-20T05:52:35.456761Z Hin-Tak Leung

Avoid raw carriage returns in configure which confuses svn This is a known bug apparently of autoconf 2.63 which was fixed. Here is the upstream log entry: http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=cb34ecf 2008-10-27 Eric Blake <ebb9@byu.net> Avoid raw carriage return in scripts. * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR via tr, rather than with literal byte. * THANKS: Update. Reported by Steven R. Loomis; patch suggested by Thomas Dickey.

[jbig2dec/configure]

2010-05-19T14:51:38.835112Z Robin Watts

Some work towards (but not a complete cure for) bug 691030. Previously XXX_slant_into_trapezoids would check for 2 'simple' cases, and bale into the fully general fill_slant_adjust function otherwise. The simple cases were where the top span was a subset of the bottom one, or vice versa. Unfortunately the way the code to test for these cases was originally written, one of these special cases could be used for shaped with vertical sides, and the other couldn't. By rewriting the test slightly, both cases can be used with trapezoids that have one vertical side. For good measure we also extract the 'rectangle' case out separately. Cluster testing shows no differences (barring a couple of indeterminisms). This reduces the output from 5 shapes (2 rectangles, 3 traps) to 3 (2 rectangles, 1 trap). One of the rectangles is still a repeat, but it's a step in the right direction.

[base/gxfillts.h]

2010-05-19T10:09:05.486708Z Masaki Ushizaka

Bug 691291. Fix reading uninitialized memory. The change I made in r10603 had a problem comparing with uninitialized data when using Roman fonts. The side effect was slowing down font rendering a little. In this change I added extra initializer and made intention of the 'if' condition more clear. No difference on outputs expected nor observed by localcluster tests.

[base/gschar0.c]

2010-05-19T07:42:20.717044Z Masaki Ushizaka

Follow-up to r11278. Removing jbig2dec/config.h. r11278 enabled jbig2dec/configure to be run. I agree with the change but jbig2dec/config.h was also under subversion control. With r11278, after someone runs 'configure' or 'autogen.sh', jbig2dec/config.h become modified status. jbig2dec/config.h doesn't need to be here. Deleting. Related bug: 691304 & 691312.

[jbig2dec/config.h]

2010-05-18T22:40:39.023883Z Hin-Tak Leung

define -DHAVE_CONFIG_H and run jbig2dec/configure from top-level configure. The fixes some portability issues seen on opensolaris; further follow-up to bug 691304

[base/Makefile.in base/configure.ac]

2010-05-18T22:29:47.346946Z Hin-Tak Leung

typo in one word. bug 691323

[doc/Readme.htm]

2010-05-18T22:23:13.250745Z regression

Minor changes to cluster code: support language switch build testing recover from disk full errors automatically create directories needed for new nodes in run.pl

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/clusterpull.sh toolbin/localcluster/run.pl]

2010-05-18T12:22:48.908526Z Masaki Ushizaka

Disabling compiler warnings for discarding 'const'.

[jasper/src/libjasper/base/jas_image.c jasper/src/libjasper/include/jasper/jas_image.h]

2010-05-18T08:55:18.202611Z Chris Liddell

Bug 691313: remove the IBM Omni driver from the default build on Linux. Previously it could be excluded by giving configure "--without-omni", this revision reverses the logic, so Omni can be include by giving configure "--with-omni".

[base/configure.ac]

2010-05-18T04:32:25.607601Z Marcos H. Woehrmann

Change the order in which jobs that take too long are killed on the cluster nodes to prevent leftover jobs when running bmpcmp.

[toolbin/localcluster/run.pl]

2010-05-17T15:48:38.534341Z Ken Sharp

Fix - type 1/CFF font interpreter. The gs_type1_piece_codes routine interprets a type 1 or CFF glyph program to determine whether the glyph is composed of two subglyphs (a SEAC). There was a problem with the CFF opcode cntrmask which did not cater for the case where it is called with a number of operands on the stack. In this case the operands are to be interpreted as vstem hints. Because this was not done, the interpreter had the wrong number of hints, and so did not interpret enough of the following bytes as mask data for the cntrmask operation. This led to attempting to interpret data as operands, which caused corrupted glyphs as well as potential crashes. This does not appear to be tested by any of our current test files (according to a cluster test), so no differences are expected.

[base/gxtype1.c]

2010-05-17T08:25:06.874101Z Ken Sharp

white space change only, committed to make a regression run as the test for the previous revision was interrupted.

[psi/write_t1.c]

2010-05-17T07:55:43.268496Z Ken Sharp

Silence some compiler and make warnings.

[psi/write_t1.c psi/int.mak psi/write_t1.h]

2010-05-17T04:39:57.140765Z Hin-Tak Leung

adding check for header stringprep.h; fix bug 691312

[base/configure.ac]

2010-05-17T03:59:31.965365Z Hin-Tak Leung

Fixes portability issue properly with r11256 (which is identical with r11520), first discovered by Ralph 6 months ago with r10520 which results in its being reverted in r10540 . ****************************** Revert c10520 which causes problems with the MSVC build. $(CC_) enforces 'ansi' C under msvc32.mak, disabling any Microsoft extensions. This often causes problems with 3rd party libraries which try to take advantage of those extensions. This means that the -fPIC flag is again not propagated in the GCC build; this is just to unbreak the build until I can test a different solution which works on both platforms. ****************************** As Ralph explained then, some of libtiff requires non-ansi extensions to work. The main culpit is tif_win32.c (which includes <windows.h>) and some of the file IO flags not being defined. So this commit fix the ansi issue properly.

[tiff/libtiff/tiffiop.h base/libtiff.mak]

2010-05-17T03:47:02.654413Z Hin-Tak Leung

fix windows build breakage in r11249 This change (defining TIFFCONFIG_SUFFIX) should have been part of r11249 (create tif_config.h for non-autoconf build) which in turn should have been part of r11241 (hook up libtiff with non-autoconf build via "make -f base/unix-gcc.mak" and "make -f base/unixansi.mak") The explanation is that in r10317 where Lars originally hooked up libtiff, tif_config.h is generated by libtiff/configure (which is driven by the top-level configure), but special provision is provided for non-autoconf build (win32 and VMS) by copying from a canned header file. If one chooses to bypass the top-level configure, *on every platform* (win32, VMS, and non-autoconf unix build), one must provide similiar special provision as well. Personally I'll prefer not to support non-autoconf unix build.

[base/unix-gcc.mak base/unixansi.mak base/libtiff.mak]

2010-05-16T18:32:40.253209Z Marcos H. Woehrmann

Changes to the nightly regression testing system to support weekly testing.

[toolbin/localcluster/nightly.pl toolbin/localcluster/weekly.sh toolbin/localcluster/runNightly.pl toolbin/localcluster/run.pl]

2010-05-15T10:57:14.279373Z Hin-Tak Leung

rename PDEP to TIFFDEP to avoid clashing with PDEP from libpng.mak; bug 691299

[base/libtiff.mak]

2010-05-15T10:55:47.722308Z Hin-Tak Leung

comment out a later duplcate definition; bug 691299

[base/lib.mak]

2010-05-15T09:50:05.378608Z Hin-Tak Leung

latest version of these files from Adobe's web site: http://download.macromedia.com/pub/opensource/cmap/

[Resource/CMap/UniGB-UTF8-H Resource/CMap/UniJIS2004-UTF32-H Resource/CMap/UniJIS2004-UTF16-H Resource/CMap/UniJIS2004-UTF8-H Resource/CMap/UniCNS-UTF32-H Resource/CMap/UniJISX0213-UTF32-H Resource/CMap/UniCNS-UTF16-H Resource/CMap/UniJIS-UTF32-H Resource/CMap/UniCNS-UTF8-H Resource/CMap/UniJIS-UTF16-H Resource/CMap/UniGB-UTF32-H Resource/CMap/UniJIS-UTF8-H Resource/CMap/UniJISX02132004-UTF32-H Resource/CMap/UniGB-UTF16-H]

2010-05-15T09:46:15.270585Z Ken Sharp

Add skeleton support for the Bitstream font engine. In its current form this only allows for type 1 PostScritp fonts, CFF is trivial to add, as should be support for Bitstream's own compressed format. Addition of type 42/TrueType fonts should be patterned after FreeType, as there is support in Bitstream for a callback to provide TrueType outlines. There is no such provision for PostScript fonts. To build; define BITSTREAM_BRIDGE=1 and BITSTREAM_ROOT="", the root should point one level above the 'core' directory. In the current code this would be : "/bitstream/FontFusion 4.5a SDK"

[psi/zfapi.c psi/ifapi.h psi/write_t1.c psi/int.mak psi/msvc32.mak psi/fapibstm.c]

2010-05-15T08:17:59.395641Z Hin-Tak Leung

better way of defining SOC_LOADER when try ing to do "make -f base/unix-gcc.mak so"

[base/unix-dll.mak base/unix-gcc.mak]

2010-05-15T08:06:46.613460Z Hin-Tak Leung

The final part of trying to "ln -s base/unix-gcc.mak Makefile ; make so" work. There were some fundamental problems with the older version: The so target really should be built in three distinct stages with three different FLAGS - the utils (genarch, gechogs) executable part, the shared library part, and the two final executable part. The library should be built with the shared-object flags, but neither of the utils nor the final executables should be built with "-shared", since they are executables and not libraries. Hope this is clear. There is also a little problem from SOC_LOADER not being defined if this file is not used from ./configure's Makefile.

[base/unix-dll.mak]

2010-05-15T07:58:16.778296Z Hin-Tak Leung

use CC_ instead of CC like everywhere else, to make the "so" target work

[base/libtiff.mak]

2010-05-15T06:30:20.380857Z Hin-Tak Leung

"-shared" is a linker flag and not a compiler (object code generation) flag; another piece of trying to make "make -f base/unix-gcc.mak" work

[base/unix-gcc.mak]

2010-05-15T06:27:41.486639Z Hin-Tak Leung

try to make 'make -f base/unix-gcc.mak so' work When not run through ./configure, HAVE_CONFIG_H isn't defined and the jbig2 codes drop through to generic unknown unix platform - so we put some generic unix values here.

[jbig2dec/os_types.h]

2010-05-15T06:23:35.840946Z Hin-Tak Leung

correct documentation on how make so should work - ./configure --enable-dynamic is required

[doc/Make.htm]

2010-05-15T03:36:29.389869Z Hin-Tak Leung

adding new header dependencies from the recent remove-globals effort

[base/lib.mak]

2010-05-15T03:13:49.664716Z Hin-Tak Leung

adding a needed include to silent a compiler warning introduced by the recent remove-globals effort

[base/gslibctx.c]

2010-05-15T03:12:31.280935Z Hin-Tak Leung

another fix to bug 691306 This was broken in r2746 (June 2002) which nobody has noticed for 8 years. This code path is only used for 'make -f unixansi.mak' (very generic unix cc compiler).

[base/gp_unifs.c]

2010-05-15T03:09:09.671905Z Hin-Tak Leung

generate tif_config.h if it is not there. part of fixes to bug 691306

[base/libtiff.mak]

2010-05-15T03:06:53.120732Z Hin-Tak Leung

adding comments about the vga devices being Linux specific

[base/unix-gcc.mak]

2010-05-15T03:05:54.250134Z Hin-Tak Leung

part of fix to bug 691306. These two devices has been broken since r2925 (DeviceN, August 2002), but not built by default at all. They were blindly enabled in unix-gcc.mak amongst the ESP merge from Till, and it would appear that nobody has noticed since the merge (8.57-8.60) until now.

[base/gdevl256.c base/gdevvglb.c]

2010-05-15T02:58:14.802157Z Hin-Tak Leung

freetype2 dependency in base/unixansi.mak to make "make -f base/unixansi.mak" work; another part for bug 691306

[base/unixansi.mak]

2010-05-15T02:57:22.770443Z Hin-Tak Leung

freetype2 dependency in base/unix-gcc.mak to make "make -f base/unix-gcc.mak" work; bug 691306

[base/unix-gcc.mak]

2010-05-15T02:55:30.474135Z Hin-Tak Leung

add documentation about the default internal resolution for pdfwrite is 720dpi

[doc/Ps2pdf.htm]

2010-05-15T02:54:08.145913Z Hin-Tak Leung

add documentation about how to force-embedding the basic 14 fonts

[doc/Ps2pdf.htm]

2010-05-15T02:52:47.037525Z Hin-Tak Leung

fix an obvious typo in the makefile

[base/libtiff.mak]

2010-05-14T16:46:05.198340Z Marcos H. Woehrmann

Added support to unix-gcc.mak and unixansi.mak to build/use libtiff (also fixed some typos and made the device lists more similar). Note because of the FreeType code these files do not work with the current head (they work with ghostscript-8.71). Fixes Bug 691301.

[base/unix-gcc.mak base/unixansi.mak]

2010-05-14T04:23:14.678757Z Hin-Tak Leung

remove one extra tab introduced in r10994; non-GNU Make on Tru64 and HP-UX is picky. Bug 688184 and bug 691299

[psi/psromfs.mak]

2010-05-14T04:20:29.682174Z Hin-Tak Leung

HP compiler quirk - apparently the same workaround is needed for SUN Pro C and GCC 1.x (see a few lines before this change) ; bug 688184

[contrib/opvp/opvp.h]

2010-05-14T04:18:42.997881Z Hin-Tak Leung

uint8_t type located in usual header on HP-UX needed for jbig2dec ; bug 688184

[jbig2dec/os_types.h]

2010-05-14T04:16:54.357328Z Hin-Tak Leung

fix conflicting types against HP-UX system header in jasper; bug 688184

[jasper/src/libjasper/include/jasper/jas_types.h]

2010-05-13T20:08:08.900471Z Robin Watts

Nudge the windows solution/makefiles closer to supporting 64 bit builds by defining WIN64 and amending makefiles to pass the define on through recursive calls.

[/trunk/ghostpdl/win32/xps.vcproj ghostscript-ufst.vcproj ghostscript.vcproj /trunk/ghostpdl/win32/pcl.vcproj /trunk/ghostpdl/win32/svg.vcproj psi/msvc32.mak /trunk/ghostpdl/main/pcl6_msvc.mak /trunk/ghostpdl/win32/language_switch.vcproj]

2010-05-13T16:49:47.848287Z Hin-Tak Leung

adding NULL check before closedevice - bug report 691296 and patch from Tim Waugh. Thanks.

[base/gdevbbox.c]

2010-05-13T08:55:42.013750Z Ken Sharp

Changes only in white space, to provoke another regression test.

[psi/zfapi.c]

2010-05-13T08:30:02.236776Z Ken Sharp

No changes, just an attempt to provoke some regression runs.

[psi/zfapi.c]

2010-05-13T08:05:16.555333Z Ken Sharp

Fix FAPI interface There is code in the FAPI interface for replacing a font's /FontBBox entry, this sometimes has to create a new array to insert into the dictionary, if the old array is not suitable for storing real values. The code to do this continued using ref_assign_old, as it had done for replacing the values in an existing array. This appears to be incorrect, when created the refs in a new array are uninitialised so attempting to use ref_assign_old tries to use uninitialised data. Modified to use ref_assign_new instead, as indicated by the comments in store.h This *may* reduce some of the non-deterministic behaviour, possibly with files such as ShadowText.eps

[psi/zfapi.c]

2010-05-12T08:44:16.052741Z Chris Liddell

Elimate an irksome compiler warning introduced in r11221

[psi/zcolor.c]

2010-05-12T01:43:18.946640Z Hin-Tak Leung

adding documentation about the -dDisableFAPI=true switch in various places

[doc/Use.htm doc/Make.htm]

2010-05-11T22:05:22.389565Z regression

The local cluster now tests the language switch build (ls).

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl toolbin/localcluster/clusterpush.pl toolbin/localcluster/run.pl toolbin/localcluster/clusterpush.txt]

2010-05-11T21:21:19.118628Z Robin Watts

Add x64 platform target to Visual Studio projects. I can't test it myself due to not having a 64bit Windows setup, but it at least starts building and then falls over when it tries to run a 64bit exe as part of the build process.

[/trunk/ghostpdl/win32/xps.vcproj ghostscript-ufst.vcproj /trunk/ghostpdl/win32/pcl.vcproj /trunk/ghostpdl/win32/svg.vcproj /trunk/ghostpdl/win32/language_switch.vcproj]

2010-05-11T21:02:09.407086Z regression

Minor improvement to cluster node log collection code.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/run.pl]

2010-05-11T20:41:10.123188Z Robin Watts

bmpcmp was reporting the wrong page number for images, due to me forgetting to increment the imagecount when images were loaded. Fixed here.

[toolbin/bmpcmp.c]

2010-05-11T17:25:01.376580Z Chris Liddell

Bugs 690356 and 690832: have the colour space object take a copy of string data associated with an indexed colour space lookup table. This prevents the colour space finalising code (gx_final_Indexed) freeing the contents of a Postscript object which may still be in use.

[psi/zcolor.c]

2010-05-11T15:44:21.967848Z Ken Sharp

Fix (FAPI) The PDF interpreter, when a font is missing, and it has the 'small caps' flag set, creates a substitute by altering the CharStrings of the substitute font, replacing the lower case glyph CharStrings with procedures which 'show' the upper case glyph at a reduced size. This ends up in the FAPI code as a t_mixedarray type which was being missed by the check for a t_array, added previously to handle arbitrary procedures in a type 1 font. After extending the check to include t_mixedarray it was clear that the SEAC processing was also messing up the dictionary lookup, so it was necessary to restore a value which had been overwritten in case a SEAC turned up. zero-length-font.pdf should now work as it does without FAPI, no other differences expected.

[psi/fapi_ft.c psi/zfapi.c]

2010-05-11T14:34:32.672494Z Chris Liddell

Revise the UFST interface code for PCL/PXL and GS to work with the changes to eliminate global variables in the Artifex code base. NOTE: the UFST_REENTRANT configuration was broken, and still is (it has been since the creation of gxfapiu.[ch] files. To be resolved in the future. At this time, therefore, no build integrating UFST can be thread safe.

[/trunk/ghostpdl/pl/plulfont.c psi/fapiufst.c base/gxfapiu.c base/gxfapiu.h]

2010-05-11T13:24:43.420456Z Robin Watts

Fix for bug 691249 - error caused by failing to initialise new member of libctx that was previously a global. We now memset the contents of libctx to 0 after mallocing it, and then explicitly set the non-zero/NULL/false values. This is safer long term as it protects us from making the same mistake in future.

[base/gslibctx.c]

2010-05-11T12:41:44.704781Z Hin-Tak Leung

replace "/*" by "<slash><star>" to avoid compiler warning about comments inside comment

[base/mkromfs.c]

2010-05-11T11:55:10.416074Z Michael Vrhel

Debug code for helping in debug of 689737. The pattern that is created is 1 bpp. With this code the pattern bit map is dumped for opening with photoshop as a raw 8bit image. The source of the problem appears to be incorrect creation of the pattern bit map when GraphicAlphaBits is set to greater than 1.

[base/gxpcmap.c]

2010-05-11T09:35:16.657505Z Ken Sharp

Fix (fonts) Bug #691290 "new freetype code gives error /typecheck in definefont" When creating a Decoding from an Encoding array, treat null objects the same as /.notdef (ie not encoded). No differences expected.

[Resource/Init/gs_fntem.ps]

2010-05-10T15:17:25.103327Z Ken Sharp

Fix (FreeType) : illegal use of setcurrentpoint not handled as per Adobe. Bug #691172, file type1-ce1_setcurrentpoint.ps The PostScript file includes a font which illegally uses setcurrentpoint to establish an absolute x/y position. The spec is quite clear that this operator is *only* meaningful when processing the results of an OtherSubr, so this usage is definitely illegal. Not only does it use setcurrentpoint but, unlike previous uses we have seen, it does not simply establish 0,0 as the initial point, which can be safely ignored, it actually uses it to displace the outline vertically. FreeType normally just puts two uninitialised variables on the stack, ignores the setcurrentpoint and pops the two dummy values. Instead, we now push the current x and y co-ordinates when we get a '0 callothersubr'. In setcurrentpoint we then use the top two values on the stack to set the current point. This now works for the illegal usage seen here, the previous illegal usage, and does not break well-formed fonts which actually use the OtherSubrs to set the point.

[freetype/src/psaux/t1decode.c]

2010-05-10T12:29:09.676516Z Michael Vrhel

Retry of fix for Bug 69048 (this one actually builds...) Again this should only be a factor when using GraphicsAlphaBits. The fix was to make sure that when GraphicsAlphaBits is used we initialize the pattern bits buffer. Otherwise the get_bits operation used during the gx_default_copy_alpha grabs uninitialized memory. Since we do not test with GraphicsAlphabits in the regression testing I don't expect there to be any differences.

[base/lib.mak base/gxpcmap.c base/gxdevmem.h base/gdevabuf.c base/gspaint.c]

2010-05-10T01:57:42.574530Z Michael Vrhel

Reversion to 11210 until I figure out what went wrong...

[base/gsutil.h base/lib.mak base/gxpcmap.c base/gspaint.c base/gsutil.c]

2010-05-09T23:10:59.799862Z Michael Vrhel

Fix for Bug 690487. This should only be a factor when using GraphicsAlphaBits. The fix was to make sure that when GraphicsAlphaBits is used we initialize the pattern bits buffer. Otherwise the get_bits operation used during the gx_default_copy_alpha grabs uninitialized memory. Since we do not test with GraphicsAlphabits in the regression testing I don't expect there to be any differences.

[base/gsutil.h base/lib.mak base/gxpcmap.c base/gspaint.c base/gsutil.c]

2010-05-08T22:30:46.926748Z Alex Cherepanov

Update license headers of a few retaining files with AFPL header. Bug 691285.

[Resource/Decoding/StandardEncoding Resource/Decoding/Latin1]

2010-05-08T21:22:13.614092Z regression

Whitespace changes only.

[toolbin/localcluster/run.pl]

2010-05-08T21:12:23.981766Z regression

Minor changes to cluster software: Check svn commands for errors and retry. Gather individual logs and md5sums after each job is completed rather than at the end of all jobs.

[toolbin/localcluster/run.pl]

2010-05-08T20:47:25.658412Z Marcos H. Woehrmann

Minor changes to the cluster software: Added a lock file to the clusterpull.sh task Updated the documentation to explain how to temporarily disable a node.

[toolbin/localcluster/clusterpull.sh toolbin/localcluster/readme]

2010-05-08T15:56:46.469253Z Alex Cherepanov

Detect and break an infinite loop when some of the image data source are at EOF, some are not, and the image code doesn't take more data. Bug 691285.

[psi/zimage.c]

2010-05-08T09:59:55.023824Z Ken Sharp

Initialise a structure to silence a Coverity warning.

[base/gdevpdfj.c]

2010-05-08T08:57:57.923764Z Ken Sharp

Really, properly, silence the gcc compiler this time....

[base/gdevpdte.c]

2010-05-07T14:30:08.276765Z Ray Johnston

Fix clist_band_height to use the macro defined in gxband.h as other code does to prevent future bitrot. Also use macros for the clist_ cfname, cfile, bfname, bfile.

[base/gxclist.h]

2010-05-07T14:23:18.978837Z Ray Johnston

Fix number of elements in the BAND_PARAMS_INITIAL initializer macro to correspond to the size of gx_band_params_t (needed since rev 5751).

[base/gxband.h]

2010-05-07T12:16:50.113521Z Ken Sharp

Silence some compiler warnings about not checking the return value from fread.

[base/gdevpdf.c base/gdevpdfu.c]

2010-05-07T12:12:47.989467Z Ken Sharp

Initialise the members of a local structure to silence a (spurious) compiler and Coverity warning.

[base/gdevpdte.c]

2010-05-07T08:17:29.050795Z Ken Sharp

Silence a GCC compiler warning, no differences expected.

[psi/zfapi.c]

2010-05-06T16:04:27.459137Z Robin Watts

Remove gs_debug_out global variable as it is never used. No differences expected or seen with local cluster testing.

[base/bench.c base/gsmisc.c]

2010-05-06T16:03:43.016324Z Robin Watts

Update overprint device to avoid writing back to 3 global variables ({generic,no,sep}_overptint_procs). We still have those global variables but each instantiated device takes copies of them and does any writing back into the copies. This is part of the work for bug 691207. No differences expected or shown by local cluster testing.

[base/gsovrc.c]

2010-05-06T16:00:28.103268Z Robin Watts

Move gs_interp_reschedule_proc, gs_interp_time_slice_proc, and gs_interp_time_slice_ticks into context to avoid global variables as part of the work for bug 691207. No differences expected or seen with local cluster testing.

[psi/icontext.c psi/zcontext.c psi/icstate.h psi/interp.c]

2010-05-06T15:25:10.815510Z Ken Sharp

Fix (FAPI & FreeType) Bug #691284 "Error: /unknownerror in --.FAPIBuildChar" The issue is caused because the PostScript file adds to an existing type 1 font a CharString entry which is not in type 1 CharString format. I would have thought this to be illegal but other PostScript interpreters (specifically Distiller) are happy with it. Modifed the FAPI interface so that after retrieving a type 1, non-CID, CharString we test to see if it is a procedure, if it is, then we return an error from the FAPI code to the caller (in this case the FreeType interface). Modified the FreeType interface so that if the CharString retrieval returns an error we return a specific (otherwise unused) error to the caller, in this case the FreeType engine. On return from FreeType to the interface we test for the specific FreeType error (FT_ERR_Invalid_File_Format) and if this is detected then instead of returning an error to FAPI, we add one to the character index (to ensure it isn't 0) and return that to FAPI. Finally, in the FAPI code, after 'rendering' the glyph, if we were returned a value > 0 then we assume that 'something went wrong' with the CharString. As a last-ditch effort we use the return value -1 to retrieve the CharString, and then 'exec' it. NB if we fail to retrieve the CharString at this level, we return an invalidfont error.

[psi/fapi_ft.c psi/zfapi.c psi/ifapi.h]

2010-05-06T03:04:41.737028Z Alex Cherepanov

Fix compilation errors on Visual C that wants "ui64" suffix instead of "ULL" for "unsigned long long" numerals.

[base/sha2.c]

2010-05-05T20:30:19.371369Z Robin Watts

Remove 2 unused globals. These should have been removed as part of 11146. No differences expected.

[psi/iinit.c]

2010-05-05T19:58:05.790577Z regression

Minor changes to the local cluster: Report md5sum differences even in files that generate an error during processing. Archive the email and log files for all revisions, including those which had compile errors.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/compare.pl]

2010-05-05T18:14:21.583279Z Robin Watts

More work towards bug 691207 (global variable removal). There are 4 places is xps where we do eprintfs that access mem_err_print. This resolves 1, the other 3 should never be called in files we support. Resolve 4 const warnings from jasper. Remove 2 calls to gs_lib_ctx_get_non_gc_memory_t from the cups driver. This means the only places left calling this are devices in gs\contrib. Convert calls to errprint_nomem to calls to errprint (in gdevx.c, gxttb.c, gdevupd.c) The only places using mem_err_print are therefore: * calls to debug printing functions * devices in gs/contrib calling gs_lib_gtx_get_non_gc_memory, errprint_nomem, and eprintf. * jasper calling eprintf. * gdevsco.c (but that seems intrinsically single threaded to me as only one thing can be using the console at a time, presumably) * signal handlers in os2 and iwatc for catching numeric exceptions. * Various devices in gs/base still call errprintf_nomem - some in DEBUG only code, but some not. * The gs_throw_imp function. I think this may be as good as we can get at this point. No differences expected, or shown by local cluster testing.

[/trunk/ghostpdl/xps/xpsfont.c base/gdevx.c base/gdevupd.c base/gxttfb.c cups/gdevcups.c jasper/src/libjasper/base/jas_image.c jasper/src/libjasper/include/jasper/jas_image.h]

2010-05-05T16:25:49.238174Z Robin Watts

More work for bug 691207 (remove global vars). Change the gp_ interface and all its implementations to pass a gs_memory_t in some cases to allow eprintf calls to be made safely. Also fix a 'const' warning in pxl/pxfont.c and pcl/pcsymbol.c No differences expected, or shown by local cluster testing.

[base/gp_os2.c base/gdevos2p.c base/gsdevice.c psi/zfile.c base/gp_os2pr.c base/gp_vms.c base/gdevwprn.c base/gxclfile.c base/gp_iwatc.c base/gp_os2.h base/gp_os9.c base/gdevwpr2.c /trunk/ghostpdl/pcl/pcsymbol.c /trunk/ghostpdl/xps/xpstop.c base/gp_unix.c /trunk/ghostpdl/psi/psitop.c base/gp_unifs.c base/gp.h base/gp_macio.c base/bench.c base/gdevpdf.c base/gp_os2fs.c /trunk/ghostpdl/pxl/pxfont.c base/gp_mswin.c base/gp_dvx.c]

2010-05-05T06:47:20.379288Z Masaki Ushizaka

A fix for 691164 "PDF loads blank when not Administrator on Vista using GS 8.7". The problem was in JasPer library. It tried to create temporary file in current directory (HAVE_MKSTEMP), or root directory (Windows and others). When those directories are read only, it failed to decode images. This patch introduces searching of TMPDIR, TEMP and TMP environment varibales and use them for temporary files. Localcluster test reported no differences.

[jasper/src/libjasper/base/jas_stream.c jasper/src/libjasper/include/jasper/jas_stream.h]

2010-05-05T03:08:00.170436Z Hin-Tak Leung

adding --ldflags to cups.mak ; bug 690268

[cups/cups.mak]

2010-05-04T23:11:46.700325Z Hin-Tak Leung

Incoporate the reporter's suggested change to config.guess , bug 69020 It appears that the same change is already in automake-1.11 (and after 1.7), so the change is correct. If we merge with upstream again, it is possible that this might be overwritten. Hopefully when that happens, the config.guess from newer upstream will have this change.

[jasper/acaux/config.guess]

2010-05-04T22:52:33.245666Z Hin-Tak Leung

minor wording and grammar corrections. Bug 690005

[doc/Use.htm]

2010-05-04T19:05:37.567635Z Robin Watts

A couple of calls to eprintf missed from the previous commit. No expected changes.

[base/gsfcid.c]

2010-05-04T19:04:51.514942Z Marcos H. Woehrmann

Improved the localcluster readme instructions.

[toolbin/localcluster/readme]

2010-05-04T18:47:12.330141Z Robin Watts

As part of the work for bug 691207 (remove global variables) we introduce a new set of macros, "emprintfX". These do the same as the "eprintfX" macros, except they take an explicit memory reference rather than using the mem_err_print global. The plan is to move everything possible over to using emprintf, leaving callers of eprintf as 'unsafe' in multithreaded builds. This review changes all callers of eprintf in ghostscript except: gdevsco.c, gp_iwatc.c, gp_macio.c, gp_mswin.c, gp_os2.c, gp_os2pr.c, gp_unifs.c, gp_vms.c, gsfid.c, contrib\*, jasper\*. 1 instance in gzspotan.c remains unchanged, but it should never be used. Local cluster testing shows no build problems.

[psi/fapi_ft.c base/gdevpdfj.c base/gsdevice.c base/gdevos2p.c psi/zfapi.c base/gdevijs.c base/gdevpdfm.c base/gdevpx.c base/gxclfile.c base/gdevpdtb.c base/gdevpdfp.c base/gdevpdtc.c psi/fapiufst.c base/gdevpdtf.c base/gdevpdfu.c base/gxblend1.c base/gspaint.c base/gdevxini.c base/gxcmap.c base/gxclthrd.c base/gdevpsdu.c base/gdevpdtt.c base/gstype42.c base/gdevpsft.c base/gsmisc.c base/gdevsgi.c base/gxclmem.c base/gxttfb.c base/std.h base/gslib.c base/gxtype1.c base/gzspotan.c psi/imainarg.c base/gdevpe.c base/gdevsun.c base/gdevxcmp.c psi/imain.c base/gsiorom.c base/gdevpdf.c base/gdevtsep.c contrib/japanese/gdevdmpr.c base/gxclrast.c base/gdevpdfi.c]

2010-05-04T16:03:29.077971Z regression

Changed casper3.ghostscript.com to casper.ghostscript.com (no reason to test this, how can it possibly fail?).

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl]

2010-05-04T12:34:27.748154Z Robin Watts

As part of the efforts towards bug 691207 (global variables must be removed) this commit reduces the reliance on mem_err_print. Currently all calls to errwrite and errflush get the stdin/out/err details from a global mem_err_print. For multithreaded gs this will result in output going to the wrong place if any of them are redirected. This review splits errwrite into 2 variants, errwrite and errwrite_nomem. The first takes an explicit mem pointer. The second continues to assume a global one. The plan is to make everything possible use the first. Currently debugging calls and some 'stubborn' devices continue to call errwrite_nomem. Local cluster testing shows no differences.

[base/gdevos2p.c base/gdevsppr.c base/gdevpdfm.c base/gdevsunr.c base/gdevpx.c base/gdevupd.c base/gdevimgn.c base/gdevwpr2.c base/ttfmain.c base/ttfoutl.h base/gp_unifs.c /trunk/ghostpdl/psi/psitop.c base/gdev4693.c /trunk/ghostpdl/xps/xpsfont.c base/strmio.c /trunk/ghostpdl/pxl/pxtop.c contrib/pcl3/src/gdevpcl3.c base/gsmisc.c base/gdevwddb.c base/gsargs.c base/szlibd.c /trunk/ghostpdl/pl/plmain.c base/gxttfb.c base/std.h base/gdevifno.c /trunk/ghostpdl/xps/xpscff.c /trunk/ghostpdl/pcl/pctop.c contrib/pcl3/eprn/gdeveprn.c base/gdevcdj.c psi/ziodevsc.c base/gdevx.c base/gslibctx.c contrib/pcl3/eprn/eprnparm.c toolbin/localcluster/run.pl base/gdevhl7x.c]

2010-05-03T16:57:35.641421Z Henry Stiles

Fix compiler warning (return from incompatible pointer type) introduced with making the font cache part of the library context, revision 11165.

[psi/isave.c]

2010-05-03T16:48:16.934577Z Lars Uebernickel

Applied Michael Constant's patch to support reading 256-bit AES encrypted PDFs (bug #690702). Minor modifications were made to the original patch to make it work with the current trunk. Aaron Gifford's SHA-2 implementation is included (BSD licensed). Libidn is added as an optional dependency to support unicode passwords. If it is not installed, only ASCII passwords are supported.

[base/errno_.h psi/zfaes.c psi/gs.c base/saes.c base/lib.mak base/sha2.c doc/Use.htm base/saes.h base/Makefile.in psi/int.mak psi/zutf8.c base/sha2.h base/locale_.h psi/zpdfops.c psi/zfsha2.c psi/zwinutf8.c psi/winint.mak base/ssha2.c base/configure.ac Resource/Init/pdf_sec.ps psi/msvc32.mak base/ssha2.h]

2010-05-03T13:25:52.802113Z Ken Sharp

Fix (pdfwrite) incorrect ToUnicode CMap. Bug #691274 "Missing or incorrect ToUnicode when using Identity ordering" pdfwrite emits ToUnicode CMaps in PDF files which always use 2 bytes for the key length. That is 0x21 is represented as <0021>, since these are hex strings there should in fact be no difference between <21> and <0021>. It is clear from the ToUnicode Mapping file tutorial that this is correct for mapping files. However, a PDF file is not a CMap file. It appears that Acrobat does not like beginbfrange data which is padded with zeros (it seems happy with codespacerange and destination codes which are 0 padded though). This patch outputs ToUnicode CMaps which are not padded with 0, ie 0x21 is emitted as <0021>, for the srcCodeLo and SrcCodeHi parameters in a beginbfrange operation. The destination codes remain zero-padded. Technically this would be incorrect for a real CMap file, but we don't write those out so this should not be an issue. The change is limited to ToUnicode CMaps and does not affect any other kind of CMap. I believe the change will affect the data emitted for the beginbfrange, beginbfchar, begincidchar, beginnotdefchar, beginnotdefrange and begincidrange operators. It does *not* affect the begincodespacerange operator; although Acrobat Distiller writes this without zero padding tests show that Acrobat is happy reading zero-padded code space ranges. ToUnicode information is not used in rendering PDF files, so regression testing should show no differences. Local testing of a limited number of files doesn't reveal any problems, but this change has not been well tested.

[base/gsfcmap.c]

2010-05-03T04:13:30.766321Z Hin-Tak Leung

Fix unix so build regression; fixes regression from r9948 which was committed for bug 690695

[base/unix-dll.mak]

2010-05-03T03:59:03.969165Z Hin-Tak Leung

fixes multiple jpeg devices listed in gs -h (bug 691176)

[base/libtiff.mak]

2010-05-03T03:14:34.052929Z Hin-Tak Leung

Rewording build instructions for unix systems, and adding more warnings about instructions for legacy old systems being deprecated; bug 691264.

[doc/Make.htm]

2010-05-02T00:19:52.718987Z Robin Watts

Script to generate an html page that graphically show the differences between local cluster regression run results between arbitrary revisions. Usage information given in file. Must be run on the cluster master machine (i.e. casper).

[toolbin/localcluster/comparerevs.pl]

2010-05-01T23:22:33.008186Z Henry Stiles

Continue work to remove globals (691207). The font cache is no longer global but part of the library context.

[psi/isave.h psi/bfont.h base/gslibctx.c psi/zfcid0.c psi/zfcid1.c psi/zfont.c psi/zfont0.c psi/zfont1.c psi/zbfont.c psi/zusparam.c base/gslibctx.h psi/zfont32.c psi/zfont42.c psi/isave.c]

2010-05-01T09:23:24.281883Z Ken Sharp

Modify the 'C' defaults of the pdfwrite device Bug #691259 "HPGL graphic followed by raster graphic results in incorrect pdf" The pdfwrite device is initialised in 'C', and then partly overridden by PostScript initialisation. The problem is that non-PostScript input does not (cannot) execute the PostScript initialisation, and so the defaults are left as those done in 'C'. Not only do these defaults not match the documented defaults in ps2pdf.htm, they are not particularly well selected. In this case the problem was caused by sending image data at 150 dpi, but only a single scan line at a time. The default setting for pdfwrite was to downsample image data to 72 dpi, this caused us to subsample (the default downsampling) by a factor of more than 2, which led to our single scan line becoming less than half a scan line, and so disappearing altogether. This patch addresses this issue by altering a number of the defaults to more sensible values. In particular we disable downsampling and enable image compression for gray and colour images. This has the fortunate result of making most PDF output files smaller than before, even though we are now storing more image data.

[base/gdevpsdf.h]

2010-05-01T01:59:46.738263Z Alex Cherepanov

Check all PDF files for transparency features because some files have incorrect version number but Acrobat renders them just fine. Bug 691273.

[Resource/Init/pdf_main.ps]

2010-04-30T15:54:08.117709Z Ken Sharp

Testing a white space change for cluster regression tests, this will be overwritten later.

[base/gdevpsdf.h]

2010-04-29T21:51:34.733741Z Till Kamppeter

rev 11149 for fixing bug 691014 had still some compiler warnings. This rev fixes them.

[cups/gdevcups.c]

2010-04-29T18:32:44.398974Z Robin Watts

Remove the 'parent' parameter from gs_malloc_init calls. It only serves to allow libctx's to be shared between instances, and we'll never want to do that. It's unused at the moment anyway, so this doesn't impact anything. No expected differences.

[psi/gs.c base/gsinit.c base/gslib.c base/gsmalloc.c /trunk/ghostpdl/pl/plalloc.c psi/iapi.c base/gsmalloc.h]

2010-04-29T04:19:15.713592Z Hin-Tak Leung

Doubling the arbitrary 0x100000 alloc size limit; the alloc_size_is_ok() check is complied out and replaced with DO_NOTHING in release build so this has effect only on debug builds. Fixes Bug 691271 .

[base/gsalloc.c]

2010-04-28T23:19:01.308642Z Robin Watts

Eliminate some warnings in gxcht.c (keep shifts < size of uint). No local cluster differences reported, or expected.

[base/gxcht.c]

2010-04-28T22:37:01.089543Z Till Kamppeter

Fixed segfaults caused by setting and changing the page geometry parameters incorrectly (bug #691014).

[cups/gdevcups.c]

2010-04-28T21:57:29.180527Z Alex Cherepanov

Associate cached font instance with PDF font resource dictionary instead of font descriptor. The latter may be shared by font resource dictionaries with different encodings causing incorrect rendering. Bug 690714.

[Resource/Init/pdf_font.ps]

2010-04-28T20:24:41.808400Z Robin Watts

Move op_array_table_global and op_array_table_local away from being globals and into i_ctx_p. This requires various knock on changes throughout the code to enable them to be recovered from the context (which may itself need to be recovered from a memory pointer). Also, the garbage collection is altered slightly; rather than the op_arrays being special cased (as special objects that have to have their component parts registered as roots for the garbage collection) we move them inline into i_ctx_t and amend the gc routines for that structure. Thanks to Alex for his help with this. No differences expected, or shown with local cluster testing.

[psi/iinit.c psi/icontext.c psi/imain.c psi/idebug.c psi/icstate.h psi/interp.c psi/igc.c psi/opdef.h psi/zmisc.c psi/iutil.c]

2010-04-28T20:19:40.848310Z Robin Watts

Simple fix to remove dict_default_pack from being a global bool. (Make it an enum instead). No changes expected or shown by local cluster testing.

[psi/idict.c]

2010-04-28T17:18:52.709002Z Chris Liddell

Ensure that multiplication gets applied prior to type casting.

[psi/fapi_ft.c]

2010-04-28T14:41:02.575217Z Robin Watts

Add missing cast to fapi_ft.c to quiet a warning. This was missed out of yesterdays commit of such fixes. No expected diffs.

[psi/fapi_ft.c]

2010-04-28T11:40:24.316225Z Robin Watts

Small tweaks to Ghostscript initialisation to check for malloc failures etc. This would very rarely have been a problem in current code, but would be more of an issue in multithreaded operation as running out of memory while forking a new instance is more likely. No expected differences, but the local cluster code seems to be claiming differences for an unchanged tree at the moment, so if 3 or so non-pdfwrite errors and 1800ish pdfwrite errors show up, it's not because of this.

[psi/gs.c psi/imain.c base/gsmalloc.c psi/iapi.c]

2010-04-27T16:06:05.631664Z Chris Liddell

Add back in a call removed in (a merging) error in my previous commit (11137).

[psi/fapi_ft.c]

2010-04-27T14:53:14.939131Z Chris Liddell

Bug 691260: make the FAPI and Freetype related warning messages debug only, and depend on -Zm for the FAPI warnings or -Z1 for the Freetype warnings. Also address compiler warnings in fapi_ft.c.

[psi/fapi_ft.c psi/zfapi.c]

2010-04-27T14:27:08.849186Z Robin Watts

Silence some warnings, either by including new headers or by introducing explicit casts. No differences shown by local cluster testing (of pcl and gs only as xps is currently broken).

[base/gxdcconv.c base/gsptype1.c base/gdevpx.c base/gstrans.c base/gdevrinkj.c base/gxfill.c base/gxstroke.c psi/zmisc.c]

2010-04-27T09:56:26.779813Z Till Kamppeter

Made the CUPS Raster output device working in a multi-threaded mode, removing all global variables. Thanks to James Cloos for the patch. Fixes bug #691241.

[cups/gdevcups.c]

2010-04-26T15:29:28.937213Z Alex Cherepanov

Remember the allocator in the dynamically allocated scanner_state to ensure proper deallocation. Current allocation may be reset when a PS error occurs. Bug 691167.

[psi/ztoken.c psi/iscan.c psi/iscan.h]

2010-04-26T09:04:35.569612Z Chris Liddell

Ensure that the BuildChar object is not the null object before trying access its contents.

[psi/zfapi.c]

2010-04-26T05:58:46.519692Z Michael Vrhel

Change so that when a graphic state is restored, the overprint compositor action only occurs if there is a change from the current overprint state. This fixes a problem in one of the files associated with bug 691014. In the particular file, overprint compositor actions were getting placed into a pattern clist. The file in fact had no overprint settings. Ran regression test, no differences expected.

[base/gsstate.c]

2010-04-25T23:47:56.048527Z Alex Cherepanov

Add ANSI/ASME Y14.1 A - F paper sizes named ANSI_A - ANSI_F for completeness. Bug 691217.

[Resource/Init/gs_statd.ps]

2010-04-25T22:45:48.099475Z Till Kamppeter

Minor clean-ups: Added some parantheses to casts and initialized allocated memory.

[cups/gdevcups.c]

2010-04-25T22:32:09.854994Z Michael Vrhel

(empty)

[base/gximono.c]

2010-04-25T21:52:42.447453Z Till Kamppeter

Introduced a real get_color_comp_index() method, to fix bug #690338 correctly.

[cups/gdevcups.c]

2010-04-25T18:47:28.775496Z Alex Cherepanov

Add -dNONATIVEFONTMAP option to disable the use of font map and corresponding fonts installed on underlying platform. This may be needed to ensure consistent rendering on the platforms with different fonts, for instance, during regression testing. Bug 691240.

[doc/Use.htm Resource/Init/gs_fonts.ps]

2010-04-25T00:41:40.540207Z Michael Vrhel

Fix for Bug 691014. Problem was caused by the fact that we had a soft mask present and a pattern with no transparency. This means the PDF14 device is installed and more importantly that transparency state pushes and pops occur to keep the softmask in sync with the graphic state. This particular files pattern is installed as a clist, which happens to not have any transparency. The transparency state pushes and pops were getting placed into the pattern clist when the Q and q operations occurred in the pattern, which was causing problems since the pattern clist device had no pdf14 device installed to handle such commands. The solution is to check, when a transparency compositor action is to occur, if the current device is a pattern accumulator or a pattern-clist device. If it is, then the pattern instance is checked to see if it has transparency. If it does not, then the transparency state chance is ignored. This all occurs on the clist writing phase in the gs_trans functions. In addition, a fix was made so that the pdf14custom device sets up it's color information correctly. For subtractive devices that do not have cmyk process colorants the custompdf14 device is installed. This pdf14 device was obtaining its color_info from the target device. The pdf14 device must be continuous tone even if the target device is not. Ran a regression test and saw no differences.

[base/gdevp14.c base/lib.mak base/gstrans.c]

2010-04-24T22:21:26.893815Z Alex Cherepanov

Remove rudimentary code that maps out-of-range character codes to 0 causing dictionary overflow in some cases. Unlike earlier array, dictionary representation of 'cmap' table doesn't need this. Bug 691253, customer 780.

[Resource/Init/gs_ttf.ps]

2010-04-23T12:56:00.372874Z Chris Liddell

Resolve issues with the language_switch Ghostscript build for Windows, since Freetype enabled became the default for the normal GS build.

[/trunk/ghostpdl/common/msvc_top.mak /trunk/ghostpdl/language_switch/pspcl6_msvc.mak /trunk/ghostpdl/psi/psitop.c psi/msvc32.mak]

2010-04-23T04:10:50.732099Z Michael Vrhel

Fix of minor memory leak found by Ray. maskbuf entry of transparency ctx object was not getting freed. The large mask buffer, which is a member variable of maskbuf was getting freed but not this 12 byte structure. No expected differences.

[base/gdevp14.c]

2010-04-23T03:25:33.581070Z Alex Cherepanov

Always load CFF font as a CIDFont when it is used as a descendant font of a composite font in PDF file. Bug 691253.

[Resource/Init/pdf_font.ps]

2010-04-22T12:28:16.186930Z Alex Cherepanov

Trap errors that happen in the font reader, issue a warning, and proceed as if the font was not embedded. Bug 691242.

[Resource/Init/pdf_font.ps]

2010-04-22T04:20:00.389442Z Alex Cherepanov

Don't use precompiled headers on MSVC 6 and 7 because it causes compilation error C2006 in freetype, which uses #include MACRO .

[base/msvccmd.mak]

2010-04-21T19:51:07.227636Z Robin Watts

Add missing header file from revision 11097.

[base/gdevpdtd.h]

2010-04-21T19:26:13.171574Z Robin Watts

Revert macro magic from gserror.h introduced in r11097, due to it being broken when used as an expression. Sorry.

[base/gserror.h]

2010-04-21T18:12:56.928835Z Robin Watts

Another set of very simple tweaks to a range of source files to remove warnings. Nothing contentious in here I hope! base/gdevpdf.c: Make the fact we're ignoring the return value of fread explicit by casting to void. base/gdevsj48.c: Remove unused var. base/gdevtknk.c: Avoid gcc warning by not needlessly assigning within expression. base/gdevimgn.c: Fix type declaration, make function static. base/gxdcolor.c: Remove unused var. base/gdevwts.c: Comment out unused function, cast unused return value from fread to void, remove unused vars. base/gdevo182.c: Be more explicit in type definition to stop warning. base/gdevlp8k.c: Remove unused var. base/gdevpdfu.c: Cast unused return value from fread to void. base/gdevlbp8.c: Cast unused return value from fread to void. base/gdevokii.c: Explicit cast to int to shut up stupid compiler. base/gdevpdtd.c: Add const to arg to avoid warning. base/gserror.h: Do some macro magic to ensure that the macro always evaluates it's arg strictly once, insists on being followed by a semicolon, and behaves well with surrounding if/else structures etc. base/gxp1fill.c: Remove unused var.

[base/gdevlbp8.c base/gdevtknk.c base/gdevsj48.c base/gdevo182.c base/gdevpdf.c base/gdevimgn.c base/gdevokii.c base/gdevpdtd.c base/gxdcolor.c base/gdevwts.c base/gdevlp8k.c base/gdevpdfu.c base/gxp1fill.c base/gserror.h]

2010-04-21T17:55:08.584502Z Robin Watts

Fix for a problem in the rinkj driver for Epson Stylus Photo 2200. The code was accessing indexes 4,5,6 in plane_offsets[6] and hence was running off the end of the array. This was causing a warning at compile time but never caused a segv as it was merely corrupting the next entry in the structure which was reset to 0 shortly afterwards. Presumably the offset for one of the planes would be wrong though causing a loss of quality.

[base/rinkj/rinkj-epson870.c]

2010-04-21T17:23:31.243056Z Robin Watts

Remove several occurrences of calls to gs_lib_ctx_get_non_gc_memory_t(). The only code that now needs this is gp_macpoll.c and gp_mspol.c for when CHECK_INTERRUPTS is defined. This reduces the need for mem_err_print. The only other code that uses mem_err_print is errflush() and errwrite(). Potentially these could be nobbled for a multithreaded build. The changes here rely on the memory pointers being set up correctly. While local cluster testing gives this a clean bill of health, it's possible that problems will appear with files in the wider world - we'll just have to fix these as they are reported.

[base/gdevjpeg.c base/sjpx_luratech.c base/strmio.c base/gxttfb.c psi/zfdctd.c base/sdctc.c psi/zfdcte.c psi/zfjpx.c base/sjpx.c]

2010-04-21T15:08:47.471495Z Robin Watts

Move CPSI_mode from being a global to living in the libctx, as part of the efforts for bug 691207 (remove global variables). I originally tried moving CPSI_mode into the imager state, which would have been slightly nicer, but had to abandon this due to problems interacting with the command list code. My first thought to make this work was to push the value of CPSI_mode into the clist at initial clist creation time. As the setting of CPSI_mode isn't vectored through the device, we can't detect changes in its setting, but then changing CPSI_mode during the lifespan of a clist would give unpredictable results anyway in many cases. Sadly this was doomed to failure as if a page device is started up that uses the clist code to do banding, then the command list is created before CPSI_mode is enabled, and we'd operate with the incorrect value. Moving CPSI_mode into libctx means we keep exactly the same behaviour as we have now. This has required various functions throughout the code to pass a gs_memory_t * around. Localcluster testing reveals no problems.

[psi/zfunc3.c psi/zupath.c base/gsdps1.c base/gdevdevn.c base/gxblend1.c base/gspaint.c base/gxstroke.c psi/zmisc.c base/gdevperm.c base/gxdcconv.c base/gdevpsds.c base/gxcmap.c base/gxdcconv.h psi/zfont.c base/gdevrinkj.c base/gdevbit.c base/gsmisc.c base/gxfill.c base/gdevxcf.c base/gxicolor.c base/gdevpsd.c psi/zimage.c base/gsfont.c contrib/opvp/gdevopvp.c base/gsfont.h base/gsstate.c base/gslibctx.c base/gsstate.h psi/zcharx.c psi/zusparam.c base/gslibctx.h base/gsequivc.c psi/zchar.c]

2010-04-21T07:20:14.808042Z Masaki Ushizaka

A fix for a regression introduced by r11074 (bug 690094). As I changed image number to be incremented when 'exflag' is false, the problem of 'exrunlength' when SDHUFF == 1 was unveiled. This fixes it. JBIG2 images with SDHUFF == 1 should have been having trouble between r11074 and this revision. No other difference expected.

[jbig2dec/jbig2_symbol_dict.c]

2010-04-20T18:52:36.186732Z Robin Watts

A series of tiny changes to various files to stop compiler warnings. Nothing contentious in here, so I hope component owners don't object. psi/zpdfops.c: Make zpdfinkpath function static. psi/zcie.c: cie_cache_finish1 is an unused function; #if 0 it with a note. psi/zicc.c: Remove 2 unused variables from a function. psi/zcolor.c: Add a 'default' case to a switch to stop a 'variable RGB might be used uninitialised' warning. Remove out of date comment and make zswapcolors static. psi/zfcid1.c: Convert some unused variables to comments. base/gp_unix_cache.c: Make the fact we are ignoring the return value from fread explicit by casting to void. base/gstype42.c: Move an unused var into a #if 0 section, comment out an unused function. base/gstrans.c: Use 'any_abs' rather than 'abs' (to avoid abs being used without definition). base/gxshade6.c: Remove unused function base/gxclfile.c: Make the fact we are ignoring the return value to freopen explicit by casting to void.

[base/gxshade6.c psi/zcolor.c psi/zicc.c psi/zcie.c base/gp_unix_cache.c base/gxclfile.c base/gstrans.c base/gstype42.c psi/zfcid1.c psi/zpdfops.c base/echogs.c]

2010-04-19T16:15:13.462842Z Lars Uebernickel

Made oog_encode in tif_luv.c reentrant by precalculating oog_tables. oog_tables was calculated on-demand when writing TIFF files in LogLuv Encoding. Since it didn't depend on anything dynamic, I replaced this code with a static const array. The array only consisted of 100 ints - the net library size actually went down a few bytes after this change. This is part of bug #691207 (global variables must be removed).

[tiff/libtiff/oog_table.h tiff/libtiff/tif_luv.c]

2010-04-19T11:56:27.260655Z Lars Uebernickel

Removed global variables in libtiff's tif_pixarlog.c. This is part of #691207 (global variables must be removed).

[tiff/libtiff/tif_pixarlog.c]

2010-04-19T09:47:14.697946Z Lars Uebernickel

Removed TIFFReassignTagToIgnore in the local libtiff copy. It wasn't reentrant due to static variables and has been deprecated for a while now. GhostScript does not use it at all. Libtiff HEAD also has this function removed, it was only kept in 3.x for backwards compatibility.

[tiff/libtiff/tif_dir.c]

2010-04-15T18:58:00.960218Z Robin Watts

New Visual Stdio project file for building ufst version of ghostscript. Currently assumes that the ufst code will be found in C:\ufst, but this can be edited in the nmake invocation lines within the Project settings.

[ghostscript-ufst.vcproj]

2010-04-15T18:41:31.569934Z Robin Watts

Update msvc32.mak with various ufst make targets. This allows a ghostscript-ufst Visual Studio project to be constructed. No differences to existing builds.

[psi/msvc32.mak]

2010-04-15T17:13:30.072845Z Robin Watts

Remove invalid_file_stream and invalid_file_entry global variables, as part of the effort for bug 691207 (remove global variables). We move invalid_file_stream to be a non-gc chunk allocated to be in i_ctx_t, and invalid_file_entry can then be replaced by i_ctx_p->invalid_file_stream. The only tricky bits are a) the need to ensure that i_ctx_p is available everywhere where it is needed, and b) making sure that invalid_file_stream doesn't move when i_ctx_p is relocated. No changes shown by localcluster testing (though a previous version of the patch did fail during gc, so the relavent code is getting tested).

[psi/zfile.c psi/ztoken.c psi/zcontrol.c psi/zshade.c psi/zcontext.c psi/zfcid0.c psi/zfcid1.c psi/zicc.c psi/zfrsd.c psi/icontext.c psi/zvmem.c psi/ziodev.c psi/zfileio.c psi/interp.c psi/icstate.h psi/files.h]

2010-04-15T16:13:10.848189Z Lars Uebernickel

Backported and applied libtiff patches from libtiff bugs #2125 and #2125. These get rid of some of the global variables in libtiff (in particular rgb_refblackwhite and whitepoint in tif_aux.c). This is part of the multi-threaded gs effort (bug #691207).

[tiff/libtiff/tif_dirinfo.c tiff/libtiff/tif_aux.c tiff/libtiff/tif_dir.c tiff/man/TIFFGetField.3tiff tiff/libtiff/tif_dir.h tiff/libtiff/tif_ojpeg.c tiff/libtiff/tif_jpeg.c]

2010-04-15T14:48:36.373936Z Robin Watts

Fix for bug 691244, reported/patch supplied by Norbert Janssen. In revision 11045, I'd moved some globals into the libctx, which is accessed via the gs_memory_t pointer. This has required certain functions to now take a gs_memory_t pointer as an extra arg. In this particular case the gs_memory_t pointer in question could be NULL. The fix is to use one obtained from gs_lib_ctx_get_non_gc_memory_t, a call to which happens conveniently to be on the previous line. gs_lib_ctx_get_non_gs_memory_t is going to be painful to remove later on, but at least this fix gets us up and running again now. No expected differences.

[base/strmio.c]

2010-04-15T09:53:33.313864Z Masaki Ushizaka

A fix for 690094, "missing letters replaced by little vertical lines". This problem was in jbig2dec function jbig2_decode_symbol_dict(). The image number was not incremented correctly when it built symbol dictionary. No difference expected, other than JBIG2 pdf files suffered by this problem.

[jbig2dec/jbig2_symbol_dict.c]

2010-04-15T08:30:48.171463Z Chris Liddell

Resolve a Freetype build problem on Mac - solution suggested by Tor and Henry.

[base/freetype.mak]

2010-04-14T19:29:56.362613Z Robin Watts

Update the clist band list compressor code to work without using global variables as part of the workd for bug 691207 (remove global variables). The old code used to call a function to read an initialise global structure, then based on that allocate storage and copy the structure into it. The new code essentially does 2 calls; one that serves to get the size, and another that serves to initialise the newly allocated structure. To facilitate testing, this introduces a new TEST_BAND_LIST_COMPRESSION define. If built with this as a define, the code sets the compression threshold to 1K, thus forcing the use of compression. A local cluster push with this in reveals just one problem, and that seems to be in the existing code whereby inflateEnd can be incorectly called on a NULL derived pointer. A fix for that is included too. No expected differences.

[base/gxcllzw.c base/gxclmem.c base/lib.mak base/gxclzlib.c base/gxclmem.h base/szlibd.c]

2010-04-14T16:25:11.391305Z Chris Liddell

Reverse the previous build options for Freetype integration: now --disable-freetype for configure on Unix type systems or pass FT_BRIDGE=0 to nmake on Windows if you do not want to integrate Freetype.

[base/configure.ac psi/msvc32.mak]

2010-04-14T16:03:29.953276Z Ken Sharp

Fix FreeType FAPI No bug for this (probably should be). Noticed while testing that using a TrueType to replace a missing CIDFont (ie entry in cidfmap) was rendering the wrong glyphs, and applying a vertical advance. The incorrect glyph seems to be because we were incorrectly stating that the character index was not a glyph ID, which it is in this case. The second problem was more difficult. FreeType manufactures vertical advance metrics for all TrueType glyphs, we override those in the incremental interface callback, but when the TT is a CIDFont on disk, we don't use the incremental interface and so have no opportunity to override the metric. Addressed this by checking in load_glyph to see if the current font is not type 1 (ie its TT), *is* a CIDFont, and is not a vertical font (WMode is 0). In this case we simply override the vertical advance and maek it 0.

[psi/fapi_ft.c psi/zfapi.c]

2010-04-14T14:11:19.891045Z Robin Watts

Move real_time_0 from being a static variable in zmisc.c to being an entry int libctx. Instead of initialisation happening in zmisc it now happens in gslibctx.c. Part of the effort for bug 691027 (remove global vars). This variable isn't strictly speaking necessary, but apparently some FTS tests behave better if realtime starts from 0, and it isn't a big problem. No differences shown in localcluster testing.

[base/gslibctx.c base/gslibctx.h psi/zmisc.c]

2010-04-14T10:03:31.189133Z Hin-Tak Leung

a few more comments about some microsoft CJK fonts

[lib/mkcidfm.ps]

2010-04-14T02:31:58.209185Z Masaki Ushizaka

Fixed jbig2dec command getopt() parameter for -v option. Not used by ghostscript itself but worth for standalone debugging.

[jbig2dec/jbig2dec.c]

2010-04-14T02:26:16.603254Z Masaki Ushizaka

Fixed an indent. No influence on code.

[jbig2dec/jbig2_symbol_dict.c]

2010-04-13T14:52:16.370358Z Henry Stiles

Gets rid us of 2 global variables in jasper (jas_image_numfmts and jas_image_fmtinfos). In so doing we take the liberty of simplifiying jasper's startup. The configured codecs (we only use 2: jpc and jp2) were set at compile time anyway so the the methods to "add formats" and "clear formats" have been replaced with a static table.

[jasper/src/appl/imgcmp.c jasper/src/appl/jasper.c jasper/src/appl/imginfo.c jasper/src/libjasper/base/jas_image.c jasper/src/libjasper/base/jas_init.c jasper/src/libjasper/include/jasper/jas_image.h]

2010-04-13T14:29:59.699580Z Robin Watts

Remove BITTAG global variable by moving it into the libctx, as part of efforts towards bug 691207 (multithreaded gs). This has required several accessor functions to gain gs_memory_t * arguments. No differences expected, or shown by localcluster testing.

[base/gsnamecl.c base/gsutil.h base/gslibctx.c base/gdevbit.c base/gslibctx.h base/gsutil.c]

2010-04-13T13:06:54.792469Z Ken Sharp

Fix FreeType A prior update which re-initialised a glyph index to prevent old Metrics override values persisting after a glyph was discarded did not check the ft_inc_int member of the 'FF_face' structure before dereferncing it, leading to a potential crash if the font was not incrementally loaded. The code now checks the value before attempting to dereference the pointer.

[psi/fapi_ft.c]

2010-04-13T12:50:40.024266Z Ken Sharp

Modify FAPI support files Moved FAPIConfig, FAPIcidfmap and FAPIfontmap from the 'lib' directory to the 'Resource/Init' directory, so that they get built in when COMPILE_INITS=1. Also modified gs_fapi.ps to contain default values for the contents of FAPIConfig which map all fonts to the FAPI engine (FreeType for now). Modified FAPIConfig so that the usual contents are commented out. This should allow the possibility of overriding the default values by putting new values in FAPIConfig.

[lib/FAPIcidfmap lib/FAPIfontmap lib/FAPIconfig Resource/Init/FAPIcidfmap Resource/Init/FAPIfontmap Resource/Init/FAPIconfig Resource/Init/gs_fapi.ps]

2010-04-13T12:15:42.067350Z Robin Watts

Move global variables from gshtscr.c (screen_accurate_screens, screen_min_screen_levels, screen_use_wts) into libctx. This has meant updating the functions to read/write these to take a gs_memory_t pointer too. Part of the efforts for bug 691207. No differences shown by localcluster testing.

[base/gshtscr.c base/gxht.h psi/zusparam.c base/gslibctx.h base/gsht.c base/gsht1.c psi/zht.c psi/zht2.c]

2010-04-13T09:50:08.611008Z Masaki Ushizaka

A fix for 691081, 691206, and part of 690094. From r9769, jbig2dec wasn't capable of decoding some JBIG2 files and throwing a error "jbig2dec FATAL ERROR runlength too large in export symbol table (XXX > XX - XX) (segment 0xXX)". This was caused by accidentaly bound checking export symbol table size with number of non-export symbol. This fixes it. No differences expected, other than JBIG2 files suffered from this problem.

[jbig2dec/jbig2_symbol_dict.c]

2010-04-13T09:38:22.017180Z Chris Liddell

Minor revision to FAPI code to better ensure GS errors in callbacks survive through the font renderer library.

[psi/fapi_ft.c psi/zfapi.c psi/ifapi.h psi/fapiufst.c]

2010-04-13T03:25:58.022387Z Henry Stiles

Make the CIESpaces array and its elements constant so it is not confused with global modifiable data.

[psi/zcolor.c]

2010-04-12T10:44:43.428786Z Chris Liddell

Remove the hardcoded identity matrix in the Type 1 serialization code in favour of the new FAPI call allowing the interface code to dictate the matrix to be used.

[psi/zfapi.c]

2010-04-10T09:35:54.039788Z Ken Sharp

Remove extraneous debug statement in revision 11050.

[Resource/Init/gs_fapi.ps]

2010-04-10T09:28:50.393011Z Ken Sharp

FAPI Enhancement We need a way in the initial release where we set FreeType as the default font scaler to switch it off and revert back to the Ghostscript internal font scaler, in case there are significant problems. Bug #691237 This allows the user to either send PostScript or set a command line value to create a key called DisableFAPI, if the value is true then FAPI will no longer be active, and so the GS font scaler will be used. Can also be set with -dDisableFAPI=true at the command line.

[Resource/Init/gs_fapi.ps]

2010-04-09T18:22:38.657773Z regression

Fixed a recently introduced bug in the cluster that caused gs head to be used when compiling GhostPCL/GhostXPS even if a previous revision should have been used (as is the case when two or more commits occur while the cluster is busy).

[toolbin/localcluster/run.pl]

2010-04-09T17:49:20.410599Z regression

Minor tweaks/improvements to the cluster code: Fixed bug which occasionally left jobs running on macpro. Clusterpush.pl when run with user==Michael Vrhel now compares to icc_work branch. Report all icc_work branch errors (not just new ones). Collect time to run information. No longer cache mupdf results.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl toolbin/localcluster/cachearchive.pl toolbin/localcluster/compare.pl]

2010-04-09T14:51:26.314389Z Ken Sharp

Fix UFST and enhance FAPI Define a new API call for FAPI to allow font engines to replace a FontMatrix. This is to allow FreeType to replace the FotnMatrix with the identity as it makes the 2-step scaling performed by FreeType simpler. Modified compute_em_scale so that it uses the new API call instead of blindly replacing the FontMatrix. Restored the calculation in FAPI_do_char which unwinds the FontMatrix from the CTM when calculating the scale factor. Use the new API call to retrieve the desired FontMatrix rather than pulling it directly from the font as before.

[psi/fapi_ft.c psi/zfapi.c psi/ifapi.h psi/fapiufst.c]

2010-04-09T08:13:56.362732Z Ken Sharp

Fix Bug #691180 This alters the described 'odd behaviour' of the font substitution code whereby fonts whose name does not contain either 'Serif' or 'Sans' are substituted with Helvetica, but those which contain 'Italic' are substituted with Times. Italic fonts are now treated the same as Oblique fonts, and substituted with Helvetica, unless the font is identified as a serif font. This may cause some substitution differences with regression files.

[Resource/Init/gs_fonts.ps]

2010-04-08T21:42:54.260278Z Robin Watts

Move io_device_table from being a global static in gsiodev.c into the library context. In order to retrieve it we need to update lots of functions to take a gs_memory_t * as well. Localcluster testing shows no expected differences.

[base/gsdevice.c psi/zfile.c base/gdevupd.c base/gsiodev.c base/gxdevice.h psi/ziodev2.c base/gdevprn.c psi/ziodevsc.c base/sfxcommon.c psi/zfrsd.c base/gxiodev.h base/strmio.c base/gslibctx.c base/gsfname.c psi/ziodev.c base/gdevtsep.c psi/zcrd.c base/gslibctx.h base/gsfname.h base/gdevps.c]

2010-04-08T16:05:50.601517Z Ken Sharp

Fix TrueType interpreter Bug #691227 Another nasty hack for another broken TrueType font. In this case the font tries to execute a DeltaP instruction with an argument greater than the number of points in the glyph, which is an error. FreeType's interpreter has this comment /* XXX: Because some popular fonts contain some invalid DeltaP */ /* instructions, we simply ignore them when the stacked */ /* point reference is off limit, rather than returning an */ /* error. As a delta instruction doesn't change a glyph */ /* in great ways, this shouldn't be a problem. */ This patch more or less mimics this in our code.

[base/ttinterp.c]

2010-04-08T15:54:31.828558Z Ralph Giles

Remove the commented out invocations of autoheader and aclocal/automake in the autotools bootstrap script. The various autotools modules must be invoked in a specific order, and usually with non-default options. We only use autoconf in our build, not any of the other tools which layer on top of it, but I had left their invocations in the script, but commented out, so make it easier to add them at a later date. It's been some years since autogen.sh was added, and we still have no plans to adopt automake. Also, the script didn't include support for libtoolize (which is glibtoolize of MacOS X) nor for detecting the appropriate automake version, so it seems simpler to just remove the commented out lines to avoid confusion.

[autogen.sh]

2010-04-08T15:39:26.443280Z Robin Watts

Stop a function scope static from being static as nothing was gained by it, and this removes it from the list of global variables as part of the efforts for bug 691207 (multithreaded safety). No expected differences.

[base/gdevupd.c]

2010-04-08T15:29:26.540666Z Robin Watts

Change a static (that happens to be const) to be a static const to remove it from the global variable list for bug 691207. No expected differences.

[base/gdevifno.c]

2010-04-08T15:22:28.719732Z Robin Watts

Remove globals from gdevmgr.c as part of efforts on bug 691207 (multithreaded safety). Move 5 tables from being file level statics to living in the device structure. Checked by doing back to back builds and verifying that the same output is given for tiger.eps in both cases. No expected differences.

[base/gdevmgr.c]

2010-04-08T15:16:51.654028Z Robin Watts

Remove the function scope static variables from gdevcdj.c as part of the efforts for bug 691207 (multithreaded safety). These only affect the ESC/P driver. There are 4 variables in play here. real_rows doesn't actually need to be static at all as it is always set before being used. The other 3 (ln_idx, vskip1 and vskip2) all go into the 'ep_globals' structure. There is a subtle change in behaviour here; previously these variables were initialised to zero on execution start (and again on every flush). Now they are initialised to zero at the start of every page (and again on every flush). This means that leftover vskips are no longer carried forwards from page to page. This seems like a good thing to me.

[base/gdevcdj.c]

2010-04-08T14:30:41.679319Z Robin Watts

Make a table of 4 zeros be static const, and update the cast where they are used to also be static const. This should remove them from the global variable list in bug 691207.

[contrib/japanese/gdev10v.c]

2010-04-08T11:56:29.059369Z Robin Watts

Remove global variables in gdevcdj.c as part of the effort for bug 691207. The ESC/P based printing code in gdevcdj.c uses various global variables; we gather them into a struct here, and pass the struct between the 2 functions concerned. This device isn't used in the default build, so no point in testing with the localcluster. Enabling it locally and doing before/after tests shows that identical results are given for rendering tiger.eps. A side effect of this commit is to remove the nasty shadowing of the img_rows variable (doubly nasty because of it's use within a macro). This meant that I had the code wrong for a while, so I know the test is actually testing the right thing.

[base/gdevcdj.c]

2010-04-07T17:18:46.406090Z Robin Watts

Remove global variable lbp8_end from gdevlbp8.c - it was permanently NULL so removing it isn't hard, or risky. This will help towards the "No global variables" goal (bug 691207). No expected differences.

[base/gdevlbp8.c]

2010-04-07T13:23:37.938542Z Chris Liddell

Revise the interface code and the use of FT so that both use GS managed memory, rather than the stdlib memory routines (malloc/free and co.).

[psi/fapi_ft.c]

2010-04-07T13:13:57.741241Z Robin Watts

Fix for bug 691228, problems with wide strokes with round caps/joins with antialiasing enabled. 2 small problems in the same code. In the antialiased case, we stroke by forming 2 paths (one up either side of the line) and then reverse one and concatenate it. This should happen whenever we meet a closepath, but due to a misplaced return, was being missed out in some round join cases. Also, when using a round join in the case where 2 lines meet 'in-line' we would inadvertently leave the point on the wrong side of the line. No changes in localcluster testing as this only affects antialiased results and that's not tested currently.

[base/gxstroke.c]

2010-04-06T19:26:40.921375Z Robin Watts

Another attempt to fix Bug 691115. This corrects the clipping of a trapezoid to a rectangle within the shading code. My previous attempt had failed to allow for one case. This causes 116 non-pdfwrite diffs, and 23 pdfwrite ones, all checked using bmpcmp and found to be acceptable.

[base/gxshade6.c]

2010-04-06T17:15:54.520182Z Michael Vrhel

Update of fuzzy to report average and max color errors. This is useful for continuous tone images only. If the max error reaches the largest possible, the calculations for these values are not performed.

[toolbin/tests/fuzzy.c]

2010-04-06T14:14:43.252652Z Ken Sharp

Fix FAPI and FreeType interface. The Metrics override was broken, the code to retrieve the /Metrics entries (1 to 4 values) stored the results in an array in a different order to the code which read the values back. In addition the FreeType code did not reset the 'glyph_metrics_index' if a glyph had no metrics override, which could lead to us using the metrics overrides from a prior glyph if we had already encountered one using an override.

[psi/fapi_ft.c psi/zfapi.c]

2010-04-06T10:08:31.160988Z Ken Sharp

Fix FreeType. The revision 11012 fixed a problem with an invalid font but accidentally introduced a regression because an 'else' clause was missed.

[freetype/src/psaux/psobjs.c]

2010-04-06T08:14:44.802475Z Chris Liddell

Resolve two compiler warnings - no behaviour change expected

[psi/zfapi.c]

2010-04-05T23:50:00.539571Z Hin-Tak Leung

adding comments about using globs not expandable by shell; bug 691229

[base/mkromfs.c]

2010-04-05T17:24:12.188391Z Hin-Tak Leung

adding escaped quotes around $0 in "basename $0" ; 2nd part of bug 691219

[lib/pdf2ps lib/eps2eps lib/pfbtopfa lib/ps2epsi lib/ps2pdfwr lib/ps2ps lib/dumphint lib/ps2ps2 lib/dvipdf lib/pdfopt]

2010-04-05T17:22:10.077618Z Hin-Tak Leung

adding escaped quotes around $0 in "dirname $0" ; bug 691219

[lib/printafm lib/eps2eps lib/pdf2dsc lib/gsbj lib/ps2epsi lib/gsdj lib/dumphint lib/gsnd lib/font2c lib/pdfopt lib/pdf2ps lib/ps2pdf lib/gslj lib/pfbtopfa lib/bdftops lib/ps2pdf12 lib/ps2pdf13 lib/ps2pdf14 lib/gslp lib/wftopfa lib/ps2pdfwr lib/ps2ps lib/pphs lib/pf2afm lib/gsdj500]

2010-04-05T17:13:34.259627Z Hin-Tak Leung

adding reference to msmin04, msgoth04 and ngulim,nbantang; fixes the remaining issues in bug 689456

[lib/mkcidfm.ps]

2010-04-05T15:48:47.768122Z Ken Sharp

Fix line endings. The previous commit (11012) accidentally used DOS line endings which made it appear every line in the file was different.

[freetype/src/psaux/psobjs.c]

2010-04-05T15:31:11.441559Z Ken Sharp

Fix FreeType When using bitmaps from a TrueType/Type42 font FreeType uses a heuristic approach to synthesize vertical metrics for the glyphs, including a horizontal advance. As in the past, this works well as long as the client knows whether the advance direction is horizontal or vertical and uses the correct advance. However we don't know that, so we don't want the vertical advance. Its easiest jut to have FreeType ignore embedded bitmaps and use the outlines, in which case we don't get the invented vertical advance. Not only that but the rendered bitmap is a better match for the cases where we don't have a pre-built bitmap, so consistency is improved with this patch as well.

[psi/fapi_ft.c]

2010-04-05T15:27:25.365922Z Ken Sharp

Fix FreeType The test file objlune_font2_mine.ps contains a Type 1 font which has a technically invalid glyph. The glyph executes a 'lineto' class operation before a 'moveto' class operation. Although illegal it seems that all other PostScript RIPs ignore this requirement, this patch removes the error check in FreeType to conform with other interpreters.

[freetype/src/psaux/psobjs.c]

2010-04-05T11:33:32.361294Z Chris Liddell

Update the to latest FT code from the FT git repository.

[freetype/src/pshinter/pshglob.c freetype/src/base/ftpfr.c freetype/src/pshinter/pshglob.h freetype/src/type1/t1objs.c freetype/docs/DEBUG freetype/src/type1/t1objs.h freetype/docs/INSTALL.CROSS freetype/src/truetype/ttgload.c freetype/src/truetype/ttgload.h freetype/src/tools/ftrandom/ftrandom.c freetype/devel/ft2build.h freetype/src/tools/docmaker/formatter.py freetype/src/autofit/Jamfile freetype/src/bdf/module.mk freetype/include/freetype/config/ftheader.h freetype/src/cff/Jamfile freetype/src/cff/cffparse.c freetype/src/raster/ftraster.c freetype/src/cff/cffparse.h freetype/src/cff/cffcmap.c freetype/src/raster/ftraster.h freetype/src/cff/cffcmap.h freetype/src/raster/ftrend1.c freetype/include/freetype/internal/services/svttglyf.h freetype/src/raster/ftrend1.h freetype/builds/wince/vc2005-ce/freetype.vcproj freetype/docs/INSTALL.ANY freetype/src/psnames/module.mk freetype/src/base/ftutil.c freetype/src/autofit/afglobal.c freetype/src/cache/ftcsbits.c freetype/src/autofit/afglobal.h freetype/src/pcf/rules.mk freetype/src/base/ftsystem.c freetype/src/cache/ftcsbits.h freetype/src/psaux/psaux.c freetype/src/cff/module.mk freetype/src/pshinter/rules.mk freetype/src/pcf/pcfread.c freetype/src/bdf/bdflib.c freetype/src/pcf/pcfread.h freetype/include/freetype/ftcache.h freetype/src/raster/Jamfile freetype/src/gzip/rules.mk freetype/src/pshinter/pshalgo.c freetype/include/freetype/ftincrem.h freetype/include/freetype/internal/services/svcid.h freetype/src/pshinter/pshalgo.h freetype/src/psnames/psnamerr.h freetype/src/tools/test_afm.c freetype/src/cache/ftccache.c freetype/src/cache/ftcmru.c freetype/include/freetype/config/ftstdlib.h freetype/src/cid/cidtoken.h freetype/include/freetype/freetype.h freetype/vms_make.com freetype/src/cache/ftccache.h freetype/src/cache/ftcmru.h freetype/docs/INSTALL.UNIX freetype/src/tools/cordic.py freetype/src/pfr/Jamfile freetype/src/pfr/pfr.c freetype/src/pfr/pfrload.c freetype/src/pfr/pfrload.h freetype/include/freetype/fterrdef.h freetype/src/type1/t1gload.c freetype/src/base/ftbbox.c freetype/src/otvalid/otvgdef.c freetype/src/type1/t1gload.h freetype/include/freetype/ftsystem.h freetype/src/bdf/bdferror.h freetype/src/gxvalid/rules.mk freetype/src/pcf/pcf.c freetype/src/bdf/Jamfile freetype/src/gxvalid/gxvbsln.c freetype/include/freetype/internal/services/svotval.h freetype/src/otvalid/rules.mk freetype/src/pfr/pfrdrivr.c freetype/src/pcf/pcf.h freetype/src/type1/Jamfile freetype/src/pfr/pfrdrivr.h freetype/src/pcf/pcferror.h freetype/src/sfnt/ttsbit0.c freetype/src/base/ftmac.c freetype/src/base/ftgloadr.c freetype/src/base/ftbase.c freetype/builds/win32/vc2005/freetype.vcproj freetype/src/base/ftbase.h freetype/src/gxvalid/gxvmort0.c freetype/src/bdf/bdf.c freetype/src/bdf/bdf.h freetype/src/gxvalid/gxvalid.c freetype/src/cff/cff.c freetype/include/freetype/internal/psaux.h freetype/src/gxvalid/gxvalid.h freetype/autogen.sh freetype/src/base/fttype1.c freetype/src/autofit/afmodule.c freetype/src/autofit/afmodule.h freetype/src/pfr/pfrcmap.c freetype/src/pfr/pfrcmap.h freetype/src/psaux/Jamfile freetype/src/cff/cffpic.c freetype/src/base/ftdebug.c freetype/src/gzip/inflate.c freetype/src/cff/cffpic.h freetype/src/type1/t1driver.c freetype/src/otvalid/otvbase.c freetype/include/freetype/ftmoderr.h freetype/src/gxvalid/gxvopbd.c freetype/src/type1/t1driver.h freetype/src/base/basepic.c freetype/src/type1/t1parse.c freetype/src/otvalid/otvmath.c freetype/src/gxvalid/gxvmort1.c freetype/src/base/basepic.h freetype/src/psnames/rules.mk freetype/src/type1/t1parse.h freetype/src/pcf/Jamfile freetype/src/gzip/Jamfile freetype/src/base/ftbdf.c freetype/src/type1/t1afm.c freetype/src/raster/module.mk freetype/src/cid/cidobjs.c freetype/include/ft2build.h freetype/include/freetype/internal/services/svgxval.h freetype/include/freetype/internal/ftrfork.h freetype/src/type1/t1tokens.h freetype/src/type1/t1afm.h freetype/src/pshinter/pshrec.c freetype/src/cid/cidobjs.h freetype/src/pshinter/pshrec.h freetype/src/truetype/ttobjs.c freetype/src/autofit/autofit.c freetype/include/freetype/ftchapters.h freetype/src/type1/t1errors.h freetype/include/freetype/ftlzw.h freetype/src/truetype/ttobjs.h freetype/src/otvalid/otvgsub.c freetype/src/tools/apinames.c freetype/src/winfonts/fnterrs.h freetype/src/cache/ftcache.c freetype/include/freetype/ftglyph.h freetype/builds/win32/vc2005/index.html freetype/src/raster/rasterrs.h freetype/src/autofit/aflatin2.c freetype/src/type42/Jamfile freetype/src/base/ftpic.c freetype/src/autofit/aflatin2.h freetype/include/freetype/fttypes.h freetype/src/cache/ftcglyph.c freetype/src/gxvalid/gxvmort2.c freetype/src/pshinter/pshinter.c freetype/src/cache/ftcglyph.h freetype/src/tools/test_bbox.c freetype/src/cache/Jamfile freetype/src/type42/t42types.h freetype/include/freetype/internal/services/svpsinfo.h freetype/src/gxvalid/gxvmort.c freetype/src/raster/rastpic.c freetype/builds/win32/vc2008/index.html freetype/src/gxvalid/gxvmort.h freetype/src/gxvalid/README freetype/src/tools/docmaker/docbeauty.py freetype/src/raster/rastpic.h freetype/src/gzip/ftgzip.c freetype/include/freetype/ftcid.h freetype/include/freetype/internal/services/svpfr.h freetype/src/sfnt/module.mk freetype/src/type1/t1load.c freetype/docs/INSTALL freetype/src/gzip/inftrees.c freetype/docs/INSTALL.VMS freetype/src/type1/t1load.h freetype/src/gzip/inftrees.h freetype/src/pfr/pfrsbit.c freetype/src/cff/cfftoken.h freetype/src/gxvalid/gxvfeat.c freetype/include/freetype/internal/ftgloadr.h freetype/docs/PROBLEMS freetype/src/pfr/pfrsbit.h freetype/src/gxvalid/gxvfeat.h freetype/src/truetype/Jamfile freetype/src/gxvalid/gxvkern.c freetype/docs/INSTALL.MAC freetype/src/cid/Jamfile freetype/src/base/ftglyph.c freetype/include/freetype/ftmm.h freetype/src/otvalid/otverror.h freetype/docs/UPGRADE.UNIX freetype/src/autofit/afcjk.c freetype/src/autofit/aftypes.h freetype/src/psaux/afmparse.c freetype/src/sfnt/sfdriver.c freetype/src/autofit/afcjk.h freetype/src/sfnt/sfobjs.c freetype/src/base/ftobjs.c freetype/src/psaux/afmparse.h freetype/src/sfnt/sfdriver.h freetype/src/sfnt/sfobjs.h freetype/src/pfr/rules.mk freetype/src/psaux/module.mk freetype/src/base/ftstroke.c freetype/src/base/ftfstype.c freetype/docs/GPL.TXT freetype/src/base/ftbitmap.c freetype/src/pshinter/pshpic.c freetype/src/pshinter/pshpic.h freetype/src/psnames/pstables.h freetype/src/sfnt/rules.mk freetype/builds/wince/vc2005-ce/index.html freetype/src/autofit/afpic.c freetype/docs/PATENTS freetype/docs/raster.txt freetype/src/autofit/afpic.h freetype/src/cff/cffdrivr.c freetype/src/otvalid/otvgpos.c freetype/src/cid/cidriver.c freetype/src/cff/cffdrivr.h freetype/include/freetype/ftgasp.h freetype/src/autofit/afindic.c freetype/src/otvalid/otvgpos.h freetype/src/cid/cidriver.h freetype/src/autofit/afindic.h freetype/docs/INSTALL.GNU freetype/src/winfonts/module.mk freetype/src/sfnt/ttkern.c freetype/src/gzip/infutil.c freetype/src/sfnt/sferrors.h freetype/src/psaux/t1cmap.c freetype/src/sfnt/ttkern.h freetype/src/gxvalid/gxvmort4.c freetype/src/gzip/infutil.h freetype/include/freetype/ttnameid.h freetype/src/psaux/t1cmap.h freetype/src/gzip/zconf.h freetype/src/base/ftpatent.c freetype/src/truetype/rules.mk freetype/src/base/ftadvanc.c freetype/src/tools/docmaker/tohtml.py freetype/src/otvalid/otvalid.c freetype/src/otvalid/otvcommn.c freetype/include/freetype/config/ftmodule.h freetype/include/freetype/ftxf86.h freetype/src/otvalid/otvalid.h freetype/src/otvalid/otvcommn.h freetype/include/freetype/internal/ftserv.h freetype/Jamrules freetype/src/type1/module.mk freetype/src/base/ftapi.c freetype/docs/VERSION.DLL freetype/docs/LICENSE.TXT freetype/include/freetype/ftstroke.h freetype/include/freetype/ftlist.h freetype/include/freetype/ftbitmap.h freetype/src/type42/t42parse.c freetype/src/bdf/bdfdrivr.c freetype/modules.cfg freetype/builds/win32/visualce/freetype.dsp freetype/src/cid/ciderrs.h freetype/ChangeLog.20 freetype/ChangeLog.21 freetype/src/type42/t42parse.h freetype/ChangeLog.22 freetype/src/bdf/bdfdrivr.h freetype/include/freetype/tttables.h freetype/src/cid/module.mk freetype/src/autofit/afdummy.c freetype/src/tools/chktrcmp.py freetype/include/freetype/internal/services/svxf86nm.h freetype/src/autofit/afdummy.h freetype/include/freetype/internal/ftobjs.h freetype/src/pcf/pcfdrivr.c freetype/src/gxvalid/gxvmort5.c freetype/src/pcf/pcfdrivr.h freetype/src/psnames/Jamfile freetype/docs/MAKEPP freetype/Jamfile freetype/builds/win32/visualce/index.html freetype/include/freetype/ftotval.h freetype/src/tools/test_trig.c freetype/src/tools/docmaker/content.py freetype/include/freetype/ftadvanc.h freetype/include/freetype/internal/services/svpostnm.h freetype/src/cff/rules.mk freetype/src/gzip/zlib.h freetype/src/type42/t42error.h freetype/src/smooth/module.mk freetype/src/sfnt/sfnt.c freetype/src/autofit/afloader.c freetype/src/otvalid/Jamfile freetype/include/freetype/internal/services/svkern.h freetype/src/autofit/afloader.h freetype/src/cache/ftcerror.h freetype/src/psaux/psobjs.c freetype/src/sfnt/Jamfile freetype/src/gzip/infcodes.c freetype/src/truetype/ttpic.c freetype/src/psaux/psobjs.h freetype/src/base/ftcalc.c freetype/src/pshinter/pshnterr.h freetype/src/gzip/infcodes.h freetype/src/truetype/ttpic.h freetype/src/bdf/rules.mk freetype/include/freetype/internal/tttypes.h freetype/src/gxvalid/gxvmorx0.c freetype/include/freetype/internal/ftvalid.h freetype/include/freetype/fterrors.h freetype/builds/win32/visualc/freetype.dsp freetype/src/gzip/infblock.c freetype/src/base/ftlcdfil.c freetype/include/freetype/internal/ftmemory.h freetype/src/type1/type1.c freetype/include/freetype/ftpfr.h freetype/src/gzip/infblock.h freetype/src/pshinter/module.mk freetype/src/tools/ftrandom/Makefile freetype/src/type42/rules.mk freetype/src/gxvalid/gxvmorx.c freetype/docs/formats.txt freetype/src/cff/cffobjs.c freetype/src/smooth/ftsmooth.c freetype/src/gxvalid/gxvmorx.h freetype/src/cff/cffobjs.h freetype/include/freetype/ftoutln.h freetype/src/smooth/ftsmooth.h freetype/include/freetype/ftsynth.h freetype/src/tools/ftrandom/README freetype/src/winfonts/rules.mk freetype/docs/CHANGES freetype/src/base/ftotval.c freetype/include/freetype/tttags.h freetype/src/truetype/module.mk freetype/include/freetype/internal/autohint.h freetype/src/tools/glnames.py freetype/src/sfnt/ttload.c freetype/src/gxvalid/gxvfgen.c freetype/src/sfnt/ttload.h freetype/src/pfr/pfrtypes.h freetype/src/gxvalid/gxvtrak.c freetype/src/pcf/README freetype/include/freetype/internal/ftdriver.h freetype/include/freetype/ftgzip.h freetype/src/base/ftrfork.c freetype/include/freetype/internal/services/svbdf.h freetype/src/smooth/rules.mk freetype/src/gxvalid/gxvmorx1.c freetype/src/base/rules.mk freetype/src/autofit/afwarp.c freetype/src/cid/cidload.c freetype/include/freetype/ftgxval.h freetype/src/autofit/afwarp.h freetype/include/freetype/internal/services/svgldict.h freetype/src/cid/cidload.h freetype/src/gxvalid/gxvprop.c freetype/include/freetype/ftlcdfil.h freetype/src/tools/docmaker/sources.py freetype/src/type42/type42.c freetype/src/raster/rules.mk freetype/src/truetype/ttgxvar.c freetype/src/pshinter/Jamfile freetype/src/truetype/ttdriver.c freetype/src/gxvalid/Jamfile freetype/src/truetype/ttgxvar.h freetype/src/pfr/pfrgload.c freetype/src/Jamfile freetype/src/pshinter/pshmod.c freetype/src/truetype/ttdriver.h freetype/src/autofit/aflatin.c freetype/src/pfr/pfrgload.h freetype/src/base/ftsnames.c freetype/src/pshinter/pshmod.h freetype/include/freetype/internal/ftcalc.h freetype/include/freetype/ftrender.h freetype/src/base/ftgasp.c freetype/src/autofit/aflatin.h freetype/src/base/ftdbgmem.c freetype/docs/TRUETYPE freetype/src/smooth/ftspic.c freetype/include/freetype/t1tables.h freetype/src/cid/cidgload.c freetype/src/base/ftoutln.c freetype/src/smooth/ftspic.h freetype/src/base/ftsynth.c freetype/src/base/ftwinfnt.c freetype/src/cid/cidgload.h freetype/include/freetype/internal/internal.h freetype/src/sfnt/ttbdf.c freetype/src/sfnt/ttbdf.h freetype/src/lzw/ftlzw.c freetype/builds/win32/vc2008/freetype.vcproj freetype/src/truetype/ttpload.c freetype/src/gxvalid/gxvmorx2.c freetype/src/truetype/ttinterp.c freetype/src/lzw/rules.mk freetype/src/truetype/ttpload.h freetype/src/truetype/ttinterp.h freetype/src/base/ftxf86.c freetype/src/base/ftstream.c freetype/src/sfnt/ttcmap.c freetype/include/freetype/internal/services/svmm.h freetype/src/sfnt/ttcmap.h freetype/src/gxvalid/module.mk freetype/src/gxvalid/gxvjust.c freetype/src/truetype/tterrors.h freetype/src/pcf/pcfutil.c freetype/src/cid/type1cid.c freetype/src/pcf/pcfutil.h freetype/src/base/ftgxval.c freetype/include/freetype/internal/pshints.h freetype/src/sfnt/ttmtx.c freetype/src/psnames/psmodule.c freetype/src/sfnt/ttmtx.h freetype/src/psaux/psauxmod.c freetype/builds/wince/vc2008-ce/index.html freetype/src/pfr/module.mk freetype/src/psnames/psmodule.h freetype/src/base/ftcid.c freetype/include/freetype/ftsnames.h freetype/src/psaux/psauxmod.h freetype/README.git freetype/configure freetype/src/sfnt/ttcmapc.h freetype/src/gzip/inffixed.h freetype/include/freetype/ftwinfnt.h freetype/src/pfr/pfrobjs.c freetype/src/base/Jamfile freetype/include/freetype/ftimage.h freetype/docs/release freetype/src/pfr/pfrobjs.h freetype/src/lzw/ftzopen.c freetype/src/truetype/truetype.c freetype/src/lzw/Jamfile freetype/Makefile freetype/src/lzw/ftzopen.h freetype/src/base/fttrigon.c freetype/src/autofit/afhints.c freetype/src/autofit/afhints.h freetype/builds/win32/visualce/freetype.vcproj freetype/include/freetype/ftmac.h freetype/src/psaux/rules.mk freetype/src/type1/rules.mk freetype/src/cache/ftcimage.c freetype/src/psnames/pspic.c freetype/src/cache/ftcimage.h freetype/include/freetype/config/ftconfig.h freetype/src/cid/cidparse.c freetype/src/psnames/pspic.h freetype/src/cff/cfferrs.h freetype/src/cid/cidparse.h freetype/src/smooth/Jamfile freetype/src/gzip/adler32.c freetype/include/freetype/internal/sfnt.h freetype/docs/reference/README freetype/src/winfonts/winfnt.c freetype/devel/ftoption.h freetype/src/sfnt/sfntpic.c freetype/src/gzip/zutil.c freetype/src/winfonts/winfnt.h freetype/src/smooth/smooth.c freetype/src/sfnt/sfntpic.h freetype/src/gzip/zutil.h freetype/src/smooth/ftgrays.c freetype/src/raster/ftmisc.h freetype/src/gxvalid/gxvmorx4.c freetype/src/winfonts/Jamfile freetype/include/freetype/internal/pcftypes.h freetype/src/smooth/ftgrays.h freetype/src/pfr/pfrerror.h freetype/src/raster/raster.c freetype/include/freetype/internal/services/svwinfnt.h freetype/docs/CUSTOMIZE freetype/builds/unix/configure.raw freetype/include/freetype/internal/t1types.h freetype/builds/wince/vc2008-ce/freetype.vcproj freetype/src/otvalid/module.mk freetype/ChangeLog freetype/include/freetype/internal/services/svpscmap.h freetype/include/freetype/fttrigon.h freetype/docs/FTL.TXT freetype/src/cache/ftcmanag.c freetype/src/sfnt/ttsbit.c freetype/README freetype/src/cache/ftcmanag.h freetype/src/sfnt/ttsbit.h freetype/src/type42/t42drivr.c freetype/src/psaux/psconv.c freetype/include/freetype/ftbdf.h freetype/include/freetype/ftsizes.h freetype/src/type42/t42drivr.h freetype/src/psaux/psconv.h freetype/include/freetype/internal/services/svtteng.h freetype/include/freetype/internal/ftdebug.h freetype/src/tools/docmaker/docmaker.py freetype/src/gxvalid/gxverror.h freetype/src/autofit/module.mk freetype/include/freetype/internal/ftstream.h freetype/src/cff/cfftypes.h freetype/src/gxvalid/gxvmorx5.c freetype/src/gxvalid/gxvmod.c freetype/include/freetype/internal/ftpic.h freetype/src/gxvalid/gxvmod.h freetype/include/freetype/ftbbox.h freetype/src/otvalid/otvmod.c freetype/src/psnames/psnames.c freetype/src/cid/rules.mk freetype/src/psaux/psauxerr.h freetype/src/type42/t42objs.c freetype/src/otvalid/otvmod.h freetype/src/cache/ftccmap.c freetype/src/cache/ftcbasic.c freetype/src/type42/t42objs.h freetype/src/smooth/ftsmerrs.h freetype/include/freetype/internal/services/svttcmap.h freetype/version.sed freetype/src/psaux/t1decode.c freetype/src/autofit/rules.mk freetype/src/tools/docmaker/utils.py freetype/builds/win32/visualc/index.html freetype/src/psaux/t1decode.h freetype/src/type42/module.mk freetype/src/otvalid/otvjstf.c freetype/src/autofit/aferrors.h freetype/src/cff/cffgload.c freetype/src/gxvalid/gxvlcar.c freetype/include/freetype/internal/services/svsfnt.h freetype/src/base/ftinit.c freetype/src/bdf/README freetype/src/cache/ftccback.h freetype/src/cff/cffgload.h freetype/src/base/ftmm.c freetype/src/pcf/module.mk freetype/docs/TODO freetype/src/tools/Jamfile freetype/src/autofit/afangles.c freetype/include/freetype/config/ftoption.h freetype/src/cff/cffload.c freetype/src/gxvalid/gxvcommn.c freetype/src/autofit/afangles.h freetype/src/cff/cffload.h freetype/src/gxvalid/gxvcommn.h freetype/src/sfnt/ttpost.c freetype/src/sfnt/ttpost.h freetype/src/cache/rules.mk freetype/include/freetype/ttunpat.h freetype/include/freetype/ftmodapi.h freetype/include/freetype/internal/fttrace.h]

2010-04-05T10:03:59.155794Z Chris Liddell

Fix the FAPI implementation of finding the appropriate bytes for a given character code from an array of strings representing a CMap.

[psi/zfapi.c]

2010-04-02T12:31:23.439338Z Ken Sharp

'Fix' FAPI with FreeType. FreeType's hinting is worse than useless for type 1 fonts, its actually harmful. It distorts the glyph shape because it hints an unscaled outline. While it would be best to fix FreeType's hinting this is a large project. For now this patch disables FreeType hinting when handling type 1 fonts. This resolves many spacing issues as well as fixing the stroke/fill mismatch with ia3z3519.pdf and the incorrectly scaled outline in womanface.pdf.

[psi/fapi_ft.c]

2010-04-02T09:19:23.286738Z Chris Liddell

Extend Ken's change to avoid using FT's "synthetic" vertical metrics for Type42 fonts to cover all fonts using TTF outlines (so CIDType 2 fonts, as well).

[psi/fapi_ft.c]

2010-04-02T09:06:53.941441Z Ken Sharp

Fix a bug in the FreeType scan conversion. A multiply and divide to calculate the slope of a line did not account for the possibility of overflow during multiplication. Using the supplied SMulDiv routine fixes the problem. The patch has been supplied upstream to the FreeType development team.

[freetype/src/raster/ftraster.c]

2010-04-01T13:32:52.153614Z Robin Watts

Slight tidy up to gs_2_colors code: Given that the cie_joint_caches_alt is now kept in the imager state rather than the graphics state, move the reference counting/initialisation for the same into the imager state too. No difference in operation, but just a bit tidier. No expected differences, though the cluster may show 2colCIEtest.pdf as failing if it hasn't propogated around the nodes yet.

[base/gsstate.c base/gsistate.c]

2010-03-31T15:43:06.179195Z Chris Liddell

Bounds check the correct object when looking up a CID map

[psi/zfapi.c]

2010-03-31T14:40:31.704728Z Chris Liddell

Correct a logical error/typo in the fallback to non-hinted condition.

[psi/fapi_ft.c]

2010-03-31T13:22:01.442343Z Chris Liddell

Prevent applying the nominalWidthX for T2 fonts, when FT already applies it for us. Previously, the code was actually erroneously adding the defaultWidthX. Since this use of nominalWidthX *may* be renderer dependent, it is now controlled by the can_replace_metrics() call.

[psi/zfapi.c]

2010-03-31T13:16:41.790764Z Chris Liddell

In the even a glyph name is not found in the CharStrings dictionary, fall back to using the .notdef (instead of returning an error).

[psi/zfapi.c]

2010-03-31T13:07:44.152960Z Chris Liddell

For certain errors from FT, retry interpretting the glyph without hinting - this more closely matches the existing behaviour.

[psi/fapi_ft.c]

2010-03-31T11:32:10.299125Z Robin Watts

Remove unused variable. No expected differences.

[base/gsstate.c]

2010-03-31T01:20:18.778513Z Ray Johnston

Temporary reversion of previous mkromfs commit to remove -g until it works correctly (fooled by a GS_LIB environment variable during testing)

[psi/psromfs.mak]

2010-03-30T22:59:53.311321Z Ray Johnston

Implement '-g' option in mkromfs to fold in some of the older 'genint' functions (collect all init files into a single gs_init.ps, strip whitespace and comments). Also change mkromfs so that wildcard expansion must be specified using '*' on the command line which also means that single explicit files can now be put into the %rom% file system. Add many missed dependencies to the list for the 'gsromfs.c' %rom% file system (CMap, ColorSpace, Decoding, Encoding, Font, IdiomSet, ProcSet, SubstCID) and separate out miscellenaeous files. Remove old geninit references from makefiles: psi/int.mak psi/os2.mak, base/bcwin32.mak, base/msvctail.mak, base/winlib.mak, base/macos-mcp.mak, base/openvms.mak, base/lib.mak, base/unix-aux.mak base/watcw32.mak, base/wctail.mak

[base/wctail.mak psi/os2.mak base/lib.mak base/bcwin32.mak base/openvms.mak base/mkromfs.c base/gs.mak base/watcw32.mak psi/psromfs.mak psi/int.mak base/unix-aux.mak base/macos-mcp.mak base/msvctail.mak]

2010-03-30T18:40:34.337393Z Robin Watts

Fix bug 691132 by ensuring that whenever we set a line width, we set it to the absolute value of the line width. This seems consistent with PDF, and cures the clipping problem in PCL referred to by the bug. No expected differences.

[base/gxline.h]

2010-03-30T14:46:56.884951Z Robin Watts

In the gs_2_colors branch I had made 2 copies of the color state and swapped between them. I had included dev_ht as part of this 'split' state, which was a significant contributor to the slowdown due to it forcing repeated writing of the halftone data to the clist. Also, it required significant extra work on every setscreen or setcolorscreen operation. Discussions with Henry/Ray/Kens et al lead to the realisation this wasn't required. This patch therefore backs out the dev_ht split, and the changes to zsetscreen and zsetcolorscreen. Additional code is however required to clear the 'alternative' dev_color when a halftone is installed to stop the 'swapped out' color pointing to an illegal halftone cache. This runs through local testing with no diffs showing (though some strangeness was observed with an earlier version of this patch in regression testing - Marcos has captured this with bug 691223). This seems to have helped with the largest slowdowns, but there are still significant differences in some cases. Very preliminary investigations seem to show more time being spent in the interpreter/gc mechanism. Continuing to investigate.

[base/gsstate.c base/gxistate.h base/gsht.c base/gxdcolor.h base/gzstate.h psi/zht.c psi/zht1.c]

2010-03-30T10:16:57.091024Z Ken Sharp

New Fontmap files for the URW fonts, both type 1 and TrueType formats. The file Fontmap.URW-136.T1 contains definitions for the type 1 fonts (the URW PFB fonts must be in the search path). The file Fontmap.URW-136.TT contains definitions for the TrueType fonts (the URW TTF fonts must be in the search path). Currently neither of these work 100% because of problems with the URW font sets (several incorrectly named fonts, and in one case an illegal type 1 font)

[lib/Fontmap.URW-136.T1 lib/Fontmap.URW-136.TT]

2010-03-29T19:10:49.447074Z Alex Cherepanov

Drop 'loca' entries that point beyond 'glyf' table during re-spliting sfnts glyfs strings. Bug 691221.

[Resource/Init/gs_ttf.ps]

2010-03-29T07:52:49.284823Z Chris Liddell

Change the FT interface code so we always use metrics retrieved from Freetype, rather than attempting to "fabricate" metrics (which have already been handled correctly by FT).

[psi/fapi_ft.c]

2010-03-27T01:59:55.922560Z Robin Watts

Fix compilation error in pngs2html.pl (forgot to define variable).

[toolbin/localcluster/pngs2html.pl]

2010-03-26T10:28:56.873949Z Masaki Ushizaka

A leftover from r10603 (Makefile change).

[base/lib.mak]

2010-03-26T00:20:16.302228Z Robin Watts

Updated localcluster bmpcmp html generation script. Bitmaps produced are now zoomable.

[toolbin/localcluster/pngs2html.pl]

2010-03-24T12:47:59.902550Z Robin Watts

Fix for bug 691115. In some circumstances, the shading code can get all the way to the point of marking the screen/page without ever clipping to the relavent region. This produces cases where we "draw outside the lines". Often this is masked by the fact that we only ever draw as far out of the lines as would be covered by an area of constant color (typically a small area). The fix for this is to spot the unclipped case when we come to render trapezoids to the screen, and to clip the trapezoid into (at most) 3 smaller trapezoids. This causes 104 non-pdfwrite differences, and 24 pdfwrite ones. Examination using localcuster bmpcmp shows them all to be acceptable.

[base/gxshade6.c]

2010-03-24T12:05:47.469905Z Robin Watts

Tweak to bmpcmp: Darken the third image (the diff image) to make changes stand out better.

[toolbin/bmpcmp.c]

2010-03-24T00:10:27.875727Z Robin Watts

Correct DOS line endings in bmpcmp.c. Fix bug whereby areas with no changes in were still be saved out.

[toolbin/bmpcmp.c]

2010-03-23T19:14:32.177681Z Robin Watts

Correct problem with bmpcmp whereby certain sizes of changed areas within images could cause overlapping output bitmaps. This causes problems with the output of bitmaps now due to the new 'in-place' generation of the diff bitmap. Fixed by choosing sizes more smartly.

[toolbin/bmpcmp.c]

2010-03-23T09:02:16.120692Z Till Kamppeter

CUPS Raster output device: Error out correctly with the return_error() macro and not with "gs_exit(); exit()", force banding mode as there are files which do not render otherwise (Bug #691170).

[cups/gdevcups.c]

2010-03-23T00:06:59.853037Z Till Kamppeter

Code clean-ups in the "cups" output device to fix the segfaults in bug #691170 and bug #691014 (but does not fix the bugs yet).

[cups/gdevcups.c]

2010-03-22T14:18:42.718453Z Chris Liddell

Handle CID fonts whose GDBytes != 2 - previously GDBytes was hardcoded as 2.

[psi/zfapi.c]

2010-03-22T06:43:08.806820Z Marcos H. Woehrmann

Added the ability to specify bmpcmp options when running clusterpush.pl, e.g.: clusterpush.pl bmpcmp -w 9 -t 10 No validation is done on the options; bad options will result in no bmpcmp output being generated.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/readlog.pl toolbin/localcluster/build.pl toolbin/localcluster/clusterpush.pl toolbin/localcluster/run.pl toolbin/localcluster/compare.pl]

2010-03-21T05:01:50.135122Z Marcos H. Woehrmann

Fixed maxdiffs argument in bmpcmp.c (was acting as maxpage).

[toolbin/bmpcmp.c]

2010-03-21T03:23:53.245152Z Marcos H. Woehrmann

Fixed a couple of compiler warnings in bmpcmp.c

[toolbin/bmpcmp.c]

2010-03-19T18:30:04.447497Z Ralph Giles

Compute AES cypher tables at compile time instead of run time. The aes implementation needs some tables of data to perform its calculations. In a thread-safety review, Henry spotted that the tables were global variables with no mutex isolation. I believe this is actually ok. There is a static flag marking whether the tables are initialized. If they are not, a call to aes_setkey_* will invoke aes_gen_tables to initialize them, then set the flag. However, aes_gen_tables operates deterministically, always writing the same data sequence to the globals. So while there is a race where two threads could be executing aes_gen_tables at the same time, or while another thread is accessing the same tables, there is no read-modify-write step which could create inconsistent data. Nevertheless, the tables are small relative to our application, and there is a compile time option XYSSL_AES_ROM_TABLES which generates the data at compile time and stores it static const. This commit turns on that option, allowing the compiler to put the data in a non-writable segment and making the careful thread safety analysis above unnecessary. There should be no difference in behaviour, and Henry has verified that the two code paths result in identical table data.

[base/aes.c]

2010-03-18T11:39:38.599047Z Ken Sharp

Update the list of face substitutions in .substitutefaces to include all the fonts we define in Fontmap.GS (if not already defined). Bug #691180, if we have a font defined in the Fontmap then we don't use the additional information in a PDF file FontDescriptor. Instead we stick with whatever font the PS substitution comes up with (if the font is not present). If a member of the family is not defined we do use the FontDescriptor. This can lead to different choices for the substitute font. By defining the font in the substitutefaces array we can attempt to get a consistent result. This *will* lead to differences in the regression suite as we are now substituting different fonts for some missing faces. Apparently only with the test file for this bug though.

[Resource/Init/gs_fonts.ps]

2010-03-18T00:57:10.529905Z Robin Watts

Merge gs_2_colors branch down to trunk. This adds a new set of color state information to the graphics/imager state, along with a new non-standard postscript operator .swapcolors to toggle between them. The Postscript interpreter is updated to use one set of color information for stroking, and the other for all non-stroking colors. This produces differences in just 2 pdfwrite tests, due to rounding errors due to changes in the way pdf with non-zero rendering modes is emitted now.

[psi/zcolor.c base/gsdps1.c base/gdevpdft.c base/gxccache.c /trunk/gs base/gspaint.c base/gscsepr.c base/gsimage.c base/gxchar.c base/gsptype1.c base/gxcmap.c psi/interp.c base/gzstate.h psi/dmmain.c base/gscspace.c base/gscolor1.c base/gscdevn.c base/gscolor2.c base/gscie.c base/gxistate.h psi/psromfs.mak psi/dxmain.c base/gxcspace.h base/gxhldevc.c psi/dxmainc.c psi/dmmain.r Resource/Init/pdf_draw.ps psi/zht1.c base/gscolor.c psi/zicc.c psi/zchar1.c base/gxpaint.c base/gsstate.c Resource/Init/pdf_ops.ps psi/zcie.c base/gstext.c Resource/Init/pdf_font.ps base/gstrans.c psi/zht.c base/gsequivc.c base/gxdcolor.h psi/igstate.h base/gspcolor.c]

2010-03-17T21:41:13.190501Z Robin Watts

bmpcmp tweak to allow maximum/minimum bitmap sizes to be set from the command line.

[toolbin/bmpcmp.c]

2010-03-17T20:12:25.972208Z Robin Watts

MSVC whinges when asked to shift by 32 or more bits at once. Simple tweaks to fool the compiler and eliminate warnings. No expected differences.

[base/gdevm64.c base/gdevm56.c base/gdevm48.c base/gdevm40.c base/gxclrast.c]

2010-03-17T18:54:12.480084Z Robin Watts

Tweak to gxcmap.c to remove warnings about shifting by more than 32 bits on MSVC builds. No expected differences.

[base/gxcmap.c]

2010-03-17T17:30:27.541399Z Robin Watts

Revised bmpcmp. * Redone command line handling * Ability to read PAMs (so we can read CMYK stuff now) * "Fuzzy" behaviour (both compatible and exhaustive modes) * New behaviour using map bitmap to avoid rediffing multiple times. * CMYK -> RGB conversion as last step before PNG/BMP writing. Still to do: * Output number of fuzzy matches etc to the meta file.

[toolbin/bmpcmp.c]

2010-03-15T19:18:55.825828Z Lars Uebernickel

Change default TIFF strip size to one megabyte. Many fax readers have problems reading TIFF images which are chunked into strips, and one megabyte is larger than the biggest expected fax page. Hence, ghostscript's default TIFF output will be accepted by those readers.

[base/gdevtifs.h]

2010-03-15T19:00:43.589302Z Lars Uebernickel

Write TIFF directories before the page data. This might help bug #691172 and probably some other non-conforming TIFF readers.

[base/gdevtifs.c base/gdevtsep.c base/gdevtfnx.c]

2010-03-15T15:21:55.436137Z Alex Cherepanov

Don't throw an error when a filter returns 0 bytes and a normal return code. This often happens with eexecDecode filter, which has to return the control to the interpreter after every space character since Adobe no longer adds zeros at the end of the encoded block. Document new return code 2 used by eexecDecode filter. Bug 690909.

[base/sstring.c base/seexec.c psi/iscan.c]

2010-03-15T14:56:15.278449Z Lars Uebernickel

Partial fix for bug #691172: The tiff resolution tags are floating point values and need to be passed as such to TIFFSetField.

[base/gdevtifs.c]

2010-03-15T07:44:38.447170Z Lars Uebernickel

Applied Tim Waugh's patch from bug #691171: A NULL check for the argument of TIFFCleanup was missing, which caused a segfault when opening the output device failed for any of the devices in gdevtfax.c.

[base/gdevtfax.c]

2010-03-15T06:34:34.317078Z regression

Added support for mupdf testing in local regression suite.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/readlog.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl]

2010-03-15T06:31:25.268888Z Marcos H. Woehrmann

Changes to the local cluster code: added bmpcmp documentation to clusterpush.txt new file, runNightly.pl, for nightly regression testing readlog.pl, build.pl, and run.pl changes for nightly regression use

[toolbin/localcluster/readlog.pl toolbin/localcluster/build.pl toolbin/localcluster/runNightly.pl toolbin/localcluster/run.pl toolbin/localcluster/clusterpush.txt]

2010-03-11T17:36:30.596061Z Chris Liddell

Apply a change submitted to FT and accepted - see FT bug #27442

[freetype/src/raster/ftraster.c]

2010-03-11T05:01:22.057384Z Marcos H. Woehrmann

Run svn update on the ghostscript source even for clusterpush runs to make sure that bmpcmp.c is current.

[toolbin/localcluster/run.pl]

2010-03-10T17:41:09.765460Z regression

Minor cleanup of the local cluster code.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/pngs2html.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl toolbin/localcluster/compare.pl]

2010-03-10T16:42:26.014885Z Robin Watts

Fix bug in bmpcmp.c: When reading images from multi-image sets, we stop the comparison process as soon as we fail to find any differences in the current image. With this fix we correctly keep searching to the end.

[toolbin/bmpcmp.c]

2010-03-10T15:05:57.116970Z Chris Liddell

Change how we derive the glyph metrics from FT: we now interpret the glyph description only once, scaled and hinted, and then calculate the metrics from that. It's more accurate, accounts for hints that extend the glyph outline, and should be a worthwhile speed improvement.

[psi/fapi_ft.c]

2010-03-10T12:51:50.027959Z Robin Watts

Change the condition under which we update the overprint device when restoring a graphics state to be more relaxed; rather than updating if the overprint state has changed we now update if it was enabled, or it if it is enabled. The logic behind this is that it will still fire in all the same conditions it did before, but will also fire when we restore from a state that had it enabled to another state that had it enabled. This should be entirely harmless, but will allow the state to be updated in the case where a colorspace has been updated. This causes 2 differences in the tests, that only show up in psd files. All indications seem to be that these files really are identical. But if they aren't, I believe they should be progressions, rather than regressions. This moves the trunk more into line with the output of the gs_2_colors branch.

[base/gsstate.c]

2010-03-10T06:13:23.278865Z Marcos H. Woehrmann

Added local modes to build.pl and run.pl in preparation for use as part of the nightly regression.

[toolbin/localcluster/build.pl toolbin/localcluster/run.pl]

2010-03-10T05:19:59.535554Z Ray Johnston

Fix for SEGV with the psdcmyk device on 258-01.ps. This was a fundamental memory problem with any device that used the compressed_color_list functions in gdevdevn.c since a 'restore' could free structures which were still needed by the device. Use stable_memory to avoid this. Bug 691150.

[base/gdevdevn.c]

2010-03-09T17:27:07.400171Z Robin Watts

Another tweak to the local cluster bmpcmp html page generation. I managed to miss renaming the images in the second column.

[toolbin/localcluster/pngs2html.pl]

2010-03-09T17:22:39.470336Z Robin Watts

Another tweak to the localcluster bmpcmp html page generation javascript; quote the string to avoid it being converted to an int.

[toolbin/localcluster/pngs2html.pl]

2010-03-09T17:22:35.452303Z Till Kamppeter

Let pdftoraster not exit before the Ghostscript sub-process finishes. Thanks to Tim Waugh from Red Hat for the patch.

[cups/pdftoraster.c]

2010-03-09T17:15:22.155871Z Robin Watts

Fix pngs2html.pl to number images according to both directory and image number (needed now as images restart from 0 within each directory). This really should fix the bmpcmp html output.

[toolbin/localcluster/pngs2html.pl]

2010-03-09T17:08:42.132281Z Robin Watts

More fixes for the bmpcmp html page generations javascript. Change code to pass numbers to swap() rather than strings as javascripts conversion of strings to ints is... unhelpful.

[toolbin/localcluster/bmps2html.pl toolbin/localcluster/pngs2html.pl]

2010-03-09T16:50:48.278966Z Robin Watts

Misplaced bracket in the javascript meant that only the first images would swap on mouseover properly. Fixed here.

[toolbin/localcluster/bmps2html.pl toolbin/localcluster/pngs2html.pl]

2010-03-09T16:39:21.328229Z Robin Watts

Fix javascript problems in bmpcmp output page generation. What sort of stupid broken language depends on whitespace?

[toolbin/localcluster/bmps2html.pl toolbin/localcluster/pngs2html.pl]

2010-03-09T16:35:06.527087Z Till Kamppeter

Fixes on CUPS Raster output device: - Fixed memory reallocation on bitmap size change. Reallocation is not only needed when dimendions and margins change, but also when the color depth changes. Fixes bugs #691029 and #691108. - Fixed arrayoption() macro in cups_put_params() function. Array values did not get actually set in cups.header data structure. Bug only showed via a compiler warning. - Silenced compiler warning by presetting c0..c3 in cups_map_cmyk() to zero.

[cups/gdevcups.c]

2010-03-09T16:29:31.666786Z Robin Watts

Attempted fix for bmpcmp output javascript problems with the coordinate tracking.

[toolbin/localcluster/pngs2html.pl]

2010-03-09T16:11:59.669918Z Robin Watts

Fix typos in the javascript code for pngs2html.pl and bmps2html.pl; this should get at least some of it working, but the coord stuff still baffles me. Also fix a typo that was causing the wrong "third image" to appear.

[toolbin/localcluster/bmps2html.pl toolbin/localcluster/pngs2html.pl]

2010-03-09T01:46:06.865448Z Marcos H. Woehrmann

Fixed longstanding bug fuzzy.c that caused pbm files to be misread.

[toolbin/tests/fuzzy.c]

2010-03-08T21:57:05.576067Z Hin-Tak Leung

updating documentation to mention how to run mkcidfm.ps manually; bug 688437

[doc/Use.htm]

2010-03-08T21:54:37.005008Z Hin-Tak Leung

convert font file name to lowser case before matching; make it possible for upper case ARIALUNI.TTF to match; bug 688437

[lib/mkcidfm.ps]

2010-03-08T21:49:56.216990Z Hin-Tak Leung

updating windows CJK font substitution list for more commonly found MS CJK fonts; bug 688437

[lib/mkcidfm.ps]

2010-03-08T21:47:15.240330Z Hin-Tak Leung

revert to r8185 version of the korean example - it was removed in r8190 and a corrupted version r9325 was subsequently checked in; found during fixing bug 688437 (incompete font substitution list)

[examples/cjk/gscjk_ak.ps]

2010-03-08T16:20:53.842289Z Ken Sharp

Ongoing bug fixes for #690448. The FreeType code will synthesize vertical metrics for TrueType (Type 42) fonts which do not contain a vmtx table. This includes the vertical advance, which will be returned to the FAPI code, and used even if there were originally no vertical metrics and the font should not have any vertical advance. Modified the metrics override callback, called by FT, so that if the font is a TT font, and this is a vertical metrics call, we set the advance to 0. This prevents the synthesized metrics from incorrectly advancing the glyph vertically. This may eventually be a problem if we find a CIDFont with Type42 outlines which relies on the vmtx table in the font rather than the Metrics2 or CDevProc overrides to position the glyphs. Since this facility was only added in CPSI 3011 it is unlikely we will ever encounter such a font. THis has not been done at present, as the information (WMode=1) is not currently available to the code called from FreeType to override the metrics, and would need to be added. Also, fixed an issue where the 'advance_v' member of the metrics structure was left uninitialised if a horizontal override took place. This could cause glyphs to be mis-positioned vertically.

[psi/fapi_ft.c]

2010-03-08T15:41:20.817468Z Ken Sharp

revert revision 10871, we will tackle this problem in the FAPI FreeType interface code instead of in FreeType itself.

[psi/fapi_ft.c]

2010-03-08T15:22:57.356559Z Ken Sharp

revert revision 10871, we will address the matter of FreeType creating synthetic vertical metrics when none exist by overriding the synthetic metrics in the FAPI FreeType interface code instead.

[freetype/src/truetype/ttgload.c freetype/include/freetype/freetype.h]

2010-03-08T09:28:49.484133Z Chris Liddell

Latest improvements to the FAPI/FT bridge code. This code resolves the issues with font matrices which do more than just scale. It is not yet "finished", but is too big a step forward to risk losing.

[psi/fapi_ft.c psi/zfapi.c]

2010-03-05T21:01:34.974121Z Marcos H. Woehrmann

Added bmpcmp option to clusterpush.pl.

[toolbin/localcluster/clusterpush.pl]

2010-03-05T19:25:34.812546Z regression

Export results of local cluster bmpcmp command to web.

[toolbin/localcluster/clustermaster.pl]

2010-03-05T16:50:00.654216Z regression

Update the local cluster code to use the new pbm->png mode of bmpcmp.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl toolbin/localcluster/compare.pl]

2010-03-05T16:47:10.049203Z Marcos H. Woehrmann

Minor changes due to bugzilla update.

[toolbin/bugsByEngineer.pl]

2010-03-05T13:24:34.158774Z Ken Sharp

Fix FreeType Ongoing fixes for bug #690448. In this case FreeType generates vertical metrics for TrueType (in our case Type 42) fonts which lack vhea/vmtx tables, which is generally the case. These metrics are useful to a 'normal' TrueType consumer which has a notion of the orientation of the writing direction. However in PostScript we don;t know that, so we apply both the horizontal and vertical advance widths. If the vertical advance should be 0 (because its not specified) then creating one causes the glyphs to be misplaced. This code adds a new load flag to FreeType 'FT_LOAD_NO_SYNTHETIC_METRICS', and sets this flag in the FAPI FreeType interface code, which prevents FreeType from manufacturing a bogus vertical advance.

[psi/fapi_ft.c freetype/src/truetype/ttgload.c freetype/include/freetype/freetype.h]

2010-03-05T09:23:47.698736Z Lars Uebernickel

Open tiffsep and tiffsep1 output files as seekable. All files written by libtiff have to be seekable when writing multiple pages, because libtiff tries to access previously written page dictionaries. This fixes bug 691160.

[base/gdevtsep.c]

2010-03-05T07:01:13.637667Z Marcos H. Woehrmann

Fix pbm reading and png writing in bmpcmp.c.

[toolbin/bmpcmp.c]

2010-03-05T05:32:24.962092Z regression

Added pngs2html.pl to repository: take a directory full of png files generated by the increasingly poorly named bmpcmp.c and generate web pages (like bmps2html.pl but without the bmp->png conversion).

[toolbin/localcluster/pngs2html.pl]

2010-03-03T21:21:07.833457Z Ralph Giles

Flip images from RGB to BGR pixel format when reading ppm files, and flip them back to RGB when writing png files. This adapts all the current routines to assume the BGRx storage format used by the bmp image format for the internal representation, as is already done with the row order.

[toolbin/bmpcmp.c]

2010-03-03T21:21:04.624166Z Ralph Giles

Also save the difference image as a png when bmpcmp is compiled with HAVE_LIBPNG.

[toolbin/bmpcmp.c]

2010-03-03T20:30:01.695369Z Robin Watts

Fix stupid memory overwrite bug on bmp load.

[toolbin/bmpcmp.c]

2010-03-03T20:03:29.767395Z Robin Watts

bmpcmp.c tweaks: Add (largely untested) code to allow "plain" (ascii) ppm, pgm, pbm files. Also fix some compile warnings on 64bit platforms. Now compiles cleanly with -Wall.

[toolbin/bmpcmp.c]

2010-03-03T19:07:12.236947Z Ralph Giles

Add optional support for png output to the bmpcmp utility. When compiled with the HAVE_LIBPNG preprocessor symbol defined, and linking with libpng, the utility will save its output focus images in RGB png format. Currently, only 32 bit RGBx pixel data is supported.

[toolbin/bmpcmp.c]

2010-03-02T22:49:02.357333Z Robin Watts

Attempt to fix the javascript in the created files. The change to use numeric filenames padded to 5 chars had broken the javascript. This might fix it.

[toolbin/localcluster/bmps2html.pl]

2010-03-02T21:26:36.100914Z regression

More changes towards having a bmpcmp running on the local cluster.

[toolbin/localcluster/bmps2html.pl toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl]

2010-03-02T21:12:59.888859Z Robin Watts

Updated bmpcmp to avoid inverting pnms on reading. Also improve reading of non 32bpp bitmaps - still not quite right.

[toolbin/bmpcmp.c]

2010-03-02T00:15:58.939654Z Marcos H. Woehrmann

Added partial support for "clusterpush.pl bmpcmp" (which will allow users to generate bitmap comparisons of their most recent clusterpush job and trunk).

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl toolbin/localcluster/clusterpush.pl toolbin/localcluster/run.pl toolbin/localcluster/compare.pl]

2010-03-01T17:44:40.662743Z Ralph Giles

Add support to the autoconf and msvc builds to compile in a copy of the FreeType2 library from local source. Previously, the FAPI bridge for freetype required that the library be compiled externally and include and link flags passed through the FT_CFLAGS and FT_LIBS makefile variables. We now include a copy of the freetype source in the tree, to make it easier to find a compatible version of the source and to simplify building for platforms that don't provide a system freetype. Now, to enable both freetype and the FAPI bridge, pass --enable-freetype to the configure script. This will set FT_BRIDGE=1 and the other required variables. The configure script will prefer local source in gs/freetype2 to the copy in gs/freetype to simplify testing against upstream. To enable freetype in the msvc build, pass FT_BRIDGE=1 on the nmake command line. Note that the fallback is now FT_BRIDGE=0, not FT_BRIDGE undefined; this will require changes in any custom top-level makefiles.

[base/winlib.mak doc/Make.htm base/gs.mak base/Makefile.in psi/int.mak base/configure.ac psi/msvc32.mak]

2010-03-01T15:34:56.724940Z Henry Stiles

Fixes bug #691154 and the regressions associated with revision 10823. Unfortunately, performance-wise, the wtsimdi device must always use a contone buffer until we've had a chance to see which raster operations can be eliminated correctly.

[base/gdevwts.c]

2010-02-28T22:57:02.883228Z Hin-Tak Leung

First half of patch from John Wehle for bug 691149 - vac C compiler on AIX 5.2 does not like function with a void prototype returning a void function e.g. ------------------ void func1(); void funct2() { return funct1(); } ------------------ The 2nd half of the submitted patch was committed as part of r10826 .

[base/gdevpx.c]

2010-02-28T17:26:09.949555Z Henry Stiles

Fixes part of 691149 - void function returning value, thanks to John Wehle for the fix. Also, there were several compiler warnings in this file related to the casting of the gs memory type pointer which have been cleaned up as well.

[base/gsnogc.c]

2010-02-28T14:52:00.838160Z Hin-Tak Leung

The distclean make target should call pgclean to clean up profile build also.

[base/Makefile.in]

2010-02-28T01:19:26.994088Z Alex Cherepanov

Following PDF reference, version 1.7, section 10.10, crop /TrimBox and /CropBox by the /MediaBox. Bug 691145.

[Resource/Init/pdf_main.ps]

2010-02-27T23:29:31.437722Z Henry Stiles

Fixes bug #691147 customer 861, the optimization to strength reduce the raster operation here is wrong, it is premised on the assumption the colors are opaque. If either texture or source is transparent the strength reduction which effectively ignores the source or pattern is wrong and it will subsequently cause opaque painting. We've simply removed the optimization instead of conditionalizing on opaque cases, because tests indicate the reduction not that significant. The example in the bug report was reduced from a file in the XL ATS 305 test suite. The following customer reported bugs in that test suite are fixed by this change: FH905UJ1.BIN pp 1,2,3,4 FH906UJ1.BIN pp 1-6 MA2K7UJ2.BIN pp 1-10 PW2K6UJ1.BIN pp 2 PWTTDUJ3.BIN pp 1

[base/gxipixel.c]

2010-02-27T20:24:13.417473Z Alex Cherepanov

Upgrade Adobe Glyph List to v. 2.0. AGL is used for character mapping in non-symbolic TrueType fonts in PDF files. Bug 691116.

[Resource/Init/gs_agl.ps]

2010-02-27T16:56:47.050522Z Alex Cherepanov

Add missing newline in a TTF debug message.

[Resource/Init/gs_ttf.ps]

2010-02-26T17:11:28.684024Z Ralph Giles

Correct a typo in the freetype makefile which prevented the inclusion of ftlzw.c.

[base/freetype.mak]

2010-02-26T06:41:31.056673Z Ralph Giles

Fixes to our makefile for the third-party freetype library. I'd missed a number of "optional" files in the original commit, but didn't notice because other dependencies, which themselves link to the system freetype library on linux were providing definitions of the missing symbols. These are now included in our build. We now generate freetype.dev by copying freetype_$(SHARE_FT) within freetype.mak, the same was this option is handled in the other third- party makefiles. We set native line endings and Id keyword substitution for this file in the Subversion repository.

[base/freetype.mak]

2010-02-25T11:04:59.765077Z Chris Liddell

add quotes around the expansion of DEVSTUDIO variable when it's used for the recursive nmake call for debug targets - in case it has white space in it.

[psi/msvc32.mak]

2010-02-25T08:21:46.259499Z Masaki Ushizaka

Fix for bug 691103. The pdfwrite device now considers FDArray fonts' FontMatrix and writes correct W/W2/DW/DW2 widths for CIDFont with unusual FontMatrix. This also fixes a problem gs_font::orig_FontMatrix not being initialized for CIDFont. Bug687832.pdf and Bug690834.ps will show differences which are improvements.

[Resource/Init/gs_cidfn.ps base/gdevpdtt.c]

2010-02-24T20:26:57.347460Z Ralph Giles

Add a generic makefile for compiling the freetype library as part of the Ghostscript monolithic build. Including makefiles should define FTSRCDIR, FTGENDIR and FTOBJDIR, similar to other third party libraries.

[base/freetype.mak]

2010-02-24T19:59:05.197182Z Ralph Giles

Copy our local branch of the freetype library source into the gs tree. This was the intended result of commit 10804, but an ommitted path element placed it in the repository root instead.

[freetype]

2010-02-24T19:38:11.435012Z Ralph Giles

Correct a typo in a dependency specification for wrfont.c. The typo (stdio_h for stdio__h) prevented the dependency on arch.h from being declared, generating a temporary error in a sufficiently parallel make invocation.

[psi/int.mak]

2010-02-24T19:27:11.525322Z regression

Changed naming scheme for regressions from 00000-00000 to 00000 (i.e. no longer treat Ghostscript and GhostPDL revisions independently).

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/run.pl toolbin/localcluster/cachearchive.pl]

2010-02-24T18:22:35.905364Z Ralph Giles

Move the fontconfig check into the libraries section of the configure script.

[base/configure.ac]

2010-02-24T18:16:45.225914Z Chris Liddell

ensure the DEVSTUDIO value is propagated when we recursively nmake for the debug targets.

[psi/msvc32.mak]

2010-02-24T17:28:23.116518Z Ralph Giles

Remove a spurious circular symlink accidentally included in the libpng-1.2.42 source import.

[libpng/libpng]

2010-02-24T09:58:02.654907Z Ken Sharp

Fix, ignore a class of broken TrueType font. Bug #691121 "gs stops in interpreting tt instructions". The font executes an MDRP instruction with point number 28, the glyph only contains 28 points numbered 0 to 27 so the interpreter (correctly) flags an error. Windows and FT both appear to silently ignore the error and the instruction (definitely the case for FreeType). Modified Ins_MDRP to simply return if the indicated point is outside the number of points in this case.

[base/ttinterp.c]

2010-02-23T22:29:18.142249Z Henry Stiles

Fixes bug 690967, a diagnostic problem with dumping memory the debug -ZA option. See the comment in the code for details, the change has no effect on production builds.

[base/gsalloc.c]

2010-02-23T21:58:15.181686Z Alex Cherepanov

Fix obviously wrong code in .fixsethalftonescreen procedure that is used by the setscreen (and setcolorscreen) procedure and caused a PS error if the third 'proc' argument to setscreen is a read-only Halftone type 1 dictionary. Thanks to Jonathan Dagresta for the patch. Bug 691130, customer 1130.

[Resource/Init/gs_dps2.ps]

2010-02-23T20:56:21.262529Z Alex Cherepanov

Simplify sed script that extracts libTiff version number for compatibility with AIX sed. Include our portable header before tiff.h to make sure that all stdint types are found. Bug 691102.

[base/gdevtifs.c base/gdevtsep.c base/configure.ac base/gdevtfnx.c base/devs.mak base/gdevtfax.c]

2010-02-23T10:01:54.545437Z Ken Sharp

Fix (pdfwrite) Bug #691133. If producing PDF/A output. and a DOCINFO pdfmark string was UTF_16BE encoded *and* contained a numeric character, then decode_escape incorrectly consumed any numeric characters following the first octal byte of the UTF16 code. This was caused by decode_escape assuming that octal sequences are terminated by non-numeric characters which is clearly wrong. The octal escape decoding loop is now terminated when : 1) 3 numeric characters are read from the string 2) No more data is available in the string 3) A non-numeric character is encountered in the string.

[base/gdevpdfe.c]

2010-02-22T11:45:33.943563Z Chris Liddell

resolve inappropriate variable type (signed vs unsigned) and comparisons with the wrong variable when writing the local subrs info to the serialized T2 Private dictionary.

[psi/write_t2.c]

2010-02-21T17:57:24.841443Z regression

Added regression testing of the icc_work branch to the local cluster.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/run.pl toolbin/localcluster/cachearchive.pl]

2010-02-21T03:57:26.068286Z Marcos H. Woehrmann

Add cast to bmpcmp.c to quiet useless compiler warning.

[toolbin/bmpcmp.c]

2010-02-21T03:51:51.891247Z regression

Several minor changes to local cluster code to improve reliability and increase performance.

[toolbin/localcluster/clustermaster.pl toolbin/localcluster/build.pl toolbin/localcluster/run.pl toolbin/localcluster/compare.pl]

2010-02-21T03:38:29.059238Z Alex Cherepanov

Update pdf2dsc.ps to match the changes in pdf_main.ps introduced by the rev. 10341. Thanks to William Bader for the patch. Bug 691124.

[lib/pdf2dsc.ps]

2010-02-21T02:57:05.611462Z Alex Cherepanov

Include stat_.h before estack.h, which defines esp macro. Prevent a spurious macro substitution in Cygwin version of signal.h. Bug 691123, customers 661.

[psi/zfapi.c psi/int.mak]

2010-02-17T17:02:27.004947Z Henry Stiles

Adds placeholder files to trunk so the other languages (pcl, xps and svg) can built with the icc branch and trunk. Each of these files will be replaced with real files when the icc branch is merged into the trunk.

[base/lcms.mak base/gsiccmanage.h]

2010-02-16T18:12:57.832463Z Robin Watts

Tiny tweaks to clusterpush.pl to make it work on windows. First, wrap the $HOME directory in additional quotes to allow for awkward windows users with spaces in their names. Secondly, add a crude mapping for people whos windows names are not the same as the usernames. This can unquestionably be done more nicely, but the simple version will do for now.

[toolbin/localcluster/clusterpush.pl]

2010-02-16T17:07:49.079920Z Alex Cherepanov

Add missing dereferencing of indirect objects in /Mask array. Bug 691112, customers 870.

[Resource/Init/pdf_draw.ps]

2010-02-12T15:27:23.315268Z Ken Sharp

Sort out some minor benign compiler warnings. No differences expected.

[base/gdevpdfe.c]

2010-02-12T15:17:16.629322Z Ken Sharp

Fix colour processing. It was possible for nested ICCBased colour spaces (ie an ICCBased space whose Alternate is another ICCBased space) to cause segmentation faults. This was due to the fact that the conversion to base colour continuation procedure 'currentbasecolor_cont' was supposed to scan the space from the initial declaration each time round a loop. However a reassignment of an array pointer caused it to rescan from the last processed colour array instead. Normally this does not cause problems, but in the case of nested ICCBased it caused us to generate an error. Fixed by re-initialising the array pointer at the start of the loop.

[psi/zcolor.c]

2010-02-11T16:28:20.347398Z Ken Sharp

Fix (pdfwrite) bug #691104 "pdfwrite emits garbage in the XMP metadata when DOCINFO pdfmarks contain UTF-16BE text strings" There were several problems. Firstly the undoing of PostScript string escapes was wrong, Octal escapes consumed too many characters, and several escape sequences weren't recognised. Secondly the XMP emission didn't expect to receive UTF-16BE strings and didn't convert them to UTF-8 for inclusion in the metadata. This patch fixes the broken octal escapes, adds teh unprocessed escapes and checks the DOCINFo strings before sending to XMP. If they include the UTF-16BE Byte Order Mark then convert the strings to UTF-8.

[base/gdevpdfe.c]

2010-02-10T20:27:33.989189Z Ralph Giles

Bump the versioning after the 8.71 release.

[base/gscdef.c base/version.mak Resource/Init/gs_init.ps doc/News.htm]

Copyright © 2000-2011 Artifex Software, Inc. All rights reserved.

This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at http://www.artifex.com/ or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.

Ghostscript version 9.04, 5 August 2011