function graph()
{
+
$this->x = $this->y = $this->z = array();
$this->biggest_x = NULL;
{
if ($alt && strlen($string) > 12)
$string = substr($string, 0, 12);
+
+ $encoding = $_SESSION['language']->encoding;
+ if ($encoding != 'UTF-8') {
+ if (function_exists('iconv'))
+ $string = iconv($encoding, 'UTF-8', $string);
+ else
+ $string = mb_convert_encoding($string, 'UTF-8', $encoding);
+ }
+
if ($this->built_in)
{
imagestring($img, $size, $x, $y + $alt, $string, $col);
// $angle = -15;
//else
$angle = 0;
+
imagettftext($img, $size, $angle, $x, $y + $alt, $col, $this->fontfile, $string);
}
}