|
|
| Author |
Message |
bmestep
Joined: 12 Sep 2007 Posts: 3 Location: Memphis
|
Posted: Tue Sep 18, 2007 4:55 pm Post subject: How to get those Angled BWLABELs?? |
|
|
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!!
Thanks,
Brian
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2162 Location: United Kingdom
|
Posted: Tue Sep 18, 2007 5:01 pm Post subject: Re: How to get those Angled BWLABELs?? |
|
|
| 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!!
Thanks,
Brian |
Two steps:
| Code: |
# 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 )
|
|
| Back to top |
|
 |
bmestep
Joined: 12 Sep 2007 Posts: 3 Location: Memphis
|
Posted: Tue Sep 18, 2007 5:12 pm Post subject: |
|
|
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!
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2162 Location: United Kingdom
|
Posted: Tue Sep 18, 2007 5:21 pm Post subject: |
|
|
| 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...
|
|
| Back to top |
|
 |
bmestep
Joined: 12 Sep 2007 Posts: 3 Location: Memphis
|
Posted: Tue Sep 18, 2007 5:35 pm Post subject: |
|
|
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)
|
|
| Back to top |
|
 |
khooker
Joined: 22 Mar 2007 Posts: 8 Location: Paris
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2162 Location: United Kingdom
|
Posted: Tue Oct 23, 2007 6:43 pm Post subject: |
|
|
Probably Vera. It's in the docs/examples folder of your weathermap installation.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2162 Location: United Kingdom
|
Posted: Wed Oct 24, 2007 12:26 pm Post subject: |
|
|
| 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.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2162 Location: United Kingdom
|
|
| Back to top |
|
 |
|