Page 1 of 1

JPGraph does not display german Umlaute

Posted: 18 Apr 2007, 13:10
by josef53
Hi,
thank you for manits! It's really great stuff - download - install - run a very good experience. :D
However I found one things I could not figure out.
I am using mantis 1.1.0a2 and JPGraph and german language basically with no problems. Only in the charts the german umlaute are display as double characters, probably unicode?
How can I fix that?
Josef

Posted: 30 Apr 2007, 07:41
by gerb42
Hi Josef,

we had similar Problems but managed to solve this by compiling libgd without JIS Support. Also make sure not to use the default Fonts. Use a TrueType Font instead.

Gerd.

Posted: 03 May 2007, 15:15
by josef53
gerb42 wrote:Hi Josef,

we had similar Problems but managed to solve this by compiling libgd without JIS Support. Also make sure not to use the default Fonts. Use a TrueType Font instead.

Gerd.
Hi Gerd,

thanx for that hint. libdg sounds LINUX but I am WinXP with XAMPP. Actually I avoid to compile this type of things, as I suspect it would take me ages to get it done. And, having no proper german umlaute can be suvived without pain.

Josef

Posted: 03 May 2007, 16:44
by gerb42
Hi Josef,

if you are on WinXP then it should be the Font issue. Make sure to use a TrueType Font (Arial or Tahoma or whatever). Umlauts should be displayed then. I don't recall the setting at the moment but it definitely is a config thing.

Edit:
our Settings are:
in config_inc.php:

Code: Select all

$g_graph_font = 'vera';
in jpg-config.inc.php:

Code: Select all

DEFINE("TTF_DIR",'C:\\Windows\\fonts\\');
DEFINE("MBTTF_DIR",'C:\\Windows\\fonts\\');

Posted: 07 May 2007, 09:08
by stefang
Hi Josef et all,

The 'vera' font does not exist on a standard default installation of windows xp or windows 2000.
You might have to specify a different font that is available on your windows system by default, like 'arial'.
Please note that additionally a font with the "bd" (for bold) postfix must exist as well, what actually does for arial (arialbd.ttf).

I've tested it and it works, thanks for the work around.

Posted: 07 May 2007, 21:22
by deboutv
This is a bug that I have reported:

http://www.mantisbt.org/bugs/view.php?id=7937

Download and install the attached file.

Posted: 09 May 2007, 22:13
by honigferd
gerb42 wrote: Edit:
our Settings are:
in config_inc.php:

Code: Select all

$g_graph_font = 'vera';
in jpg-config.inc.php:

Code: Select all

DEFINE("TTF_DIR",'C:\\Windows\\fonts\\');
DEFINE("MBTTF_DIR",'C:\\Windows\\fonts\\');
This worked fine for me after I downloaded the Vera Fonts from http://www.gnome.org/fonts/