[swfmill] Problem with swfmill+mtasc+FP8 for fonts
jarzack@lapp.in2p3.fr
jarzack at lapp.in2p3.fr
Fri Sep 8 06:24:01 EDT 2006
Hello swfmill people!
I have a problem with embeded fonts in FP8 (only in FP8!); Maybe you
would agree to have
a look at this problem, it is very simple and rapid to understand (but
maybe not to solve?)
I create the file "font.swf" with the following xml:
<?xml version="1.0" encoding="iso-8859-1" ?>
<movie width="320" height="240" framerate="12">
<background color="#ffffff"/>
<frame>
<font id="papyrus" import="library/PAPYRUS.TTF"
<glyphs="0123456789"/>
</frame>
</movie>
and I create another swf file "gal.swf" where I want to use the font
in "font.swf", whit the xml:
<?xml version="1.0" encoding="iso-8859-1" ?>
<movie width="2800" height="2000" framerate="60">
<background color="#ffffff"/>
<frame>
<import file="font.swf" url="font.swf"/>
</frame>
</movie>
Then I re-compile the file "gal.swf" with mtasc (without ant "header"
parameter, for sure) and the following actionscript code:
_level0.createTextField("essai",0,0,0,100,20)
_level0.essai.text="blablabla"
_level0.essai.embedFonts=true
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "papyrus";
my_fmt.size=20;
_level0.essai.setTextFormat(my_fmt);
This works when I compile for FP 6 or 7 (mtasc parameter -version) but
not for FP8...
However, compiling the last actionscript code directly in the file
"font.swf" works even with FP8. But I don't want to include the font in
every swf file I use...I could load the file "font.swf" with actionscript
in "gal.swf" without embeding to font but doing this I can't use the
"advanced"
anti-aliasing mode for the text.. Have you a solution to this problem??
I also tried the exact example shown in
http://www.v-i-a.net/blog/archives/000043.html and it didn't worked.
In this example, I just changed the police, and I also tried to replace
root.myFont.loadMovie ("sharedFont.swf")
by
root.myFont.loadMovie ("shared.swf")
because it seems that there is an error in the original .as file.
Does somebody knows this problem, and have an answer?
Candide Jarczak
More information about the swfmill
mailing list