Integrating the FreeType rasterizer in Ghostscript graphics library version: 0.0.2.fix2 date: 11 November 2000 Francesco Zappa Nardelli Introduction ************ The Ghostscript algorithm for filling paths generated by the interpretation and the hinting of Type1 fonts does not perform drop-out control. This results in poor quality text rendering on low resolution devices. This patch modifies Ghostscript to invoke the FreeType2 scan-line converter in order to fill paths generated from interpreting and hinting Type1 fonts. Both monochrome and anti-aliased FreeType2 rasters have been integrated. Interpretation and hinting of Type 1 fonts is still done using the mechanisms present in Ghostscript 6.01. Supported systems ***************** I have tested the code on Gnu/Linux/x86, SunOs 5.6/Sparc, and Gnu/Linux/Alpha using the devices x11*, jpeg, and bmp*. Known problems ************** The anti-aliased scan converter is currently invoked only when glyph caching is disabled: $ gs -dNOCACHE -dNOPLATFONTS -sDEVICE=x11alpha The monochrome scan converter is invoked otherwise. Besides, it works only on Gnu/Linux/x86, and only if your Xserver has enough colors. When I'll figure out how alpha channels work I'll rewrite the anti-aliased code entirely: please consider it as a demo. The monochrome scan converter should work fine until the first bug report. License ******* ftfill.c and ftfill.h: Copyright (C) 2000 by Francesco Zappa Nardelli Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Credits ******* All files named ft* except ftfill.(h|c) are taken from the FreeType library (www.freetype.org), and therefore come under the FreeType license. Please refer to the file FTLICENSE. Building ******** You will need: * the Ghostscript 6.01 sources; this is available from http://www.cs.wisc.edu/~ghost The following instructions assumes that the current directory is the toplevel of the Ghostscript distribution. You will probably need to change the paths given in the examples on yours. 1. Apply the patch `gsft-0.0.2.fix2.patch': $ cd /usr/local/src/gs6.01 $ patch -p0