home *** CD-ROM | disk | FTP | other *** search
/ swCHIP 1991 January / swCHIP_95-1.bin / utility / gs333ini / gs3.33 / gs_type0.ps < prev    next >
Text File  |  1995-12-09  |  2KB  |  46 lines

  1. %    Copyright (C) 1992, 1994 Aladdin Enterprises.  All rights reserved.
  2. % This file is part of Aladdin Ghostscript.
  3. % Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. % or distributor accepts any responsibility for the consequences of using it,
  5. % or for whether it serves any particular purpose or works at all, unless he
  6. % or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. % License (the "License") for full details.
  8. % Every copy of Aladdin Ghostscript must include a copy of the License,
  9. % normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. % the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. % under certain conditions described in the License.  Among other things, the
  12. % License requires that the copyright notice and this notice be preserved on
  13. % all copies.
  14.  
  15. % Initialization file for composite font facilities.
  16. % When this is run, systemdict is still writable.
  17.  
  18. % Define findencoding.
  19. % (cshow, rootfont, and setcachedevice2 are real operators.)
  20. % .encodingdict is defined and initialized in gs_init.ps.
  21. % .findencoding is defined in gs_init.ps.
  22. /findencoding { .findencoding } odef
  23.  
  24. % Redefine the setcachedevice step of Type1BuildChar
  25. % so that it takes Metrics2 and CDevProc into account.
  26. /setcache_C        % <charname> <wx> <wy> <llx> <lly> <urx> <ury>
  27.             %   setcache_C -
  28.  { currentdict /Metrics2 .knownget
  29.     { 7 index .knownget
  30.        { aload pop }
  31.        { 5 index 5 index 0 0 }
  32.       ifelse
  33.     }
  34.     { 5 index 5 index 0 0
  35.     }
  36.    ifelse
  37.    currentdict /CDevProc .knownget
  38.     { 12 -1 roll exch exec }
  39.     { 11 -1 roll pop }
  40.    ifelse
  41.    setcachedevice2
  42.  } bind def
  43.