tawxic Posted October 1, 2006 Share Posted October 1, 2006 (edited) I would have an example, but I cannot for the life of my find the site that I saw yesterday :-/ Basically, I want to have a real-time update of a selected font, as you type.I am somewhat familiar with the GD Library + PHP, I mostly need help interfacing it with whatever non-ServerSide language (probably JS) I need to.And if anyone can find the font site that has a text box, and as you type, it outputs an image with that text in it, I would REALLY appreciate it!e: Found it!http://www.abstractfonts.com/font/11912Anyone know how I can make something like that?Thanks, Edited October 2, 2006 by tawxic Link to comment Share on other sites More sharing options...
tain Posted October 2, 2006 Share Posted October 2, 2006 I think that gamehead200's dynamic sig guide could be adapted to meet your needs:http://www.msfn.org/board/index.php?showtopic=47730 Link to comment Share on other sites More sharing options...
CoffeeFiend Posted October 3, 2006 Share Posted October 3, 2006 I think that gamehead200's dynamic sig guide could be adapted to meet your needsI'd say there's a lot more to it than just that. Making images isn't complicated (not that I'd use php though), but he's also looking for the javascript "zooming" feature as seen on the page he linked to. So he has to learn javascript (and some DOM manipulation and such). Also, generating the odd dynamic sig a few times per hour for displaying on a forum is a very low load. Dynamically generating around a couple hundred pictures (26 letters, lower and uppercase, plus 10 numbers, ~30 symbols, etc - all in 2 sizes) for each and every page load would be stupid, and very taxing on a server.Something like this out to generate the pictures the first time if they don't exist and save them to HD for future times, or at the very least do some heavy caching. Link to comment Share on other sites More sharing options...
tain Posted October 3, 2006 Share Posted October 3, 2006 Something like this out to generate the pictures the first time if they don't exist and save them to HD for future times, or at the very least do some heavy caching.I agree that method would be much better. Running a script to gather the right images would be much faster than generating the images. Does this then become a JS scripting issue? Link to comment Share on other sites More sharing options...
gamehead200 Posted October 3, 2006 Share Posted October 3, 2006 Doing this cannot be done in real time with PHP using my guide. You would have to have the user submit a form with the font they want to view in order to do it in PHP.That site is using Javascript in order to do what you want. Link to comment Share on other sites More sharing options...
CoffeeFiend Posted October 3, 2006 Share Posted October 3, 2006 Does this then become a JS scripting issue?Yep! Link to comment Share on other sites More sharing options...
tawxic Posted October 3, 2006 Author Share Posted October 3, 2006 (edited) Aloha,Okay, so I have this script working:http://www.triviacafe.com/stamps/fonttest-working.phpHowever, there are a FEW things I need help with.1) I need it to use a multiline box, instead of an input box. a) I need the GD Exported image to MIRROR that of the typed text. So line breaks MUST appear where they are in the multiline box. Example:GD Output:This is aTestContent in the Multiline box:____________________________________|This is a|Test|||||____________________________________ B) Each individual line must be centered. That means calculating the width of the font (which will be variable, detemined by a dropdown box, I'll add that in myself) and dividing it by half of something or other... I don't understand the math, I'm a designer. That's why I'm here.If anyone can help me, without just spouting a bunch of numbers at me and expecting me to understand, I would greatly appreciate it.If you need to email me, my addy is msfn [at] phazm dot net Edited October 4, 2006 by tawxic Link to comment Share on other sites More sharing options...
tawxic Posted October 4, 2006 Author Share Posted October 4, 2006 JavaScript is hard Link to comment Share on other sites More sharing options...
tawxic Posted October 4, 2006 Author Share Posted October 4, 2006 I got it.Thanks all. Link to comment Share on other sites More sharing options...
ripken204 Posted October 4, 2006 Share Posted October 4, 2006 i wish i would have seen this thread before, i would have tried to do it myself... Link to comment Share on other sites More sharing options...
tain Posted October 4, 2006 Share Posted October 4, 2006 I got it.Will you post how you did it? Link to comment Share on other sites More sharing options...
ripken204 Posted October 5, 2006 Share Posted October 5, 2006 well i would assume JS where you would type in something, and when you clicked off of it or clicked a button a function would run in which the data is extracted from the text box, run through a filter, and spit back out with the font of your choice. Link to comment Share on other sites More sharing options...
tain Posted October 5, 2006 Share Posted October 5, 2006 I am hoping he will post the code Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now