[swfmill] Status of importing anti-aliased fonts?
Michael Pliskin
pl at tepkom.ru
Tue Apr 8 07:46:23 PDT 2008
Hello Ralf,
watching this thread - I've just learned how to build swfmill for
win32 myself, and while playing with the new build I noticed this
'new fonts being antialiased by default' thing, and for my needs I'd
probably like to turn it off (the result is blurry) - is that
possible?
Mike
RF> Sorry for the late answer, but I was very busy last week.
RF> The fonts imported by swfmill are anti-aliased. But the result,
RF> especially for small font sizes, might be more blurry. This is related
RF> to the DefineFont3 Tag you mentioned.
RF> I'm not sure when a new release will be made, but I hope it happens
RF> soon. Perhaps even this year ;).
RF> You can download a current swfmill win32 build from:
RF> http://pep-mp.de/swfmill/swfmill-0.2.12.6-win32.zip
RF> Ralf
>> 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! J
>>
>> 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.
>>
>>
>> _______________________________________________
>> swfmill mailing list
>> swfmill at osflash.org
>> http://osflash.org/mailman/listinfo/swfmill_osflash.org
RF> _______________________________________________
RF> swfmill mailing list
RF> swfmill at osflash.org
RF> http://osflash.org/mailman/listinfo/swfmill_osflash.org
--
Best regards,
Michael mailto:pl at tepkom.ru
More information about the swfmill
mailing list