pfbtopfa.ps 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. % Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
  2. %
  3. % This software is provided AS-IS with no warranty, either express or
  4. % implied.
  5. %
  6. % This software is distributed under license and may not be copied,
  7. % modified or distributed except as expressly authorized under the terms
  8. % of the license contained in the file LICENSE in this distribution.
  9. %
  10. % For more information about licensing, please refer to
  11. % http://www.ghostscript.com/licensing/. For information on
  12. % commercial licensing, go to http://www.artifex.com/licensing/ or
  13. % contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  14. % San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  15. % $Id: pfbtopfa.ps,v 1.4 2002/02/21 21:49:28 giles Exp $
  16. % pfbtopfa.ps
  17. % Convert a .pfb font to .pfa format.
  18. [ shellarguments {
  19. counttomark 2 eq {
  20. /pfa exch def /pfb exch def pop
  21. /in1 pfb (r) file def
  22. /in in1 true /PFBDecode filter def
  23. /out pfa (w) file def
  24. { in read not { exit } if out exch write } loop
  25. out closefile in closefile in1 closefile
  26. quit
  27. } {
  28. cleartomark (Usage: pfbtopfa input.pfb output.pfa) = flush
  29. } ifelse
  30. } {
  31. pop
  32. } ifelse