home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / PRINTING / DVIPS54.ZIP / EMTEX / MAKETEXP.BAT < prev   
DOS Batch File  |  1990-11-25  |  1KB  |  50 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 not "%3" == "300"  goto :exit
  21.  
  22. if exist dvips.mfj  goto :second
  23. echo %% dvips.mfj - created by dvips > dvips.mfj
  24. echo input [modes]; >> dvips.mfj
  25. echo base=plain; >> dvips.mfj
  26. echo Created dvips.mfj
  27.  
  28. :second
  29. echo { >> dvips.mfj
  30. echo font=%1; >> dvips.mfj
  31. echo mag=%4;  >> dvips.mfj
  32.  
  33. if "%5" == ""  goto :nomode
  34. if "%5" == "imagen"  goto :nomode
  35. if "%5" == "hplaser"  goto :nomode
  36.  
  37. :goodmode
  38. echo mode=%5[%3]; >> dvips.mfj
  39. echo output=pk[c:\texfonts\%5\$rdpi]; >> dvips.mfj
  40. goto :donemode
  41.  
  42. :nomode
  43. echo m; >> dvips.mfj
  44.  
  45. :donemode
  46. echo } >> dvips.mfj
  47.  
  48. echo Run "mfjob dvips"
  49. :exit 
  50.