From: Tobias 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-Tag: 1.2.1~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10e4b732ccc170bbfa32438bf499102f9844a0db;p=thirdparty%2Frrdtool-1.x.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 becab8c9..d26e3cb3 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;