PDA

View Full Version : perl font modules?


tom123
03-16-2006, 06:44 PM
Im making a web page that allows users select format options for a report. They can choose a font, font size, font color, date format. Are there any perl modules to deal with this or must i hard code the values into the select boxes.

mlseim
03-17-2006, 03:22 AM
Why not use CSS with alternate style sheet selection?

http://www.alistapart.com/stories/alternate/

or ...
http://www.google.com/search?q=css+alternate+style+sheet+tutorial&btnG=Search

It's actually done with CSS and Javascripting.

tom123
03-21-2006, 02:47 PM
Sorry mlseim, i think you misunderstood my question. On the web page i provide font options like a font name select box, font size, color etc. Once the user has selected their values, they are saved to file using a cgi script for later processing. Are their any modules out their that will dynamically generate the list of font names, sizes, colors available to the user in their browser?

Thanks

FishMonger
03-21-2006, 04:20 PM
There are modules available to pole the installed fonts on the local system that the script is running on, but not a remote system that connects via the web. That's not part of the http environment/protocol. The only way that I know of would be for you to write a custom program and have your web application install it on the users system (probably without them knowing). You can imagine the security implications, so unless you want to go down the route of hacking, you might want to rethink your approach.

mlseim
03-21-2006, 06:27 PM
OK ... maybe your question is, can Perl populate selection
boxes dynamically. Not necessarily fonts, but anything?

You can save their selections in a file, or save them as cookies.