From 99bce2c45f31e71df366781baa77ec054c6faef6 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 1 May 2005 21:24:06 +0000 Subject: [PATCH] use the pen to determine string length, do not look at the realy length, or space will get ignored. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@470 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_gfx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c index becab8c9..d26e3cb3 100644 --- a/program/src/rrd_gfx.c +++ b/program/src/rrd_gfx.c @@ -476,11 +476,11 @@ gfx_string gfx_string_create(FT_Face face,const char *text, /* printf ("number of glyphs = %d\n", string->num_glyphs);*/ compute_string_bbox( string ); /* the last character was a tab */ - if (gottab) { + /* if (gottab) { */ string->width = ft_pen.x; - } else { + /* } else { string->width = string->bbox.xMax - string->bbox.xMin; - } + } */ string->height = string->bbox.yMax - string->bbox.yMin; return string; -- 2.30.2