Changing Text Samples

They have: 11 posts

Joined: Jan 2005

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's picture

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.

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's picture

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.