home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fontutils-0.6-base.tgz / fontutils-0.6-base.tar / fsf / fontutils / bzrto / bzrbuildch.PS < prev    next >
Text File  |  1992-10-22  |  1KB  |  40 lines

  1. % This file defines the character builder for the PostScript fonts we output.
  2. %
  3. % Copyright (C) 1990--91 Free Software Foundation, Inc.
  4. %
  5. % This program is free software; you can redistribute it and/or modify
  6. % it under the terms of the GNU General Public License as published by
  7. % the Free Software Foundation; either version 2, or (at your option)
  8. % any later version.
  9. %
  10. % This program is distributed in the hope that it will be useful,
  11. % but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. % GNU General Public License for more details.
  14. %
  15. % You should have received a copy of the GNU General Public License
  16. % along with this program; if not, write to the Free Software
  17. % Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19.  
  20. % The characters are represented as arrays of seven elements.  The
  21. % first six are exactly the parameters to setcachedevice, i.e.,
  22. % wx wy llx lly urx ury (the width and the bounding box).  The seventh
  23. % is the procedure which, when executed, draws the character.
  24. userdict /BZRBuildChar known not
  25. {
  26.   userdict
  27.   /BZRBuildChar
  28.   { 
  29.     4 dict begin  % Need space for four temporaries.
  30.     /char exch def
  31.     /font exch def
  32.     /charname font /Encoding get char get def
  33.     /onechardesc font /CharDescriptions get charname get def
  34.     onechardesc 0 6 getinterval aload pop setcachedevice   
  35.     onechardesc 6 get exec
  36.     end
  37.   } put
  38. } if
  39.