added transfig package
[hdw-linux/hdw-linux.git] / packages / x11 / transfig / gensvg.patch
1 --- ./fig2dev/dev/gensvg.c.orig 2005-02-26 19:52:57.058538744 +0100
2 +++ ./fig2dev/dev/gensvg.c      2005-02-26 19:57:17.537939856 +0100
3 @@ -692,16 +692,14 @@
4      if (t->angle != 0) {
5         fprintf (tfp, "<g transform=\"translate(%d,%d) rotate(%d)\" >\n",
6                  (int) (t->base_x * mag), (int) (t->base_y * mag), degrees (t->angle));
7 -       fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\"  font-family=\"%s\" 
8 -                font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
9 +       fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\"  font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
10                  rgbColorVal (t->color), family[(int) ceil ((t->font + 1) / 4)],
11                  (t->font % 2 == 0 ? "normal" : "italic"),
12                  (t->font % 4 < 2 ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)),
13                  anchor[t->type]);
14      }
15      else
16 -       fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\"  font-family=\"%s\" 
17 -                font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
18 +       fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\"  font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
19                  (int) (t->base_x * mag), (int) (t->base_y * mag), rgbColorVal (t->color),
20                  family[(int) ceil ((t->font + 1) / 4)],
21                  (t->font % 2 == 0 ? "normal" : "italic"),