From 34bfbfad2dd0239174e03f7cce2b0bdcfa6a8a10 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 16 Nov 2010 13:52:26 +0000 Subject: [PATCH] Minor change in class.graphic.inc --- CHANGELOG.txt | 4 ++++ reporting/includes/class.graphic.inc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7fd1b14e..2b9c98ad 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +16-Nov-2010 Joe Hunt +# Minor change in class.graphic.inc +$ /reporting/includes/class.graphic.inc + 15-Nov-2010 Janusz Dobrowolski # Fixed date legend on po/grn/invoice $ /purchasing/includes/ui/po_ui.inc diff --git a/reporting/includes/class.graphic.inc b/reporting/includes/class.graphic.inc index d10cc5db..75e03519 100644 --- a/reporting/includes/class.graphic.inc +++ b/reporting/includes/class.graphic.inc @@ -152,11 +152,11 @@ class graph function graph() { $this->encoding = $_SESSION['language']->encoding; - putenv('GDFONTPATH='.dirname(__FILE__).'/../fonts'); + $path = dirname(__FILE__).'/../fonts/'; // If you use utf-8 encoding you have to download and install FreeSans.ttf font. // It is not bundled with application due to its size. - $this->fontfile = $this->encoding=='UTF-8' ? 'FreeSans' : 'LiberationSans-Regular'; + $this->fontfile = $this->encoding=='UTF-8' ? $path.'FreeSans.ttf' : $path.'LiberationSans-Regular.ttf'; $this->x = $this->y = $this->z = array(); $this->biggest_x = NULL; -- 2.30.2