1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/print/ghostscript9/files/patch-lips:gdevlips.h
Hiroki Sato cef5efef69 Add print/ghostscript9, an interpreter of PostScript and PDF page
description languages.  Changes from 8.x series include:

- 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.

- 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 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.

- 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.
2011-05-23 20:58:46 +00:00

18 lines
589 B
C

--- contrib/lips4/gdevlips.h.orig Thu Nov 2 12:09:18 2000
+++ contrib/lips4/gdevlips.h Tue Jan 13 01:23:47 2004
@@ -188,6 +188,14 @@
bool faceup;\
char mediaType[LIPS_MEDIACHAR_MAX];
+/* added by shige 11/06 2003 */
+#define USE_LIPS_SIZE_ERROR
+#define LIPS_SIZE_ERROR_VALUE 2
+
+/* added by shige 11/09 2003 */
+#define LIPS_HEIGHT_MAX_720 11906
+#define LIPS_WIDTH_MAX_720 8419
+
int lips_media_selection(int width, int height);
int lips_packbits_encode(byte * inBuff, byte * outBuff, int Length);
int lips_mode3format_encode(byte * inBuff, byte * outBuff, int Length);