How to get those Angled BWLABELs??

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
bmestep
Posts: 3
Joined: Wed Sep 12, 2007 11:10 pm
Location: Memphis
Contact:

How to get those Angled BWLABELs??

Post by bmestep »

Maybe I've missed this somewhere in all the documentation and the configuration page of the manual...

How does one make the angled BW labels as depicted in this map? http://www.network-weathermap.com/node/78

I want to be cool like Howie too!! 8)


Thanks,

Brian
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: How to get those Angled BWLABELs??

Post by Howie »

bmestep wrote:Maybe I've missed this somewhere in all the documentation and the configuration page of the manual...

How does one make the angled BW labels as depicted in this map? http://www.network-weathermap.com/node/78

I want to be cool like Howie too!! 8)


Thanks,

Brian
Two steps:

Code: Select all

# define a truetype-based font (the 7 is the size)
FONTDEFINE 101 sometrutypefont.ttf 7

# set your default link (or specific ones) to use that font, and change the BWSTYLE
LINK DEFAULT
   BWSTYLE angled
   BWFONT 101
You must use a truetype font for this (and for link comments) because GD can't draw other fonts at any angle other than 0 and 90 degrees.

(sorry brian, I forgot to reply to your PM :oops: )
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
bmestep
Posts: 3
Joined: Wed Sep 12, 2007 11:10 pm
Location: Memphis
Contact:

Post by bmestep »

Got it.
The angled text is just about the coolest thing...

When you angle the text how do you "modify" the LABEL so it blends into the link itself?

I've done the 'BWOUTLINECOLOR none' to remove the outline, but can't blend the background color on the label itself.

Thanks again!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

bmestep wrote:Got it.
The angled text is just about the coolest thing...

When you angle the text how do you "modify" the LABEL so it blends into the link itself?

I've done the 'BWOUTLINECOLOR none' to remove the outline, but can't blend the background color on the label itself.

Thanks again!
Can't you do "BWBOXCOLOR none" too? Yes, I think you can... :-?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
bmestep
Posts: 3
Joined: Wed Sep 12, 2007 11:10 pm
Location: Memphis
Contact:

Post by bmestep »

That's the trick, but now I've got a feature request!

Would be helpful to be able to rotate the text another 180degrees. I can make the text flip by changing the order of the nodes specified in the LINK section but that means that in & out have to flip too.

(hint hint) BWSTYLE classic, angled, angled180

I have a Logical map similar to the walkthrough map you have with the VLANs where I'm using this feature.

Minor point, great feature.

THANKS HOWIE!!!

------------------------------

sample for others:
FONTDEFINE 21 /usr/include/Fonts/arial.ttf 7

LINK DEFAULT
BWLABEL bits
BWFONT 21
WIDTH 6
BANDWIDTH 1000M
BWSTYLE angled
BWOUTLINECOLOR none
BWBOXCOLOR none

(I turn on the outline and box color for specific links and set BWSTYLE to classic)
khooker
Posts: 8
Joined: Thu Mar 22, 2007 5:29 pm
Location: Paris

Post by khooker »

Hello Howie,
what is the font you are using in this example map:

http://www.network-weathermap.com/node/78

Thanks & Brgds,
Khooker
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

khooker wrote:Hello Howie,
what is the font you are using in this example map:

http://www.network-weathermap.com/node/78

Thanks & Brgds,
Khooker
Probably Vera. It's in the docs/examples folder of your weathermap installation.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

bmestep wrote:That's the trick, but now I've got a feature request!

Would be helpful to be able to rotate the text another 180degrees. I can make the text flip by changing the order of the nodes specified in the LINK section but that means that in & out have to flip too.

(hint hint) BWSTYLE classic, angled, angled180

I have a Logical map similar to the walkthrough map you have with the VLANs where I'm using this feature.

Minor point, great feature.
I thought I'd added the same logic to angled labels as I did to link comments - they automatically flip over if they would be upside down otherwise. I will do that. So no need for angled180.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Howie wrote:
bmestep wrote:That's the trick, but now I've got a feature request!

Would be helpful to be able to rotate the text another 180degrees. I can make the text flip by changing the order of the nodes specified in the LINK section but that means that in & out have to flip too.

(hint hint) BWSTYLE classic, angled, angled180

I have a Logical map similar to the walkthrough map you have with the VLANs where I'm using this feature.

Minor point, great feature.
I thought I'd added the same logic to angled labels as I did to link comments - they automatically flip over if they would be upside down otherwise. I will do that. So no need for angled180.
Actually, I just tested it, and they are all the right way up, anyway... :-?
Attachments
Angled BWLABELs. None are upside-done.
Angled BWLABELs. None are upside-done.
angles.png (17.3 KiB) Viewed 6504 times
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest