Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


rrdtool 1.3 (and 1.2.28) font/text problem

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
matthys



Joined: 28 Oct 2008
Posts: 2

PostPosted: Tue Oct 28, 2008 2:07 pm    Post subject: rrdtool 1.3 (and 1.2.28) font/text problem Reply with quote

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

PostPosted: Tue Oct 28, 2008 3:33 pm    Post subject: Re: rrdtool 1.3 (and 1.2.28) font/text problem Reply with quote

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

PostPosted: Wed Oct 29, 2008 11:32 am    Post subject: Reply with quote

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

PostPosted: Thu Oct 30, 2008 2:55 pm    Post subject: Reply with quote

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

PostPosted: Sat Nov 01, 2008 3:45 am    Post subject: Reply with quote

Same problem in gentoo and downgrade rrdtool to 1.2.27 !
Back to top
pva



Joined: 26 Jan 2007
Posts: 26

PostPosted: Tue Nov 04, 2008 2:37 pm    Post subject: Reply with quote

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

PostPosted: Wed Nov 05, 2008 3:54 pm    Post subject: Reply with quote

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

PostPosted: Thu Nov 06, 2008 1:17 am    Post subject: Reply with quote

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

PostPosted: Fri Nov 07, 2008 5:01 pm    Post subject: Reply with quote

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

PostPosted: Fri Nov 21, 2008 8:26 am    Post subject: Reply with quote

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

PostPosted: Fri Nov 21, 2008 2:32 pm    Post subject: Reply with quote

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

PostPosted: Wed Dec 03, 2008 4:25 am    Post subject: Reply with quote

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

PostPosted: Sun Dec 07, 2008 1:31 pm    Post subject: Reply with quote

Tobi Oetiker is working on it. He told us, that next week a new version is likely to appear.
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group