X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fclass.graphic.inc;h=75e035192d25f6e52c9bd2d8dade4921585c4a12;hb=9a98bb3bc7a94f1a8e47f8dab45a87c8b4212080;hp=d10cc5dbb0b8752ce860eff19ba06cce435957b6;hpb=05a768ccc59943a7c56ed88b8b76e29c92570f46;p=fa-stable.git 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;