[swfmill] Font Question
Robert Jonathan Molesa
rjmolesa at consoltec.net
Thu Sep 15 14:26:43 PDT 2005
Hello all. I'm not sure if I crossed some line or failed to address my
question in some way. I looked on the website for any posting
guidelines and there being none, I'm assuming that this may be a slow list.
In any case, I have not introduced myself. My name is Jon Molesa. I've
been excited about Linux since the day I saw it, however it took my
there tries before I fell in Love with it. I try to stay in Linux as
much as possible, but there are somethings that take you to Windows from
time to time, and Flash development has been one such thing. I was
keeping an eye on a project called f4l, they're going through some
changes and seem to have slowed down a little. I ran across your
program swfmill and I love the simplicity, the fact that it's command
line and scriptable. I love that you feed it xml, which can also be
written in the terminal. And of course the next discovery was mtasc,
again I love the simplicity. But I need not tell anyone here of the
beautiful potential with these two programs. I have a book
"ActionScript for Flash MX". I'm working through some of the example
code and trying to compile with swfmill and mtasc. The fact that I'm
fairly new to Flash anyway, I have no notions or ideas about how things
should work in this environment. And I reason that the learning curves
should be about the as to learning the Flash IDE. Which takes me into
Windows.
I know this is long, but it's and explanation/apology of sorts if I
offended anyone or have not posted according to understood rules.
Possibly I'm off topic. Please forgive me. I'm just trying to
understand your program and it's operation with mtasc. It may be that
the problem I'm having is related to mtasc, but I believe it has
something to do with how I'm loading my font using swfmill. Lastly,
Great idea and great work, it fills a need and an honest void in Linux.
Thank you Mr. Fischer.
Robert Jonathan Molesa wrote:
>I've pilfered through the archives and the how to on the site, but I'm
>still having a problem with this. I have some as code that creates a
>ticker text box that scrolls from left to right. I use swfmill to
>create the initial swf, and the run mtasc to attach the code. It works
>great with the default font which I believe is a Times font. I want to
>use Arial font instead. So following the instructions I use swfmill to
>embed a font into the swf like:
>
> <?xml version="1.0" encoding="iso-8859-1" ?>
>
> <movie width="750" height="20" framerate="12">
> <background color="#b0b0b0"/>
> <frame>
> <library>
> <font name="Arial" id="Arial"
>import="fonts/arial.ttf"
>glyphs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQURTUVWXYZ1234567890 ."/>
> <!-- <textfield id="ticker_txt"
>width="750" height="20" size="12" font="Arial" text="Text Goes Here"/> -->
> </library>
> <!--<place id="ticker_txt" name="ticker_txt"
>depth="0"/> -->
> </frame>
> </movie>
>
>If I uncomment the textfield code it creates the textfield with the
>arial font like it should. So I know the font is being embedded into
>the swf. In my actionscript, if I uncomment
>
> _root.ticker_txt.embedFonts = true;
>
>the field doesn't display any text, with it commented out it displays
>the text in the default Times font. I'm referencing the font in my as
>like so:
>
> var defaultFormat;
> defaultFormat = new TextFormat();
> defaultFormat.font = "Arial";
> _root.ticker_txt.setTextFormat(defaultFormat);
>
>It is my understanding that anything that as is going to use has to be
>in a <library> tag, and I have it all in the first frame of the swf.
>Any suggestions or thought would be greatly appreciated.
>
>
>
--
Jon Molesa
Owner - Consoltec
828-994-2067
rjmolesa at consoltec.net
http://www.consoltec.net
More information about the swfmill
mailing list