Changing Text Samples
Does anyone know how I can enable site visitors to change sample text shown in different fonts, such as is done on most font sites, i.e. myfonts.com?
Thanks!
Does anyone know how I can enable site visitors to change sample text shown in different fonts, such as is done on most font sites, i.e. myfonts.com?
Thanks!
CptAwesome posted this at 23:04 — 7th July 2005.
He has: 370 posts
Joined: Dec 2004
yes, read: http://ca.php.net/manual/en/ref.image.php
then this: http://ca.php.net/manual/en/function.imagettftext.php
You can end up with something like this: http://www.notian.net/scrabble/?word=dynamic
You'd just have to throw in a couple variables for the font you want to show.
webdizzy posted this at 02:47 — 8th July 2005.
They have: 11 posts
Joined: Jan 2005
Hmm. I'm not sure that's the answer to what I'm looking for. I want people to be able to type something into a text box and have it appear on the page in a particular font so they can see how the text would look in that font
CptAwesome posted this at 03:20 — 8th July 2005.
He has: 370 posts
Joined: Dec 2004
Yeah, what I said stands, you could do it with some Javascript and a textarea, except that the font would only work if they already HAD it, thus eliminating the point.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.