|
|
| Author |
Message |
matthys
Joined: 28 Oct 2008 Posts: 2
|
Posted: Tue Oct 28, 2008 2:07 pm Post subject: rrdtool 1.3 (and 1.2.28) font/text problem |
|
|
After my Gentoo box did an upgrade of rrdtool to version 1.2.28 all fonts within the graphs are not correctly lined out. I mean ... that tabs are not fixed. I set the font to /usr/share/fonts/dejavu/DejaVuMonoSans.ttf (under Settings, Visual), which is a mono-space font. So text is lined out correctly .. but tabs or spaces NOT.
I also did an upgrade to rrdtool version 1.3.4 with the same results.
Anyone any clue?
Cheers,
Matthijs |
|
| Back to top |
|
 |
khufure Cacti User
Joined: 24 Oct 2007 Posts: 164 Location: San Francisco, CA
|
Posted: Tue Oct 28, 2008 3:33 pm Post subject: Re: rrdtool 1.3 (and 1.2.28) font/text problem |
|
|
| matthys wrote: | After my Gentoo box did an upgrade of rrdtool to version 1.2.28 all fonts within the graphs are not correctly lined out. I mean ... that tabs are not fixed. I set the font to /usr/share/fonts/dejavu/DejaVuMonoSans.ttf (under Settings, Visual), which is a mono-space font. So text is lined out correctly .. but tabs or spaces NOT.
I also did an upgrade to rrdtool version 1.3.4 with the same results.
Anyone any clue?
Cheers,
Matthijs |
1.3.x had this behavior for me. 1.2.27 does not. I didn't try 1.2.28 but here's the changelog:
https://lists.oetiker.ch/pipermail/rrd-users/2008-July/014478.html
Can you downgrade to 1.2.27? |
|
| Back to top |
|
 |
thenextdon13
Joined: 29 Oct 2008 Posts: 1
|
Posted: Wed Oct 29, 2008 11:32 am Post subject: |
|
|
Hello-
I had a very similar problem, and after searching the forums and other i think i've found the solution.
It appears that the handoff from Cacti into RRDTool does not honor the 'default font path' listed on settings->paths for graphs in rrdtool >= 1.2.8.
This means you need to put the same path into the settings->visual->
Default RRDtool 1.2 Fonts paths areas.
Its interesting that the seettings->paths used to work and now does not, with only an upgrade to rrdtool.
HTH |
|
| Back to top |
|
 |
matthys
Joined: 28 Oct 2008 Posts: 2
|
Posted: Thu Oct 30, 2008 2:55 pm Post subject: |
|
|
Yep .. did downgrade to 1.2.27 and all is fine again. But I had to mask rrdtool as the latest version for Gentoo is now 1.2.28!
AND AGAIN ... setting a font DIDN'T solve the tabs/spaces issue I had. And YES, I had to set a font to get things correct for the text (none at all with 1.2.28 ) but for the tabs/spaces it was not lined out correctly. No clue why .. but hope it will be fixed in the future.
Cheers,
Matthijs |
|
| Back to top |
|
 |
nightwisher
Joined: 05 Sep 2008 Posts: 12 Location: Bosnia
|
Posted: Sat Nov 01, 2008 3:45 am Post subject: |
|
|
| Same problem in gentoo and downgrade rrdtool to 1.2.27 ! |
|
| Back to top |
|
 |
pva
Joined: 26 Jan 2007 Posts: 26
|
Posted: Tue Nov 04, 2008 2:37 pm Post subject: |
|
|
Please, check rrdtool-1.2.28-r1 and if there any problems with it report at bugs.gentoo.org. Missing graphs problem was fixed in bug 254331:
https://bugs.gentoo.org/show_bug.cgi?id=245331 |
|
| Back to top |
|
 |
blaforest
Joined: 05 Nov 2008 Posts: 1
|
Posted: Wed Nov 05, 2008 3:54 pm Post subject: |
|
|
| At the risk of sounding like a total idiot, could someone please tell me how to apply the above patch? Still very new to Linux so I'm not sure how to do this. Any help would be greatly appreciated. |
|
| Back to top |
|
 |
pva
Joined: 26 Jan 2007 Posts: 26
|
Posted: Thu Nov 06, 2008 1:17 am Post subject: |
|
|
If you are using Gentoo the only thing you need to do is to unmask rrdtool-1.2.28-r1. For this just do:
# echo "=net-analyzer/rrdtool-1.2.28-r1" >> /etc/portage/package.keywords
# emerge -1va =net-analyzer/rrdtool-1.2.28-r1
That's all. Don't forgive to read Gentoo handbook about mixing branches.
If you are not using Gentoo then unpack sources
$ tar -zxvf /vt/portage/distfiles/rrdtool-1.2.28.tar.gz
download patch
$ wget 'http://bugs.gentoo.org/attachment.cgi?id=170717' -O rrdtool-revert-font-fix.patch
and patch
$ cd rrdtool-1.2.28
$ patch -i ../rrdtool-revert-font-fix.patch -p0
If something unclear read man patch and search google. |
|
| Back to top |
|
 |
khufure Cacti User
Joined: 24 Oct 2007 Posts: 164 Location: San Francisco, CA
|
Posted: Fri Nov 07, 2008 5:01 pm Post subject: |
|
|
| pva wrote: | | $ patch -i ../rrdtool-revert-font-fix.patch -p0 |
Ahh... there it is! Hopefully this is included in the latest packages from the distros by default soon. |
|
| Back to top |
|
 |
MarianoL
Joined: 20 Nov 2008 Posts: 4
|
Posted: Fri Nov 21, 2008 8:26 am Post subject: |
|
|
I have same problem with RRDTool 1.3.4 but in Fedora 8. I tried using DejaVuSansMono, LucidaConsole, Consola and VeraMono TTF fonts, but always happens the same.
There's a fix for monospaced fonts issue in graphs with RRDTool >= 1.2.28, without to do a downgrade?
Thanks in advance
Regards |
|
| Back to top |
|
 |
khufure Cacti User
Joined: 24 Oct 2007 Posts: 164 Location: San Francisco, CA
|
Posted: Fri Nov 21, 2008 2:32 pm Post subject: |
|
|
| MarianoL wrote: | I have same problem with RRDTool 1.3.4 but in Fedora 8. I tried using DejaVuSansMono, LucidaConsole, Consola and VeraMono TTF fonts, but always happens the same.
There's a fix for monospaced fonts issue in graphs with RRDTool >= 1.2.28, without to do a downgrade?
|
When I tried 1.3.x myself, I found it got a lot of segfaults in Apache. 1.3 is not supported in cacti. So I think you should downgrade. 1.2.27/28(with patch) is approximately equivalent in performance. |
|
| Back to top |
|
 |
steevel
Joined: 03 Dec 2008 Posts: 1 Location: Chair
|
Posted: Wed Dec 03, 2008 4:25 am Post subject: |
|
|
| thenextdon13 wrote: | Hello-
It appears that the handoff from Cacti into RRDTool does not honor the 'default font path' listed on settings->paths for graphs in rrdtool >= 1.2.8.
This means you need to put the same path into the settings->visual->
Default RRDtool 1.2 Fonts paths areas. |
I can second that this actually fixes the problem, without either downgrading or patching the rrdtool.
I added font paths to all "* Font File" options under Settings -> Visual -> Default RRDtool 1.2 Fonts
sl. |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12642 Location: Muenster, Germany
|
Posted: Sun Dec 07, 2008 1:31 pm Post subject: |
|
|
Tobi Oetiker is working on it. He told us, that next week a new version is likely to appear.
Reinhard |
|
| Back to top |
|
 |
|