|
From: | Eddie Adams |
Subject: | Re: [Swftools-common] Font embedding |
Date: | Tue, 30 Sep 2008 13:39:04 +0200 |
This example I made doesnt work, any help please:
This is the main movie created in Flash:
_root.createEmptyMovieClip("loadfont", _root.getNextHighestDept());
var mcLoader = new MovieClipLoader();
mcLoader. {
_root.createTextField("mytext", _root.getNextHighestDept(), 0, 0, 100, 100);
_root.mytext.text = "hello world";
var myStyle = new TextFormat();
myStyle.font = "Fontname";
_root.mytext.setTextFormat(myStyle);
}
mcLoader.loadClip("BleedingCowboys.swf", loadfont);
This is the swf with font embedded (BleedingCowboys.swf) created with swfc:
.flash filename="BleedingCowboys.swf" bbox=1x1
.font Fontname filename="BleedingCowboys.ttf"
.end
The text `hello world´ shows up (so the font is loaded) but not applied to the text.On Mon, Sep 29, 2008 at 11:42 AM, Eddie Adams <address@hidden> wrote:
So if i create a swfc movie:
.font myfont "BleedingCowboys.ttf"
I can set a textfield created with actionscript in Flash outside the loaded movie and use the font with a textformatted font named myfont?
Are there any examples you could show, couldnt find any on google.On Mon, Sep 29, 2008 at 10:59 AM, Matthias Kramm <address@hidden> wrote:
On Mon, Sep 29, 2008 at 10:05:16AM +0200, Eddie Adams <address@hidden> wrote:Sure. If the font has a name in the swfc script, you should be able to
> I would like to make a design in Flash and use a font that is created in
> swfc by using loadMovie (font.swf).
"import assets" from that movie, using the name.
Greetings
Matthias
[Prev in Thread] | Current Thread | [Next in Thread] |