JPGraph does not display german Umlaute

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
josef53
Posts: 10
Joined: 18 Apr 2007, 13:00
Location: Austria / Europe

JPGraph does not display german Umlaute

Post 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
Life is too short for bad quality.
gerb42
Posts: 14
Joined: 17 Jan 2007, 17:06

Post 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.
josef53
Posts: 10
Joined: 18 Apr 2007, 13:00
Location: Austria / Europe

Post 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
Life is too short for bad quality.
gerb42
Posts: 14
Joined: 17 Jan 2007, 17:06

Post 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\\');
stefang
Posts: 1
Joined: 07 May 2007, 09:03
Location: Ruhrpott, Germany

Post 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.
Regards,
Stefan
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post 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.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
honigferd
Posts: 4
Joined: 09 May 2007, 15:04

Post 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/
Post Reply