Hi!
I have spent two whole days reading stuff about embedding fonts in Flash CS3 and it seems to be a NIGHTMARE!!
I am developing a component similar to the label component with some modifications (enables the user to choose font, color etc. in the parameters UI). So the goal with my component is to make it even simpler to use than the original text tool.
Since flash’s font embedding requires a rocket science degree I want my component to automatically embed any font that the user selects for the component to use (via the parameters UI).
The component is simple. It creates a new TextField and enables the user to set different properties and it works fine… Until I set the embedFonts = true…
I have tried a lot of examples. I found out that the [embed]-thingy only works in flex (WHY ADOBE, WHY???). I have tried jsfl but since the text field is created in runtime I am out of luck on that one I guess… Unless I can extract the path to the actual font with jsfl and in that way import it to the library. But I can’t find the property (if there is one) that holds the complete path to the font file, or even the font filename.
So my question is: Is there ANY way to automatically embed fonts in Flash CS3 by using code only?
/Andreas (bald)