From 8a0cf351ab6195a4e33030ca044cfd1b421fa833 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Fri, 6 Sep 2013 18:31:46 -0400 Subject: [PATCH] Add new xdot op t for font characteristics: bold, etc. --- plugin/core/gvrender_core_dot.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugin/core/gvrender_core_dot.c b/plugin/core/gvrender_core_dot.c index 6cda497ce..57ee68fef 100644 --- a/plugin/core/gvrender_core_dot.c +++ b/plugin/core/gvrender_core_dot.c @@ -625,7 +625,7 @@ static void dot_end_graph(GVJ_t *job) static void xdot_textpara(GVJ_t * job, pointf p, textpara_t * para) { emit_state_t emit_state = job->obj->emit_state; - + int flags; char buf[BUFSIZ]; int j; @@ -647,6 +647,13 @@ static void xdot_textpara(GVJ_t * job, pointf p, textpara_t * para) j = 0; break; } + if (para->font) + flags = para->font->flags; + else + flags = 0; + sprintf (buf, "t %d ", flags); + agxbput(xbufs[emit_state], buf); + p.y += para->yoffset_centerline; agxbput(xbufs[emit_state], "T "); xdot_point(xbufs[emit_state], p); -- 2.40.0