mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
3.3 KiB

  1. diff -dur xfig.3.2.4/u_fonts.c xfig.3.2.4-p/u_fonts.c
  2. --- xfig.3.2.4/u_fonts.c 2002-09-09 19:36:58.000000000 +0200
  3. +++ xfig.3.2.4-p/u_fonts.c 2005-10-21 00:52:34.000000000 +0200
  4. @@ -21,7 +21,7 @@
  5. /* X11 font names */
  6. -struct _xfstruct x_fontinfo[NUM_FONTS] = {
  7. +struct _xfstruct _x_fontinfo[NUM_FONTS] = {
  8. {"-*-times-medium-r-normal--", (struct xfont*) NULL},
  9. {"-*-times-medium-i-normal--", (struct xfont*) NULL},
  10. {"-*-times-bold-r-normal--", (struct xfont*) NULL},
  11. @@ -58,6 +58,7 @@
  12. {"-*-itc zapf chancery-medium-i-normal--", (struct xfont*) NULL},
  13. {"-*-itc zapf dingbats-*-*-*--", (struct xfont*) NULL},
  14. };
  15. +struct _xfstruct *x_fontinfo = _x_fontinfo;
  16. /* Use the following font names for any font that doesn't exist in the table above.
  17. * These come with the Open Group X distribution so they should be a common set.
  18. @@ -66,7 +67,7 @@
  19. * structure when needed by draw_text() to scale text down below MIN_FONT_SIZE points.
  20. */
  21. -struct _xfstruct x_backup_fontinfo[NUM_FONTS] = {
  22. +struct _xfstruct _x_backup_fontinfo[NUM_FONTS] = {
  23. {"-*-times-medium-r-normal--", (struct xfont*) NULL},
  24. {"-*-times-medium-i-normal--", (struct xfont*) NULL},
  25. {"-*-times-bold-r-normal--", (struct xfont*) NULL},
  26. @@ -103,10 +104,11 @@
  27. {"-*-zapf chancery-medium-i-normal--", (struct xfont*) NULL},
  28. {"-*-zapf dingbats-*-*-*--", (struct xfont*) NULL},
  29. };
  30. +struct _xfstruct *x_backup_fontinfo = _x_backup_fontinfo;
  31. /* PostScript font names matched with X11 font names in x_fontinfo */
  32. -struct _fstruct ps_fontinfo[NUM_FONTS + 1] = {
  33. +struct _fstruct _ps_fontinfo[NUM_FONTS + 1] = {
  34. {"Default", -1},
  35. {"Times-Roman", 0},
  36. {"Times-Italic", 1},
  37. @@ -144,10 +146,11 @@
  38. {"ZapfChancery-MediumItalic", 33},
  39. {"ZapfDingbats", 34},
  40. };
  41. +struct _fstruct *ps_fontinfo = _ps_fontinfo;
  42. /* LaTeX font names and the corresponding PostScript font index into ps_fontinfo */
  43. -struct _fstruct latex_fontinfo[NUM_LATEX_FONTS] = {
  44. +struct _fstruct _latex_fontinfo[NUM_LATEX_FONTS] = {
  45. {"Default", 0},
  46. {"Roman", 0},
  47. {"Bold", 2},
  48. @@ -155,6 +158,7 @@
  49. {"Sans Serif", 16},
  50. {"Typewriter", 12},
  51. };
  52. +struct _fstruct *latex_fontinfo = _latex_fontinfo;
  53. x_fontnum(psflag, fnum)
  54. int psflag, fnum;
  55. diff -dur xfig.3.2.4/u_fonts.h xfig.3.2.4-p/u_fonts.h
  56. --- xfig.3.2.4/u_fonts.h 2002-03-27 01:18:23.000000000 +0100
  57. +++ xfig.3.2.4-p/u_fonts.h 2005-10-21 00:49:24.000000000 +0200
  58. @@ -32,9 +32,9 @@
  59. extern int psfontnum();
  60. extern int latexfontnum();
  61. -extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[];
  62. -extern struct _fstruct ps_fontinfo[];
  63. -extern struct _fstruct latex_fontinfo[];
  64. +extern struct _xfstruct *x_fontinfo, *x_backup_fontinfo;
  65. +extern struct _fstruct *ps_fontinfo;
  66. +extern struct _fstruct *latex_fontinfo;
  67. /* element of linked list for each font
  68. The head of list is for the different font NAMES,
  69. diff -dur xfig.3.2.4/w_i18n.c xfig.3.2.4-p/w_i18n.c
  70. --- xfig.3.2.4/w_i18n.c 2002-11-08 23:18:16.000000000 +0100
  71. +++ xfig.3.2.4-p/w_i18n.c 2005-10-21 00:55:57.000000000 +0200
  72. @@ -402,7 +402,7 @@
  73. XFontSet *fontset;
  74. int *size_ret;
  75. {
  76. - extern struct _xfstruct x_fontinfo[]; /* X11 fontnames */
  77. + extern struct _xfstruct *x_fontinfo; /* X11 fontnames */
  78. static int font_types[] = { 0, 2 }; /* 0 = Times-Roman, 2 = Times-Bold */
  79. struct xfont *nf;
  80. int i;