[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 898
  • Last Modified:

How can I convert an uploaded font to a swf?

Hi all,

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.)

Thanks!
0
BlueKarana
Asked:
BlueKarana
  • 3
  • 3
2 Solutions
 
dgofmanCommented:
0
 
BlueKaranaAuthor Commented:
That is what I'm already doing. See above, "Execute mxmlc against the .as file to create a SWF font library file " mxmlc is an Apache Ant process.

I want something that's doesn't require an install on the client's pc.

Thanks, tho
0
 
dgofmanCommented:
In this case you need to upload font file to your server and you will create SWF file.
I am not sure you can find other options or ask your client to download http://swfmill.org/
and they will able to generate SWF using XML and asset files
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
BlueKaranaAuthor Commented:
Unfortunately swfmill only generates AS2 and I need AS3.

I have decided to just have the customer send the ttf files in and our production people will generate the swf(s) with mxmlc on their local PC and upload them. We're going to create a VB front end (to collect data and use a batch file to run mxmlc) to make it easier for our people to do this with the hundreds of fonts they receive.
0
 
dgofmanCommented:
That is the best solution in your case and easier for customer to use
0
 
BlueKaranaAuthor Commented:
Thanks, dgofman, for trying to help. I appreciate it. It's a tough problem with no ideal solution that I can see either.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now