View Full Version : Scale Text in javascript

12-20-2004, 05:15 AM
Is it possible to scale TEXT like in graphic softwares (photoshop etc) on the web via javascript.
Where user can type in text and stretch (or scale x axis or y axis) text on the display window with the handles.
I have searched everywhere i can... have not found a solution. i would prefer not to use activeX . Any other solution is welcome, even flash.
Thank you

12-20-2004, 09:49 PM
Are CSS filters (DX) ActiveX?
If not, I have a nice way for you to scale stuff:
style="width:#specsneededIthink;height:#specsneededIthink;filter:progID:DXImageTransform.Microsoft.matrix(d x=scaleXNumber,dy=scaleYNumber,sizingMethod=resize,otherParamsHere)"
I think that's right, you might wanna check @ msdn.com.

12-21-2004, 11:34 AM
if you use em or percentage sizes for your text scaling won't be a problem in the first place :)

12-21-2004, 11:43 AM
nb - filters are activeX controls, at the same security level as plugins like Flash

But jbot's is the real answer