pfbtopfa.ps 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. % Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
  2. %
  3. % This file is part of AFPL Ghostscript.
  4. %
  5. % AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  6. % distributor accepts any responsibility for the consequences of using it, or
  7. % for whether it serves any particular purpose or works at all, unless he or
  8. % she says so in writing. Refer to the Aladdin Free Public License (the
  9. % "License") for full details.
  10. %
  11. % Every copy of AFPL Ghostscript must include a copy of the License, normally
  12. % in a plain ASCII text file named PUBLIC. The License grants you the right
  13. % to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14. % conditions described in the License. Among other things, the License
  15. % requires that the copyright notice and this notice be preserved on all
  16. % copies.
  17. % $Id: pfbtopfa.ps,v 1.2 2000/09/19 18:29:11 lpd Exp $
  18. % pfbtopfa.ps
  19. % Convert a .pfb font to .pfa format.
  20. [ shellarguments {
  21. counttomark 2 eq {
  22. /pfa exch def /pfb exch def pop
  23. /in1 pfb (r) file def
  24. /in in1 true /PFBDecode filter def
  25. /out pfa (w) file def
  26. { in read not { exit } if out exch write } loop
  27. out closefile in closefile in1 closefile
  28. quit
  29. } {
  30. cleartomark (Usage: pfbtopfa input.pfb output.pfa) = flush
  31. } ifelse
  32. } {
  33. pop
  34. } ifelse