From 155eeedf23685ed46c5c6660c8e7766927e0057b 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/program@470 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_gfx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index becab8c..d26e3cb 100644 --- a/src/rrd_gfx.c +++ b/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.11.0