added transfig package
[hdw-linux/hdw-linux.git] / packages / x11 / transfig / gensvg.patch
diff --git a/packages/x11/transfig/gensvg.patch b/packages/x11/transfig/gensvg.patch
new file mode 100644 (file)
index 0000000..44d845e
--- /dev/null
@@ -0,0 +1,21 @@
+--- ./fig2dev/dev/gensvg.c.orig        2005-02-26 19:52:57.058538744 +0100
++++ ./fig2dev/dev/gensvg.c     2005-02-26 19:57:17.537939856 +0100
+@@ -692,16 +692,14 @@
+     if (t->angle != 0) {
+       fprintf (tfp, "<g transform=\"translate(%d,%d) rotate(%d)\" >\n",
+                (int) (t->base_x * mag), (int) (t->base_y * mag), degrees (t->angle));
+-      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",
++      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",
+                rgbColorVal (t->color), family[(int) ceil ((t->font + 1) / 4)],
+                (t->font % 2 == 0 ? "normal" : "italic"),
+                (t->font % 4 < 2 ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)),
+                anchor[t->type]);
+     }
+     else
+-      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",
++      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",
+                (int) (t->base_x * mag), (int) (t->base_y * mag), rgbColorVal (t->color),
+                family[(int) ceil ((t->font + 1) / 4)],
+                (t->font % 2 == 0 ? "normal" : "italic"),