home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1690 < prev    next >
Internet Message Format  |  1990-12-28  |  1KB

  1. From: ajcd@cs.ed.ac.uk (Angus Duggan)
  2. Newsgroups: alt.sources
  3. Subject: pbmtopk patch 2
  4. Message-ID: <217@skye.cs.ed.ac.uk>
  5. Date: 21 Aug 90 08:50:06 GMT
  6.  
  7. Here's a (very minor) bug fix for pbmtopk. It only affects the TFM files
  8. created for fonts with no characters in them. Don't bother asking me why I
  9. want to create fonts with no characters!-)
  10.  
  11. Angus.
  12. ==
  13. Angus Duggan, Department of Computer Science,    | I'm pink, therefore I'm Spam.
  14. University of Edinburgh, JCMB,            |
  15. The King's Buildings, Mayfield Road,        | JANET:  ajcd@uk.ac.ed.lfcs
  16. Edinburgh, EH9 3JZ, Scotland.    | OR:  ajcd%lfcs.ed.ac.uk@nsfnet-relay.ac.uk
  17.  
  18. *** pbmtopk.c.~1~    Fri Aug 10 13:08:46 1990
  19. --- pbmtopk.c    Sun Aug 12 11:31:30 1990
  20. ***************
  21. *** 382,390 ****
  22.     integer headersize = 17;
  23.     integer i ;
  24.   
  25. !   if (smallestch < 0 || largestch >= MAXPKCHAR) {
  26. !     fprintf(stderr, " No characters read!\n") ;
  27. !     jumpout() ;
  28.     }
  29.     if (numparam < 7) /* set default parameters */
  30.       switch (numparam) {
  31. --- 382,390 ----
  32.     integer headersize = 17;
  33.     integer i ;
  34.   
  35. !   if (largestch - smallestch < 0) {
  36. !      largestch = 0;
  37. !      smallestch = 1;
  38.     }
  39.     if (numparam < 7) /* set default parameters */
  40.       switch (numparam) {
  41.