[swfmill] Status of importing anti-aliased fonts?
Walton, Lynn
Lynn_Walton at adp.com
Fri Mar 28 12:32:18 PST 2008
I've tried to read as much as I can from the archives about font support
in swfmill. I'm unclear on the latest status of what is supported and
not in the 0.2.12 release and any newer builds in SVN ?
I'm trying to find out if having a font appear anti-aliased when you've
imported it using swfmill is supported and is this related to
defineFont3 tag being supported?
My usage scenario is the following:
I start with a swf , say template.swf, that does not embed assets or
fonts but refers to them in actionscript assuming they'll be put there
when we compile it with swfmill.
I have a basic mov.xml file that looks like:
<movie version="8" width="550" height="400" framerate="30">
<background color="#ffffff"/>
<frame>
<library>
<clip id="one_mc" import="library/someimage.jpg" />
<clip id="logo_mc" import="library/somelogo.swf" />
<font name="franklin" import="C:\Windows\Fonts\FRAMDCN.TTF"
glyphs="ABCDEF"/>
</library>
<clip id="template" import="template.swf" />
<place id="template"/>
</frame>
</movie>
I then compile that with
swfmill simple mov.xml new.swf
put it back to xml with:
swfmill swf2xml new.swf new.xml
I do some text replacement in the xml and finally make the swf I want
with:
swfmill xml2swf new.xml final.swf
Because of sizing constraints on the final swf, I need to only put in
the glyphs I need dynamically which is why I want to have swfmill import
the font.
I saw where Ralf mentioned working on DefineFont3 support back in Sept
2007 and I haven't been able to tell whether that is in the latest
released version or any SVN version ?
Is defineFont3 support what I would need in order for my final.swf to
display the font anti-aliased ?
I notice now that the xml created puts it in a defineFont2 tag.
Also, if I want to access it from action script code, is the following
correct , especially the XXX part if I put <font name="XXX" ..... /> in
the mov.xml I used to import it?
var tfmt:TextFormat = new TextFormat("XXX", 10);
_root.createTextField("tf", _root.getNextHighestDepth());
var tf:TextField = _root.tf;
tf.setTextFormat(tfmt);
tf.setNewTextFormat(tfmt);
tf.embedFonts = true;
Thanks for any status and help! :-)
Lynn
This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swfmill_osflash.org/attachments/20080328/2fdd752d/attachment.html
More information about the swfmill
mailing list