Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Dynamic text using graphic fonts on images


Message #1 by mjisabella@l... on Mon, 21 Jan 2002 20:13:10
Hello,

 From what I can see of the code it's a CGI that's building the graphic 
probably the venerable old GD.pm Perl library for generating dynamic 
graphics etc...

BTW, if you can do it with HTML text then just use CSS and a class 
attribute to control the font.

John

>
>----------------------------------------------------------------------
>
>Subject: Dynamic text using graphic fonts on images
>From: mjisabella@l...
>Date: Mon, 21 Jan 2002 20:13:10
>X-Message-Number: 13
>
>I would like to have a list of graphic buttons used as part of the site 
>navigation and have them be dynamic.  For example, I might want to have a 
>blue oval called "Home" and another called "Photos".  I would like to be 
>able to change the name of "Photos" to "Pictures" without recreating the 
>graphic.  I know how to do this by simply putting plain html text over a 
>blank graphic, but I want the text to be a specific font so that it can be 
>anti aliased and look nicer.  For this example, lets say I want the font 
>to be Comic Sans MS.  If I could figure out how to do this, I could make 
>an interface that would allow me to enter in the names of the pages on a 
>form, then have it automatically create the graphic buttons for me.  I 
>found an example that does what I want, but I can't figure out how to use 
>their code, or even modify it to do what I want.  The link is 
>http://www.thesportsauthority.com/product/index.jsp?
>productId=696734&cp=18541 .  Scroll down and enter a unique name for the 
>jersey and also a number then click "View Jersey".  It will dynamically 
>recreate that image of the back of the jersey using the information that 
>you entered.  They are not using plain html text, but rather a graphic 
>font.  How can I accomplish this same thing?  What is the code to do 
>something like this, or where can I find a tutorial or book that explains 
>it?  I tried finding this information everywhere with no luck.  Please 
>help.  I'm new to Javascript, so if you could baby me through this I'd 
>really appreciate it.  Thanks in advance!
>



  Return to Index