home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume4 / xdvi / patch3 next >
Encoding:
Internet Message Format  |  1989-05-16  |  19.0 KB

  1. Path: uunet!island!argv
  2. From: argv@island.uu.net (Dan Heller)
  3. Newsgroups: comp.sources.x
  4. Subject: v04i001:  dvi previewer (patch level 3), Patch3
  5. Message-ID: <752@island.uu.net>
  6. Date: 17 May 89 04:56:06 GMT
  7. Sender: news@island.uu.net
  8. Organization: Island Graphics, Marin County, California
  9. Lines: 574
  10. Approved: island!argv@sun.com
  11.  
  12. Submitted-by: Donald Richardson <donr@crystal.mie.clarkson.edu>
  13. Posting-number: Volume 4, Issue 1
  14. Archive-name: dvi.pach3/patch3
  15.  
  16. [ I can't test this as we don't use dvi --argv ]
  17.  
  18. Enclosed is patch 3 for xdvi.  Mostly it contains bug fixes, and also
  19. it includes an option to specify a default font (e.g. cmr10) if it can't
  20. find the one you want---see the -altfont option in the man page.  Many
  21. thanks to those who have sent me these patches.
  22.  
  23. ---- cut here ----
  24. diff -cr old/AUTHOR new/AUTHOR
  25. *** old/AUTHOR    Wed May 10 19:48:19 1989
  26. --- new/AUTHOR    Wed May 10 20:02:18 1989
  27. ***************
  28. *** 7,12 ****
  29. --- 7,13 ----
  30.       Mark Eichin, MIT SIPB
  31.       Paul Vojta, UC Berkeley
  32.       Jeffrey Lee, U of Toronto
  33. +     Donald Richardson, Clarkson Univ.
  34.   At the present time, the person to send bug reports to is Paul Vojta,
  35.       vojta@math.berkeley.edu.
  36.   This address will be valid at least through August, 1989.
  37. diff -cr old/README new/README
  38. *** old/README    Wed May 10 19:48:33 1989
  39. --- new/README    Wed May 10 19:56:41 1989
  40. ***************
  41. *** 46,51 ****
  42. --- 46,53 ----
  43.               ENVIRONMENT section of the man page for details on
  44.               how to get xdvi to recognize the directory structure
  45.               you use for storing fonts.
  46. +     SYSV        (dvi_init pxl_open xdvi.c)  Set for System V
  47. +             compilation.
  48.       MSBITFIRST    (X11 only; xdvi.c dvi_draw.c gf.c pk.c pxl.c)  Store
  49.               bitmaps internally with the most significant bit at
  50.               the left.  For performance reasons, it would be best
  51. ***************
  52. *** 61,66 ****
  53. --- 63,71 ----
  54.               bitmaps in long integers instead of bytes.
  55.       MAXCHARS    (dvi_init.c dvi_draw.c gf.c pk.c pxl.c)  Set to 256 for
  56.               256-character fonts.  Default is 128.
  57. +     ALTFONT        Default font to use if the font named in the dvi file
  58. +             cannot be found.  Can be set to NULL.  By default, it
  59. +             is "cmr10".
  60.   
  61.   All flags should be set in the appropriate Makefile.
  62.   ================================================================
  63. ***************
  64. *** 118,122 ****
  65. --- 123,136 ----
  66.   --  Patchlevel 2:  --
  67.      12.  Added MAXCHARS compilation option.  Eliminated the nonsense with
  68.       generating table.h.
  69. + --  Patchlevel 3:  --
  70. +    13.  Added -altfont command line option and SYSV compilation option.
  71.   
  72.   Paul Vojta, vojta@math.berkeley.edu
  73. + ================================================================================
  74. + 4/1989  Modified for System V boxes. -DSYSV compiler option.
  75. + Donald Richardson, donr@crystal.mie.clarkson.edu
  76. + ================================================================================
  77. diff -cr old/dvi_draw.c new/dvi_draw.c
  78. *** old/dvi_draw.c    Wed May 10 19:48:44 1989
  79. --- new/dvi_draw.c    Wed May 10 20:16:56 1989
  80. ***************
  81. *** 11,18 ****
  82. --- 11,20 ----
  83.    * 12/1988    Added 'R' option, toolkit, magnifying glass
  84.    *            --Paul Vojta, UC Berkeley.
  85.    * 2/1989    Added tpic support    --Jeffrey Lee, U of Toronto
  86. +  * 4/1989    Modified for System V by Donald Richardson, Clarkson Univ.
  87.    *
  88.    *    Compilation options:
  89. +  *    SYSV    compile for System V
  90.    *    X10    compile for X10
  91.    *    MSBITFIRST    store bitmaps internally in with significant bit first
  92.    *    BMSHORT    store bitmaps in shorts instead of bytes
  93. ***************
  94. *** 424,431 ****
  95. --- 426,435 ----
  96.                   case SET1:
  97.                   case PUT1:
  98.                   ch1 = one(dvi_file);
  99. + #if    MAXCHARS < 256
  100.                   if (ch1 >= MAXCHARS)
  101.                       oops("Character code too large:  %d", ch1);
  102. + #endif    MAXCHARS
  103.                   set_char(ch1);
  104.                   if (ch == SET1)
  105.                       DVI_H += current_font->glyph[ch1].dvi_adv;
  106. diff -cr old/dvi_init.c new/dvi_init.c
  107. *** old/dvi_init.c    Wed May 10 19:48:50 1989
  108. --- new/dvi_init.c    Wed May 10 20:16:57 1989
  109. ***************
  110. *** 11,18 ****
  111. --- 11,20 ----
  112.    * 12/1988    Added 'R' option, toolkit, magnifying glass
  113.    *            --Paul Vojta, UC Berkeley.
  114.    * 2/1989    Added tpic support    --Jeffrey Lee, U of Toronto
  115. +  * 4/1989    Modified for System V by Donald Richardson, Clarkson Univ.
  116.    *
  117.    *    Compilation options:
  118. +  *    SYSV    compile for System V
  119.    *    X10    compile for X10
  120.    *    MSBITFIRST    store bitmaps internally in with significant bit first
  121.    *    BMSHORT    store bitmaps in shorts instead of bytes
  122. ***************
  123. *** 27,32 ****
  124. --- 29,35 ----
  125.   #include <sys/stat.h>
  126.   
  127.   #define    dvi_oops(str)    longjmp(dvi_env, (int) str);
  128. + extern char    *alt_font;
  129.   
  130.   static    struct stat fstatbuf;        /* mechanism to see if file was */
  131.   time_t    dvi_time;            /* modified since last usage */
  132. ***************
  133. *** 60,82 ****
  134.    */
  135.   static    long    last_page_offset;
  136.   
  137. ! char    *malloc(), *sprintf();
  138.   FILE    *pxl_open();
  139.   
  140.   static    Boolean
  141. ! define_new_font(fontp)
  142.       register struct font *fontp;
  143.   {
  144.       read_font_index_proc read_font_index;
  145.   
  146.       if (n_fonts_left == 0)
  147.           close_a_file();
  148. !     fontp->file = pxl_open(font_path, fontp->fontname, fontp->size,
  149.           (fontp->size + 2) / 5, &fontp->filename, &read_font_index);
  150.       if (fontp->file == NULL) {
  151. !         Fprintf(stderr, "%s at %d dpi [not found]\n", fontp->fontname,
  152.           (fontp->size + 2) / 5);
  153. -         font_not_found = True;
  154.           return(False);
  155.       }
  156.       (*read_font_index)(fontp);
  157. --- 63,88 ----
  158.    */
  159.   static    long    last_page_offset;
  160.   
  161. ! #ifndef SYSV
  162. ! char    *sprintf();
  163. ! #endif
  164. ! char    *malloc();
  165.   FILE    *pxl_open();
  166.   
  167.   static    Boolean
  168. ! define_new_font(fontp, fontname)
  169.       register struct font *fontp;
  170. +     char *fontname;
  171.   {
  172.       read_font_index_proc read_font_index;
  173.   
  174.       if (n_fonts_left == 0)
  175.           close_a_file();
  176. !     fontp->file = pxl_open(font_path, fontname, fontp->size,
  177.           (fontp->size + 2) / 5, &fontp->filename, &read_font_index);
  178.       if (fontp->file == NULL) {
  179. !         Fprintf(stderr, "Font %s at %d dpi [not found]\n", fontname,
  180.           (fontp->size + 2) / 5);
  181.           return(False);
  182.       }
  183.       (*read_font_index)(fontp);
  184. ***************
  185. *** 153,159 ****
  186.       for (;;) {
  187.           fontp1 = *fontpp;
  188.           if (fontp1 == NULL) {
  189. !         if (!define_new_font(fontp)) return;
  190.           break;
  191.           }
  192.           if (strcmp(fontp->fontname, fontp1->fontname) == 0
  193. --- 159,176 ----
  194.       for (;;) {
  195.           fontp1 = *fontpp;
  196.           if (fontp1 == NULL) {
  197. !         if (!define_new_font(fontp, fontp->fontname)) {
  198. !             if (alt_font == NULL || !define_new_font(fontp, alt_font)) {
  199. !             font_not_found = True;
  200. !             return;
  201. !             }
  202. !             Fprintf(stderr,
  203. !             "Can't find <%s>, using <%s> instead at %d dpi\n",
  204. !             fontp->fontname, alt_font, (size + 2) / 5);
  205. !             free(fontp->fontname);
  206. !             fontp->fontname = malloc((unsigned) strlen(alt_font)+1);
  207. !             (void) strcpy(fontp->fontname, alt_font);
  208. !         }
  209.           break;
  210.           }
  211.           if (strcmp(fontp->fontname, fontp1->fontname) == 0
  212. diff -cr old/patchlevel.h new/patchlevel.h
  213. *** old/patchlevel.h    Wed May 10 19:48:56 1989
  214. --- new/patchlevel.h    Wed May 10 19:56:43 1989
  215. ***************
  216. *** 1 ****
  217. ! #define PATCHLEVEL 2
  218. --- 1 ----
  219. ! #define PATCHLEVEL 3
  220. diff -cr old/pxl_open.c new/pxl_open.c
  221. *** old/pxl_open.c    Wed May 10 19:49:10 1989
  222. --- new/pxl_open.c    Wed May 10 19:56:45 1989
  223. ***************
  224. *** 43,49 ****
  225.   
  226.   read_font_index_proc read_GF_index, read_PK_index, read_PXL_index;
  227.   
  228. ! char *malloc(), *index(), *sprintf();
  229.   
  230.   #define    Strcpy    (void) strcpy
  231.   #define    Sprintf    (void) sprintf
  232. --- 43,52 ----
  233.   
  234.   read_font_index_proc read_GF_index, read_PK_index, read_PXL_index;
  235.   
  236. ! #ifndef SYSV
  237. ! char    *sprintf();
  238. ! #endif
  239. ! char    *malloc(), *index();
  240.   
  241.   #define    Strcpy    (void) strcpy
  242.   #define    Sprintf    (void) sprintf
  243. diff -cr old/xdvi.c new/xdvi.c
  244. *** old/xdvi.c    Wed May 10 19:49:32 1989
  245. --- new/xdvi.c    Wed May 10 20:16:56 1989
  246. ***************
  247. *** 11,23 ****
  248. --- 11,26 ----
  249.    * 12/1988    Added 'R' option, toolkit, magnifying glass
  250.    *            --Paul Vojta, UC Berkeley.
  251.    * 2/1989    Added tpic support    --Jeffrey Lee, U of Toronto
  252. +  * 4/1989    Modified for System V by Donald Richardson, Clarkson Univ.
  253.    *
  254.    *    Compilation options:
  255. +  *    SYSV    compile for System V
  256.    *    X10    compile for X10
  257.    *    MSBITFIRST    store bitmaps internally in with significant bit first
  258.    *    BMSHORT    store bitmaps in shorts instead of bytes
  259.    *    BMLONG    store bitmaps in longs instead of bytes
  260.    *    MAXCHARS set to 256 for 256 character fonts (default = 128)
  261. +  *    ALTFONT    default for -altfont option.
  262.    */
  263.   #ifndef lint
  264.   #include "patchlevel.h"
  265. ***************
  266. *** 29,34 ****
  267. --- 32,41 ----
  268.   #endif X10
  269.   #endif    lint
  270.   
  271. + #ifndef    ALTFONT
  272. + #define    ALTFONT    "cmr10"
  273. + #endif    ALTFONT
  274.   #ifndef X10
  275.   
  276.   #undef Boolean
  277. ***************
  278. *** 92,97 ****
  279. --- 99,105 ----
  280.   #define    MAGBORD    1    /* border size for magnifier */
  281.   char    *font_path;
  282.   char    default_font_path[]    = DEFAULT_FONT_PATH;
  283. + char    *alt_font = ALTFONT;
  284.   
  285.   /*
  286.    * Command line flags.
  287. ***************
  288. *** 118,124 ****
  289.           /* fg and bg colors */
  290.   static    Arg    fore_args = {XtNforeground,    (XtArgVal) 0};
  291.   static    Arg    back_args = {XtNbackground,    (XtArgVal) 0};
  292. ! static    XColor    hl_Color, cr_Color;
  293.   #endif X10
  294.   
  295.   static    char    *fore_color;
  296. --- 126,132 ----
  297.           /* fg and bg colors */
  298.   static    Arg    fore_args = {XtNforeground,    (XtArgVal) 0};
  299.   static    Arg    back_args = {XtNbackground,    (XtArgVal) 0};
  300. ! static    Pixel    hl_Pixel, cr_Pixel;
  301.   #endif X10
  302.   
  303.   static    char    *fore_color;
  304. ***************
  305. *** 173,180 ****
  306.   
  307.   static    void    can_exposures(), read_events();
  308.   
  309. ! char    *malloc(), *index(), *rindex(), *sprintf(), *getenv(),
  310. !     *strcpy(), *strcat();
  311.   
  312.   double    atof();
  313.   
  314. --- 181,190 ----
  315.   
  316.   static    void    can_exposures(), read_events();
  317.   
  318. ! #ifndef SYSV
  319. ! char    *sprintf();
  320. ! #endif
  321. ! char    *malloc(), *index(), *rindex(), *getenv(), *strcpy(), *strcat();
  322.   
  323.   double    atof();
  324.   
  325. ***************
  326. *** 977,982 ****
  327. --- 987,993 ----
  328.   
  329.   static    void
  330.   enable_intr() {
  331. + #ifndef SYSV
  332.       int    socket    = ConnectionNumber(DISP);
  333.       if (!isatty(0)) {
  334.           puts("trying...");
  335. ***************
  336. *** 986,991 ****
  337. --- 997,1003 ----
  338.       (void) signal(SIGIO, handle_intr);
  339.       (void) fcntl(socket, F_SETOWN, getpid());
  340.       (void) fcntl(socket, F_SETFL, fcntl(socket, F_GETFL, 0) | FASYNC);
  341. + #endif
  342.   }
  343.   
  344.   static
  345. ***************
  346. *** 1039,1045 ****
  347.   [-cr <color>]\n\
  348.       [-margins <inches>] [-sidemargin <inches>] [-topmargin <inches>]\n\
  349.       [-mgs[n] <size>] [-geometry <geometry>]  [#<geometry>]\n\
  350. !     [-display <host:display>] dvi_file\n", stderr);
  351.   #else X10
  352.       fputs("\
  353.   Usage: xdvi [+[<page>]] [-s <shrink>] [-S <density>] [-p <pixels>] [-l] [-rv]\n\
  354. --- 1051,1057 ----
  355.   [-cr <color>]\n\
  356.       [-margins <inches>] [-sidemargin <inches>] [-topmargin <inches>]\n\
  357.       [-mgs[n] <size>] [-geometry <geometry>]  [#<geometry>]\n\
  358. !     [-altfont <font>] [-display <host:display>] dvi_file\n", stderr);
  359.   #else X10
  360.       fputs("\
  361.   Usage: xdvi [+[<page>]] [-s <shrink>] [-S <density>] [-p <pixels>] [-l] [-rv]\n\
  362. ***************
  363. *** 1047,1053 ****
  364.   [-cr <color>]\n\
  365.       [-margins <inches>] [-sidemargin <inches>] [-topmargin <inches>]\n\
  366.       [-mgs[n] <size>] [-geometry <geometry> | =<geometry>]\n\
  367. !     [-display <host:display> | host:display] dvi_file\n", stderr);
  368.   #endif X10
  369.       exit(1);
  370.   }
  371. --- 1059,1066 ----
  372.   [-cr <color>]\n\
  373.       [-margins <inches>] [-sidemargin <inches>] [-topmargin <inches>]\n\
  374.       [-mgs[n] <size>] [-geometry <geometry> | =<geometry>]\n\
  375. !     [-altfont <font>] [-display <host:display> | host:display] dvi_file\n",
  376. !     stderr);
  377.   #endif X10
  378.       exit(1);
  379.   }
  380. ***************
  381. *** 1069,1074 ****
  382. --- 1082,1088 ----
  383.   {"-margins",    ".margins",    XrmoptionSepArg,    (caddr_t) NULL},
  384.   {"-sidemargin",    ".sideMargin",    XrmoptionSepArg,    (caddr_t) NULL},
  385.   {"-topmargin",    ".topMargin",    XrmoptionSepArg,    (caddr_t) NULL},
  386. + {"-altfont",    ".altFont",    XrmoptionSepArg,    (caddr_t) NULL},
  387.   {"-l",        ".listFonts",    XrmoptionNoArg,        (caddr_t) "on"},
  388.   {"+l",        ".listFonts",    XrmoptionNoArg,        (caddr_t) "off"},
  389.   {"-fg",        ".foreground",    XrmoptionSepArg,    (caddr_t) NULL},
  390. ***************
  391. *** 1105,1110 ****
  392. --- 1119,1126 ----
  393.     (Cardinal) &sidemargin, XtRString, NULL},
  394.   {"topMargin", "Margin", XtRString, sizeof(char *),
  395.     (Cardinal) &topmargin, XtRString, NULL},
  396. + {"altFont", "AltFont", XtRString, sizeof(char *),
  397. +   (Cardinal) &alt_font, XtRString, (caddr_t) ALTFONT},
  398.   {"listFonts", "ListFonts", XtRBoolean, sizeof(Boolean),
  399.     (Cardinal) &list_fonts, XtRBoolean, (caddr_t) &list_fonts},
  400.   {"reverseVideo", "ReverseVideo", XtRBoolean, sizeof(Boolean),
  401. ***************
  402. *** 1117,1128 ****
  403.     (Cardinal)&back_args.value, XtRPixel, (caddr_t) &back_args.value},
  404.   {"background", "Background", XtRString, sizeof(char *),
  405.     (Cardinal)&back_color, XtRString, NULL},
  406. ! {"highlight", "Highlight", XtRColor, sizeof(XColor),
  407. !   (Cardinal)&hl_Color, XtRColor, (caddr_t) &hl_Color},
  408.   {"highlight", "Highlight", XtRString, sizeof(char *),
  409.     (Cardinal)&high_color, XtRString, NULL},
  410. ! {"cursorColor", "CursorColor", XtRColor, sizeof(XColor),
  411. !   (Cardinal)&cr_Color, XtRColor, (caddr_t) &cr_Color},
  412.   {"cursorColor", "CursorColor", XtRString, sizeof(char *),
  413.     (Cardinal)&curs_color, XtRString, NULL},
  414.   {"iconGeometry", "IconGeometry", XtRString, sizeof(char *),
  415. --- 1133,1144 ----
  416.     (Cardinal)&back_args.value, XtRPixel, (caddr_t) &back_args.value},
  417.   {"background", "Background", XtRString, sizeof(char *),
  418.     (Cardinal)&back_color, XtRString, NULL},
  419. ! {"highlight", "Highlight", XtRPixel, sizeof(Pixel),
  420. !   (Cardinal)&hl_Pixel, XtRPixel, (caddr_t) &hl_Pixel},
  421.   {"highlight", "Highlight", XtRString, sizeof(char *),
  422.     (Cardinal)&high_color, XtRString, NULL},
  423. ! {"cursorColor", "CursorColor", XtRPixel, sizeof(Pixel),
  424. !   (Cardinal)&cr_Pixel, XtRPixel, (caddr_t) &cr_Pixel},
  425.   {"cursorColor", "CursorColor", XtRString, sizeof(char *),
  426.     (Cardinal)&curs_color, XtRString, NULL},
  427.   {"iconGeometry", "IconGeometry", XtRString, sizeof(char *),
  428. ***************
  429. *** 1286,1306 ****
  430.           }
  431.           highGC = ruleGC;
  432.           if (high_color)
  433. !         highGC = MakeGC(GXcopy, hl_Color.pixel, back_args.value);
  434.       }
  435.   
  436.       ready_cursor = XCreateFontCursor(DISP, XC_cross);
  437.       redraw_cursor = XCreateFontCursor(DISP, XC_watch);
  438.       if (!curs_color)
  439. !         if (high_color) cr_Color = hl_Color;
  440. !         else {
  441. !         cr_Color.pixel = fore_args.value;
  442. !         XQueryColor(DISP, DefaultColormapOfScreen(SCRN), &cr_Color);
  443. !         }
  444.       {
  445. !         XColor bg_Color;
  446.           bg_Color.pixel = back_args.value;
  447.           XQueryColor(DISP, DefaultColormapOfScreen(SCRN), &bg_Color);
  448.           XRecolorCursor(DISP, ready_cursor, &cr_Color, &bg_Color);
  449.           XRecolorCursor(DISP, redraw_cursor, &cr_Color, &bg_Color);
  450.       }
  451. --- 1302,1321 ----
  452.           }
  453.           highGC = ruleGC;
  454.           if (high_color)
  455. !         highGC = MakeGC(GXcopy, hl_Pixel, back_args.value);
  456.       }
  457.   
  458.       ready_cursor = XCreateFontCursor(DISP, XC_cross);
  459.       redraw_cursor = XCreateFontCursor(DISP, XC_watch);
  460.       if (!curs_color)
  461. !         cr_Pixel = high_color ? hl_Pixel : fore_args.value;
  462.       {
  463. !         XColor bg_Color, cr_Color;
  464. !         
  465.           bg_Color.pixel = back_args.value;
  466.           XQueryColor(DISP, DefaultColormapOfScreen(SCRN), &bg_Color);
  467. +         cr_Color.pixel = cr_Pixel;
  468. +         XQueryColor(DISP, DefaultColormapOfScreen(SCRN), &cr_Color);
  469.           XRecolorCursor(DISP, ready_cursor, &cr_Color, &bg_Color);
  470.           XRecolorCursor(DISP, redraw_cursor, &cr_Color, &bg_Color);
  471.       }
  472. ***************
  473. *** 1343,1348 ****
  474. --- 1358,1364 ----
  475.   {"-margins",    "margins",    SepArg,    StringArg,    (caddr_t) &margins},
  476.   {"-sidemargin",    "sideMargin",    SepArg,    StringArg,    (caddr_t) &sidemargin},
  477.   {"-topmargin",    "topMargin",    SepArg,    StringArg,    (caddr_t) &topmargin},
  478. + {"-altfont",    "altFont",    SepArg,    StringArg,    (caddr_t) &alt_font},
  479.   {"-l",        "listFonts",    TrueArg, BooleanArg,    (caddr_t) &list_fonts},
  480.   {"+l",        NULL,        FalseArg, BooleanArg,    (caddr_t) &list_fonts},
  481.   {"-rv",        "reverseVideo",    TrueArg, BooleanArg,    (caddr_t) &reverse},
  482. diff -cr old/xdvi.man.sed new/xdvi.man.sed
  483. *** old/xdvi.man.sed    Wed May 10 19:49:47 1989
  484. --- new/xdvi.man.sed    Wed May 10 20:11:40 1989
  485. ***************
  486. *** 1,14 ****
  487. ! .TH XDVI SIPB "17 January 1989" "X Version 11"
  488.   .SH NAME
  489.   xdvi \- DVI Previewer for the X Window System
  490.   .SH SYNOPSIS
  491.   .B xdvi
  492.   [+[\fIpage\fP]] [\-s \fIshrink\fP] [\-S \fIdensity\fP] [\-p \fIpixels\fP]
  493. ! [\-l] [\-rv] [\-fg \fIcolor\fP] [\-bg \fIcolor\fP] [\-hl \fIcolor\fP]
  494. ! [\-bd \fIcolor\fP] [\-cr \fIcolor\fP] [-thorough] [\-margins \fIinches\fP]
  495. ! [\-sidemargin \fIinches\fP] [\-topmargin \fIinches\fP]
  496.   [\-mgs[\fIn\fP] \fIsize\fP] [\-geometry \fIgeometry\fP | =\fIgeometry\fP]
  497.   [%\fIgeometry\fP] [\-display \fIdisplay\fP] file
  498.   .SH DESCRIPTION
  499.   .I Xdvi
  500.   is a program which runs under the X window system. It is used to preview
  501. --- 1,16 ----
  502. ! .TH XDVI SIPB "8 May 1989" "X Version 11"
  503.   .SH NAME
  504.   xdvi \- DVI Previewer for the X Window System
  505.   .SH SYNOPSIS
  506.   .B xdvi
  507. + .nh
  508.   [+[\fIpage\fP]] [\-s \fIshrink\fP] [\-S \fIdensity\fP] [\-p \fIpixels\fP]
  509. ! [\-altfont \fIfont\fP] [\-l] [\-rv] [\-fg \fIcolor\fP] [\-bg \fIcolor\fP]
  510. ! [\-hl \fIcolor\fP] [\-bd \fIcolor\fP] [\-cr \fIcolor\fP] [-thorough]
  511. ! [\-margins \fIinches\fP] [\-sidemargin \fIinches\fP] [\-topmargin \fIinches\fP]
  512.   [\-mgs[\fIn\fP] \fIsize\fP] [\-geometry \fIgeometry\fP | =\fIgeometry\fP]
  513.   [%\fIgeometry\fP] [\-display \fIdisplay\fP] file
  514. + .hy
  515.   .SH DESCRIPTION
  516.   .I Xdvi
  517.   is a program which runs under the X window system. It is used to preview
  518. ***************
  519. *** 53,58 ****
  520. --- 55,65 ----
  521.   (.pixelsPerInch)
  522.   Defines the size of the fonts to use, in pixels per inch.  The
  523.   default value is 300.
  524. + .TP
  525. + .BI \-altfont " font"
  526. + (.altFont)
  527. + Declares a default font to use when the font in the dvi file cannot be found.
  528. + This is useful, for example, with PostScript <tm> fonts.
  529.   .TP
  530.   .B \-l
  531.   (.listFonts)
  532. diff -cr old/xdvi10.man.s new/xdvi10.man.s
  533. *** old/xdvi10.man.s    Wed May 10 19:49:51 1989
  534. --- new/xdvi10.man.s    Wed May 10 20:11:40 1989
  535. ***************
  536. *** 1,14 ****
  537. ! .TH XDVI SIPB "17 January 1989" "X Version 10"
  538.   .SH NAME
  539.   xdvi \- DVI Previewer for the X Window System
  540.   .SH SYNOPSIS
  541.   .B xdvi
  542.   [+[\fIpage\fP]] [\-s \fIshrink\fP] [\-S \fIdensity\fP] [\-p \fIpixels\fP]
  543. ! [\-l] [\-rv] [\-fg \fIcolor\fP] [\-bg \fIcolor\fP] [\-hl \fIcolor\fP]
  544. ! [\-bd \fIcolor\fP] [\-cr \fIcolor\fP] [\-margins \fIinches\fP]
  545. ! [\-sidemargin \fIinches\fP] [\-topmargin \fIinches\fP]
  546.   [\-mgs[\fIn\fP] \fIsize\fP] [\-geometry \fIgeometry\fP | =\fIgeometry\fP]
  547.   [\-display \fIdisplay\fP | \fIhost\fP:\fIdisplay\fP] file
  548.   .SH DESCRIPTION
  549.   .I Xdvi
  550.   is a program which runs under the X window system. It is used to preview
  551. --- 1,16 ----
  552. ! .TH XDVI SIPB "8 May 1989" "X Version 10"
  553.   .SH NAME
  554.   xdvi \- DVI Previewer for the X Window System
  555.   .SH SYNOPSIS
  556.   .B xdvi
  557. + .nh
  558.   [+[\fIpage\fP]] [\-s \fIshrink\fP] [\-S \fIdensity\fP] [\-p \fIpixels\fP]
  559. ! [\-altfont \fIfont\fP] [\-l] [\-rv] [\-fg \fIcolor\fP] [\-bg \fIcolor\fP]
  560. ! [\-hl \fIcolor\fP] [\-bd \fIcolor\fP] [\-cr \fIcolor\fP]
  561. ! [\-margins \fIinches\fP] [\-sidemargin \fIinches\fP] [\-topmargin \fIinches\fP]
  562.   [\-mgs[\fIn\fP] \fIsize\fP] [\-geometry \fIgeometry\fP | =\fIgeometry\fP]
  563.   [\-display \fIdisplay\fP | \fIhost\fP:\fIdisplay\fP] file
  564. + .hy
  565.   .SH DESCRIPTION
  566.   .I Xdvi
  567.   is a program which runs under the X window system. It is used to preview
  568. ***************
  569. *** 53,58 ****
  570. --- 55,65 ----
  571.   (pixelsPerInch)
  572.   Defines the size of the fonts to use, in pixels per inch.  The
  573.   default value is 300.
  574. + .TP
  575. + .BI \-altfont " font"
  576. + (altFont)
  577. + Declares a default font to use when the font in the dvi file cannot be found.
  578. + This is useful, for example, with PostScript <tm> fonts.
  579.   .TP
  580.   .B \-l
  581.   (listFonts)
  582.