From 5a8b19bce4083e66741759f7944cd6fb19686693 Mon Sep 17 00:00:00 2001 From: losinshi Date: Mon, 18 Sep 2006 12:49:05 +0000 Subject: [PATCH] chart: font changed git-svn-id: file:///home/jan/tmp/wetterstation/trunk@109 dd492736-c11a-0410-ad51-8c26713eaf7f --- cronjob/chart/image_file/image_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cronjob/chart/image_file/image_draw.c b/cronjob/chart/image_file/image_draw.c index 75146b2..218b924 100644 --- a/cronjob/chart/image_file/image_draw.c +++ b/cronjob/chart/image_file/image_draw.c @@ -175,8 +175,8 @@ static gdImagePtr draw_image(gdImagePtr img){ y_labels = get_y_label_list(dia_height, dia_y_padding); for (; y_labels; y_labels = y_labels->next){ gdImageLine(img, offset_x_left - 2, offset_y_top + y_labels->pos, img_cfg.width - offset_x_right, offset_y_top + y_labels->pos, diag_grid_x_c); - y_label_d = calc_text_dim(y_labels->text, 8, 0); - gdImageStringFT(img, &brect[0], label_y_c, IMG_FONT, 8, 0, (offset_x_left - 5 - y_label_max_width) + (y_label_max_width - y_label_d.width), offset_y_top + y_labels->pos + (y_label_d.height / 2), y_labels->text); + y_label_d = calc_text_dim(y_labels->text, 7, 0); + gdImageStringFT(img, &brect[0], label_y_c, IMG_FONT, 7, 0, (offset_x_left - 5 - y_label_max_width) + (y_label_max_width - y_label_d.width), offset_y_top + y_labels->pos + (y_label_d.height / 2), y_labels->text); } /* y-Werte skalieren */