rrdtool 1.2 / font settings ignored

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
MaFL
Posts: 8
Joined: Tue Sep 13, 2005 3:35 am
Location: Saarbruecken, Germany
Contact:

rrdtool 1.2 / font settings ignored

Post by MaFL »

Hi,

cacti ignores all special font setting.
I can change the font over the default font path. That´s it.
All other settings will be ignored.

font size & path in general/visual and user settings makes absolutely no change.

any ideas? it works fine on another box :-/

Regards
Matt
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

Same problem :(
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: rrdtool 1.2 / font settings ignored

Post by gandalf »

MaFL wrote:Hi,

cacti ignores all special font setting.
I can change the font over the default font path. That´s it.
All other settings will be ignored.

font size & path in general/visual and user settings makes absolutely no change.

any ideas? it works fine on another box :-/

Regards
Matt
You won't have to enter only the font PATH but the fully qualified FONT DS NAME. In case of error, please click on the wrench next to the graph and post the rrdtool graph statements
Reinhard
MaFL
Posts: 8
Joined: Tue Sep 13, 2005 3:35 am
Location: Saarbruecken, Germany
Contact:

Re: rrdtool 1.2 / font settings ignored

Post by MaFL »

lvm wrote:You won't have to enter only the font PATH but the fully qualified FONT DS NAME. In case of error, please click on the wrench next to the graph and post the rrdtool graph statements
Reinhard
Hi Reinhard,

Yes.. that´s the way I always use it, full path incl font name.
Cacti also reacts on the general setting:
empty: default font used / DejaVuSansMono-Roman.ttf
existing font: this font is used
non existing: no text any more

But in the visual tab and the rrdtool font settings of the user I can enter what I want.
Empty/wrong/right and size... it´s always the default setting (no difference if default is empty or not)

In the rrdtool statement I can´t find a font setting?

Regards
Matthias
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, there are 2 places you can use fonts.

The defaults, and then the users graph settings. Check out the graph tab, then click settings. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
MaFL
Posts: 8
Joined: Tue Sep 13, 2005 3:35 am
Location: Saarbruecken, Germany
Contact:

Post by MaFL »

rony wrote:Ok, there are 2 places you can use fonts.

The defaults, and then the users graph settings. Check out the graph tab, then click settings. :)
Yeah.. that´s the place I meant above if I talk about "user settings".
I used the other way to get it (User Management/admin/Graph Settings).

How does rrdtool gets the font setting?/Any possibilities I can debug it?


Regards
Matthias
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What version of RRDTool are you running?

Fonts are only supported by version 1.2.x.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
MaFL
Posts: 8
Joined: Tue Sep 13, 2005 3:35 am
Location: Saarbruecken, Germany
Contact:

Post by MaFL »

rony wrote:What version of RRDTool are you running?

Fonts are only supported by version 1.2.x.
Hi Rony,

sure.. I´m using 1.2.11

As I said before.... I´m able to change the font over Settings/Path/RRDTool Default Font Path. This does work.
I have texts in my graphs with the font I define there.

But I´m not able to modify the font size nor define extra fonts for Title/Legends/Axis/Unit.
Neither in general nor in user defined.
These variables will be simply ignored.

This does work on 2 other boxes without problems...

Regards
Matt
wredniak
Posts: 5
Joined: Tue Jul 05, 2005 3:49 am

Post by wredniak »

today i want to change lenegd size
as i check in lib/rrd.php function rrdtool_function_graph
if (file_exists(read_graph_config_option("legend_font"))) { ...

i had to set legend_font path even if i have set RRDTool Default Font Path
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests