From: oetiker Date: Sun, 1 May 2005 21:24:06 +0000 (+0000) Subject: use the pen to determine string length, do not look at the realy length, or space... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=155eeedf23685ed46c5c6660c8e7766927e0057b;p=rrdtool.git 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 --- 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;