PDA

View Full Version : New Script Idea!


Golden_Eagle
09-05-2002, 04:58 PM
Hi all.

Attention Guru's!

I would like to post a request for someone to come up with a script that has already been made. But is not available as yet on the web.... (or prove me wrong!)

After talking to a number of different people regarding this topic, have informed me that it is not all that difficult to those who are in the know!

I don't know much about PHP, in fact, have absolutely no idea.

Which is why this is posted as a request. If I could have made it, I would have done!

My problem is this. I want to make an online Font Viewer for users of my quite popular website to be able to view what their text would look like before they download that particular font.

An example of this is available (to use) @

http://www.fonthead.com/fonts-preview.php

Somebody I have already spoke to gave me this reply:


Although this is easily done it doesn't seem that too many scripts have been written to do this. It's nothing more than generating an image on the fly inserting the text from the user and using the font specified. PHP can do all that quite easily. Here are a couple of code snippets on the subject.

http://www.phpbuilder.com/columns/rasmus19990124.php3

http://oct31.org/fonts/sample.txt

The script on the site you posted was probably written by the site owners or they hired someone to write it for them. Doesn't seem to be any available anywhere. Maybe i'll write one if I ever get some free time. I've done one in Java once so maybe it's time for one in PHP.

This, to some of you, probably makes sense. But to me it's just words and scribbles.

Obviously a HTML form is needed to send the information to the script. But when the word 'script' gets mentioned I seem to be blocked!

Is anyone willing to give this script a go.

If you are ready and willing let me know.

Any help with this would be hugely appreciated.
Any royalties/credits required, once completed, will be honored.

Any thoughts on this post at all will be noted.

Newbie Member
Golden Eagle
AKA Leon
http://www.font-factory.com

Ökii
09-05-2002, 06:42 PM
Note: Having any script generate dynamic images at every page load is relatively resource hungry for the server - I advise asking, whoever your host is, whether they mind you implementing that functionality.

Posting this in the PHP forum has at least given us the pointer that your host supports PHP. Further to that (well, if the script will be along the lines of my thinking) you'd want the GD libraries module and freetype (truetype font support). Both are listed within an echoed phpinfo() - please check them.

Assuming both modules are available, the scripting shouldn't be overly complicated.

Spookster
09-05-2002, 10:29 PM
Golden Eagle you already have this topic open for discussion.

http://www.codingforums.com/showthread.php?s=&threadid=5385

Closing this thread....