]> granicus.if.org Git - graphviz/commitdiff
add "Special text" bit to font_flags to support current usage by
authorellson <devnull@localhost>
Mon, 4 Feb 2008 20:08:20 +0000 (20:08 +0000)
committerellson <devnull@localhost>
Mon, 4 Feb 2008 20:08:20 +0000 (20:08 +0000)
Peter Sewell <Peter.Sewell@cl.cam.ac.uk>

plugin/core/gvrender_core_fig.c

index cc51737ea77aea42f67005436bd0b5a56c145b5d..18b12f075ebf972c0bfdc890a9f2ac68fd85374a 100644 (file)
@@ -257,7 +257,11 @@ static void fig_textpara(GVJ_t * job, pointf p, textpara_t * para)
     int font = -1;             /* init to xfig's default font */
     double font_size = para->fontsize * job->zoom;
     double angle = job->rotation ? (PI / 2.0) : 0.0;
-    int font_flags = 4;                /* PostScript font */
+    int font_flags = 6;                /* PostScript font + Special text */
+/* Special text indicates that latex markup may exist
+ * in the output - but note that dot knows nothing about latex,
+ * so the node sizes may be wrong.
+ */
     double height = 0.0;
     double length = 0.0;