home *** CD-ROM | disk | FTP | other *** search
/ jppd.dyndns.org / jppd.dyndns.org.tar / jppd.dyndns.org / QUERYPRO / Actualizar / Impressora_PDF / converter.exe / GPLGS / gs_typ42.ps < prev    next >
Text File  |  2002-02-22  |  2KB  |  45 lines

  1. %    Copyright (C) 1996 Aladdin Enterprises.  All rights reserved.
  2. % This software is provided AS-IS with no warranty, either express or
  3. % implied.
  4. % This software is distributed under license and may not be copied,
  5. % modified or distributed except as expressly authorized under the terms
  6. % of the license contained in the file LICENSE in this distribution.
  7. % For more information about licensing, please refer to
  8. % http://www.ghostscript.com/licensing/. For information on
  9. % commercial licensing, go to http://www.artifex.com/licensing/ or
  10. % contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. % San Rafael, CA  94903, U.S.A., +1(415)492-9861.
  12.  
  13. % $Id: gs_typ42.ps,v 1.6 2002/02/21 21:49:28 giles Exp $
  14. % Type 42 font support code.
  15.  
  16. % Here are the BuildChar and BuildGlyph implementation for Type 42 fonts.
  17. % The names %Type42BuildChar and %Type42BuildGlyph are known to the
  18. % interpreter.  The real work is done in an operator:
  19. %    <font> <code|name> <name> <glyphindex> .type42execchar -
  20.  
  21. (%Type42BuildChar) cvn    % <font> <code> %Type42BuildChar -
  22.  { 1 index /Encoding get 1 index get .type42build
  23.  } bind def
  24. (%Type42BuildGlyph) cvn    % <font> <name> %Type42BuildGlyph -
  25.  { dup .type42build
  26.  } bind def
  27. /.type42build        % <font> <code|name> <name> .type42build -
  28.  { 2 index begin
  29.     dup CharStrings exch .knownget not
  30.      { 2 copy eq { exch pop /.notdef exch } if
  31.        QUIET not
  32.     { (Substituting .notdef for ) print = flush }
  33.     { pop }
  34.        ifelse
  35.        /.notdef CharStrings /.notdef get
  36.      } if
  37.    end .type42execchar
  38.  } bind def
  39.  
  40. % Register the font type for definefont.
  41. buildfontdict 42 /.buildfont42 cvx put
  42.