Mantis Graphs - Configuration

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
fxm
Posts: 26
Joined: 01 Feb 2007, 09:42
Location: Namur (Belgium)

Mantis Graphs - Configuration

Post by fxm »

Hi,

Where can I find some documentation about Mantis Graphs Plugin configuration ?

What is the difference between "bundled" and "jpgraph" in "library" parameter ?
I cannot save a jpgraph library path ... why ?

I'm using Mantis 1.2.1 on a Windows server.
atrol
Site Admin
Posts: 8542
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Mantis Graphs - Configuration

Post by atrol »

fxm wrote: Where can I find some documentation about Mantis Graphs Plugin configuration ?
AFAIK there is none
fxm wrote: What is the difference between "bundled" and "jpgraph" in "library" parameter ?
Since MantisBT 1.2 there is a graph library delivered with the product (library/ezc/Graph), this is the "bundled"
Jpgraph is just another PHP base library to produce graphs, which was used in earlier versions of MantisBT and can still be used.
In theory there should not be much differences between the results. In real live, there will be less or more problems with the one or the other depending on your environment.
fxm wrote: I cannot save a jpgraph library path ... why ?
Seems this is a bug
Please enter an issue for it
Please use Search before posting and read the Manual
fxm
Posts: 26
Joined: 01 Feb 2007, 09:42
Location: Namur (Belgium)

SOLVED: Mantis Graphs - Configuration

Post by fxm »

atrol wrote:
fxm wrote: I cannot save a jpgraph library path ... why ?
Seems this is a bug
Please enter an issue for it
It is done: http://www.mantisbt.org/bugs/view.php?id=12006.

Thanks for your quick answer.
papalnitro
Posts: 2
Joined: 26 Aug 2010, 12:12

Re: Mantis Graphs - Configuration

Post by papalnitro »

Hi all,

I am new to mantis and have a problem with graphs, which I cannot solve despite large coverage on the web and this forum...

I've installed the latest 1.2.2 version on a windows server, which works fine as system fonts are available under c:\windows\fonts.

I've then installed the same distrib at my ISP's, running LAMP, and I can't see any graphs or captchas.
Bundled ezc and jpgraph has the same behaviour.

I've copied some basic windows fonts (arial.ttf ...) and setup the font directory to the new font directory but still no luck.

Can I use the windows fonts or do I need specific ones for linux? If so, where can I find them ?

I have used some jpgraph sample programs to make sure the installation was ok,
and it is, i.e. drawing plain graphs and text, but I guess mantis wants to use fancy fonts instead...

Thanks

PS: Obviously there's not much I can run on my ISP's server !!
papalnitro
Posts: 2
Joined: 26 Aug 2010, 12:12

Re: Mantis Graphs - Configuration

Post by papalnitro »

:? Correction to the above post:

I reinstalled mantis 1.2.2 from fresh and it now works +/- ok.
By +/- ok I mean that graphs are displaied, but I doubt that the fonts are used
as I see no change whether I use arial, verdana or courier...
(only tried with ezc though...)

So to recap, all I did was:
- Install mantis on my ISP lamp
- Create a fonts directory anywhere (I've put it in mantis/library)
- Copy the basic windows fonts to that directory
- Define the font path in config_inc.php at mantis root
in my case: $g_system_font_folder = '/home/www/fb9ae259369470607e53b636e095c2ca/web/mantis/library/fonts/';

If anyone has an answer to whether Windows ttf fonts are ok for linux I'd be glad to check again
or try with linux fonts.

Cheers
dregad
Developer
Posts: 94
Joined: 26 Jul 2010, 14:24

Re: Mantis Graphs - Configuration

Post by dregad »

On my server, I had to install the MS Core Fonts package (http://corefonts.sourceforge.net)

After a lot of trial and error, I realized that fonts have to be located in /usr/share/fonts/truetype. As on my environment they were actually stored in /usr/share/fonts/msfonts, I created a symbolic link and then everything worked fine.

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

Hope this helps
Post Reply