Text strings in SVG output are not rotated.
Paul Griffiths [Fri, 26 Jun 2009 20:22:49 +0000 (22:22 +0200)]
scilab/modules/graphic_export/src/c/gl2ps/gl2ps.c

index adac517..f30895c 100644 (file)
@@ -5172,9 +5172,11 @@ static void gl2psPrintSVGPrimitive(void *data)
                        
                        gl2psSVGGetColorString(prim->verts[0].rgba, col);
                        gl2psPrintf("<text fill=\"%s\" x=\"%g\" y=\"%g\" "
+                                           "transform=\"rotate(%g, %g, %g)\" "
                                                "font-size=\"%d\" font-family=\"%s\" "
                                          "font-style=\"%s\" font-weight=\"%s\">%s</text>\n",
                                                      col, xyz[0][0], xyz[0][1],
+                                                     -(prim->data.text->angle),        xyz[0][0], xyz[0][1],
                                                            prim->data.text->fontsize,
                                                                  fontName,
                                                                        (isItalicFont ? "italic" : (isObliqueFont ? "oblique" : "normal")),