home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fonts 1 / freshfonts1.bin / bbs / programs / amiga / pastex13.lha / DVIPS / dvips5519.lha / dvips / pc / maketexp.cmd < prev    next >
OS/2 REXX Batch file  |  1993-01-27  |  1KB  |  57 lines

  1. @echo off
  2. REM 
  3. REM    This script file makes a new TeX PK font, because one wasn't
  4. REM    found.  Parameters are:
  5. REM 
  6. REM    name dpi bdpi magnification [mode]
  7. REM 
  8. REM    `name' is the name of the font, such as `cmr10'.  `dpi' is
  9. REM    the resolution the font is needed at.  `bdpi' is the base
  10. REM    resolution, useful for figuring out the mode to make the font
  11. REM    in.  `magnification' is a string to pass to MF as the
  12. REM    magnification.  `mode', if supplied, is the mode to use.
  13. REM 
  14. REM    Because of MSDOS memory constraints, this batch file just
  15. REM    creates a mfjob file, so that the fonts can be created later.
  16. REM 
  17.  
  18. REM NAME=%1 DPI=%2 BDPI=%3 MAG=%4 MODE=%5
  19.  
  20. if exist dvips.mfj  goto :second
  21. echo %% dvips.mfj - created by dvips > dvips.mfj
  22. echo input [modes]; >> dvips.mfj
  23. echo Created dvips.mfj
  24.  
  25. :second
  26. echo { >> dvips.mfj
  27. echo base=plain; >> dvips.mfj
  28. echo font=%1; >> dvips.mfj
  29. echo mag=%4;  >> dvips.mfj
  30.  
  31. if "%5" == ""  goto :nomode
  32. if "%5" == "imagen"  goto :hpmode
  33. if "%5" == "hplaser"  goto :hpmode
  34.  
  35. :goodmode
  36. echo mode=%5[%3]; >> dvips.mfj
  37. echo output=pk[c:\texfonts\%5\@Rrdpi\@f]; >> dvips.mfj
  38. goto :donemode
  39.  
  40. :hpmode
  41. echo mode=hplaser[%3]; >> dvips.mfj
  42. echo output=pk[c:\texfonts\pixel.lj\@Rrdpi\@f]; >> dvips.mfj
  43. goto :donemode
  44.  
  45. :nomode
  46. echo m; >> dvips.mfj
  47.  
  48. :donemode
  49. echo } >> dvips.mfj
  50.  
  51. REM Uncomment the following line and comment out the echo instruction to 
  52. REM make operation automatic.
  53.  
  54. REM mfjob dvips
  55. echo Run "mfjob dvips"
  56. :exit 
  57.