How can I convert an uploaded font to a swf?
Posted on 2011-10-26
In a nutshell, I need to allow users to upload their own fonts to my Flash-based design program.
What I CAN do so far:
--Create an .as file with a Flex Embed meta tag with a class that registers the Font
--Execute mxmlc against the .as file to create a SWF font library file (this is done locally at the command line, and requires the Flex SDK and the Java SDK)
--Load the font library SWF into another SWF flash and embed the font in a textField
--Upload the True Type font files to the IIS server
What I WISH I could do:
--Create the SWF file server-side from a TTF font file uploaded by the user
--Second best, create the SWF file client-side without requiring Flex/Java (ActiveX?)
+ I tried Font2SWF but can't seem to find a font class inside the gen'd SWF, just graphics
on the stage.
Anybody know how to do this?
(I'm running on an IIS server and I use ASP. My main Flash app uses AS3.0.)