WXforum.net
May 21, 2013, 07:40:26 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6615  •  Posts: 178465  •  Topics: 18111
Please welcome Christea, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Adding font size to wx banner  (Read 1857 times)
0 Members and 1 Guest are viewing this topic.
dasman
Forecaster
*****
Offline Offline

Posts: 323



WWW
« on: January 21, 2011, 11:49:24 PM »

I have the weather banner set up from http://weather.anolecomputer.com/.  In the script config file the font size is selectable in a numeric value of 1 to 5, with 5 beeing the largest size.  Is there a way to add larger size to it?  I currently have it set to 5, and on my sites Header(right side) to show temp and windchill.  I would like to make it 2 to 3 times larger and only show the temp.  Any Ideas?
Logged

Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network
SLOweather
Administrator
Forecaster
*****
Offline Offline

Posts: 2342



WWW
« Reply #1 on: January 21, 2011, 11:53:21 PM »

  Any Ideas?

Learn PHP?
Logged
dasman
Forecaster
*****
Offline Offline

Posts: 323



WWW
« Reply #2 on: January 22, 2011, 12:47:41 AM »

I found a new font file and replaced the one it came with.  This allowed me to get the bigger size!
Logged

Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network
xykotik
DonkeyTailWX DW6891
Forecaster
*****
Offline Offline

Posts: 691


I'll deal with it tomorrow


WWW
« Reply #3 on: January 22, 2011, 10:01:48 AM »

If you use a true-type (.ttf) font, you can use any size you want.

Upload your favorite ttf file into the directory where your wxgraphic.php file lives.  In the config.txt file, change the $font_file='none' to $font_file='./thefontname.ttf' there is an example in the config.txt file.

Now you can use any size you want.  In the imagecenteredtext command, there is a number for the GD font size (1-5) and a different one for the TTF font size, (same as your word processor).  It will pick which one to use depending on if the TTF file you called out actually exists.

example...

   imagecenteredtext(75, 135, "$barom$barom_units", 2, 7, $color4, 0);

If you want to get really freaky, replace the '0' at the end of the line with a number like '45' and look what it does Wink
Logged



Facit solem suum oriri super bonos et malos et pluit super iustos et iniustos.

Springtime in Seattle...  March comes in like a lion and out like a wet lion.
dasman
Forecaster
*****
Offline Offline

Posts: 323



WWW
« Reply #4 on: January 22, 2011, 10:53:32 AM »

Thank You.  That has done the trick.
Logged

Dave Sommerfed
Peotone Illinois USA
CW7762, KILPEOT1
NWS COOP, CoCoRaHS, Spotter Network
hayskswx
Forecaster
*****
Offline Offline

Posts: 1593



WWW
« Reply #5 on: June 09, 2012, 03:12:24 PM »

I know this thread is old but how do I make one of these banners?
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #6 on: June 09, 2012, 03:58:29 PM »

I know this thread is old but how do I make one of these banners?

You allready have one.  Dancing

Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #7 on: June 10, 2012, 12:40:14 PM »

You could do that in the config.txt file for wxgrapich script.

There you could change color, background image and lots of other things.
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1593



WWW
« Reply #8 on: June 10, 2012, 01:16:02 PM »

Cant figure out how to change the background color on it
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #9 on: June 10, 2012, 01:30:34 PM »

I don't know if you could change the color of the background, but you could use a image for that.

Just re size the image you want to use to 500x80 a name it banner_big.jpeg or what  extension you use.

Maybe some one else could say if it's possible to change the background color.
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1593



WWW
« Reply #10 on: June 10, 2012, 01:31:54 PM »

I don't know if you could change the color of the background, but you could use a image for that.

Just re size the image you want to use to 500x80 a name it banner_big.jpeg or what  extension you use.

Maybe some one else could say if it's possible to change the background color.

after I get the image where do I put it?
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
hayskswx
Forecaster
*****
Offline Offline

Posts: 1593



WWW
« Reply #11 on: June 10, 2012, 01:40:43 PM »

I made an image. Now where do I put it. I named it banner_big and its a jpeg. Is there something I need to edit in order for it to display the image?
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #12 on: June 10, 2012, 01:55:14 PM »

Put it in the same folder as the wxgrapich.php and to be on the safe side take a copy of the original banner_big.jpeg.

That should do it, you don't have to change something else.
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1593



WWW
« Reply #13 on: June 10, 2012, 02:00:39 PM »

Put it in the same folder as the wxgrapich.php and to be on the safe side take a copy of the original banner_big.jpeg.

That should do it, you don't have to change something else.

I put it in wxgraphic.php and it didnt change?
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #14 on: June 10, 2012, 02:09:36 PM »

I put it in wxgraphic.php and it didnt change?

Is it in the same folder?

Make sure that you have set to use jpeg in the config file as well.
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1593



WWW
« Reply #15 on: June 10, 2012, 02:11:20 PM »

Its set to a gif . Thats why it wasnt working
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #16 on: June 10, 2012, 02:20:08 PM »

It's the small things that does it.  Very Happy
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1593



WWW
« Reply #17 on: June 10, 2012, 02:21:01 PM »

Lol yep. Thanks
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
hayskswx
Forecaster
*****
Offline Offline

Posts: 1593



WWW
« Reply #18 on: June 10, 2012, 02:29:50 PM »

Can I use this as my signature on emails?
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #19 on: June 10, 2012, 02:45:41 PM »

I think I have asked the same question once, I cant find that thread right now.

But I think you could use your banner as a signature in your emails.

Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


hayskswx
Forecaster
*****
Offline Offline

Posts: 1593



WWW
« Reply #20 on: June 10, 2012, 06:54:41 PM »

Anyone know how this could be done?
I tried to add it to my email signature but it just comes through with the code and no image.
Logged



Ryan
Davis Vantage Vue WX Station - Weather Display Software - Win7
www.hayskansasweather.com
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 1.251 seconds with 19 queries.
anything