Local Hero Posted November 6, 2007 Share Posted November 6, 2007 I'm trying to do text manipulation on a webpage with different fonts but the best I can do is with Javascript & PHP and I get a pixelated text image. It works ok, and I can even get an outline, but its not great. I stumbled onto this: http://b.customink.com/lab/ where I can get clear text and add an outline, do an arc, change size, etc. It was suggested to me that it might be AJAX, any ideas? Would AJAX be capable of doing text manipulation as cleanly as this? Thanks Quote Link to comment Share on other sites More sharing options...
mainewoods Posted November 7, 2007 Share Posted November 7, 2007 <a href="#" onclick="this.style.fontFamily='Verdana, Arial, Helvetica, sans-serif';this.style.fontSize='36px';return false;">I change my own font and size!</a> javascript can change css style attrubutes on the fly, like above. The font family has to be installed on your client machine to work. Quote Link to comment Share on other sites More sharing options...
Local Hero Posted November 10, 2007 Author Share Posted November 10, 2007 Thanks, but that's just my problem. I have unique fonts for people to see. I wanted to know if AJAX could let me use fonts the user doesn't have? Of if I have to use flash, or settle for a PHP image? Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted November 10, 2007 Share Posted November 10, 2007 If the font isn't installed on their system, you can't cause their browser to display it via any means of plain text. An image is your best bet. Quote Link to comment Share on other sites More sharing options...
mainewoods Posted November 11, 2007 Share Posted November 11, 2007 ajax is only a subset of javascript. All ajax can do is call a page on the server like say a php page. That php page can only do the things php can normally do. Ajax has no graphics capabilities by itself. Javascript by itself has far more capabilites than ajax, ajax is only a small subset of javascript. The only way you might be able to use ajax in your project is to use ajax to call a php page, which then uses the php image creation functions, and then ajax hands the url of the newly created graphic back through the ajax pipe and javascript is used to induce the web page update. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.