Hi all!
If someone has problems with improper rendering of UTF-8 strings in images, here is the solution:
Replace all occurrences if imagestring with imagettftext :
i.e. in include/classes.graph.inc.php, replace:
with:
Of course this assumes that you have proper ttf fonts. This example assumes that you have ttf-dejavu package installed on debian etch.
Good luck!
If someone has problems with improper rendering of UTF-8 strings in images, here is the solution:
Replace all occurrences if imagestring with imagettftext :
i.e. in include/classes.graph.inc.php, replace:
PHP Code:
imagestring($this->im, $fontnum,$x,1, $str , $this->GetColor('Dark Red No Alpha'));
PHP Code:
imagettftext($this->im,
9,
0,
$x,
13,
$this->GetColor('Dark Red No Alpha'),
'/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf',
$str
);
Good luck!