I've just done a little project using exactly this, I made a post on my 
blog about it where you can also download a zip of the source. (You 
might have to change the datasource because it is using a php script to 
cache data from the last.fm web services)

the basics are that you have to make a TextFormat object using the font 
id from swfmill, set embedFonts = true and apply that text format to the 
text field.

hopefully the code will make it clear.

you can read it here :

http://relivethefuture.com/choronzon

let me know if you have any questions.

thanks,

Martin


Nathanael Drouard wrote:
> Hi,
> 
> 
> I try to use SWFmill but there's something I can't find how to do.
> 
> I embed a font with this kind of XML :
> 
> <library>
>       <font id="hooge" import="ressources/HOOG0554.TTF" 
> glyphs="abcdefghijklmnopqrstuvwxyzéèçàùâäêëîïôöûü0123456789" /> </library>
> 
> And I don't know how to use the font in my ActionScript class (in a 
> TextField). I use MTASC and compile the project under eclipse with an 
> Ant's build script.
> 
> 
> Thanks for your help.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org

-- 
want to know what i think? probably not

http://relivethefuture.com/choronzon

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to