> What is vera.ttf ? it is the real TrueType file? Yes.
> The ID (vera in this case) may be anything? or should be the font name, and > how do you use it in the TextField? Yes, both -- it /may/ be anything, but /should/ be the font name for clarity's sake. What's missing in the tutorial, because font handling in Swfmill has developed much further since it was written, is that there's also a @name attribute to go with @id. @id is the Swfmill internal name (for textfields created in Swfmill), @name is for AS usage (textfields created by the script). So, try this: <font id="KlingonBlade" name="KlingonBlade" import="KlingonBlade.ttf" /> Note the @name attribute I added. An advantage of this is that you can import multiple font types, like normal, bold, italic etc., and all give them the same @name. When you use a bold style in your textfield, the appropriate font style will be chosen. HTH, Mark On Thu, Jan 15, 2009 at 10:14 AM, gabriel <gbelved...@gmail.com> wrote: > Hi Robin, > > I've already checked this link, but I had problems doing this: > > Fonts work slightly different. To import all numerical characters of > vera.ttf as "vera", you would add the following after the library node: > > <font id="vera" import="library/vera.ttf" glyphs="0123456789"/> > > > > What is vera.ttf ? it is the real TrueType file? > The ID (vera in this case) may be anything? or should be the font name, and > how do you use it in the TextField? > > I made a quick (really quick) sample with a weird TTF and it does'nt work > for me :( > > <?xml version="1.0" encoding="iso-8859-1" ?> > > <movie width="320" height="240" framerate="12"> > <background color="#ffffff"/> > <font id="KlingonBlade" import="KlingonBlade.ttf" > glyphs="abcdefghijklmnopqrstuvwxyz!"/> > <textfield id="hellobox" width="200" height="50" size="20" > font="KlingonBlade" text="hello world!"/> > <place id="hellobox" name="output" depth="10"/> > <frame/> > </movie> > > and this is what I get > > > > > > > thanks again for the time! > Gabriel > > > Robin Palotai wrote: > > Hi!, Check http://swfmill.org/doc/using-swfmill.html#fonts > Cheers > > Robin > -- > www.mindless-labs.com > > On Tue, Jan 13, 2009 at 11:00 AM, gabriel <gbelved...@gmail.com> wrote: > > > Hi all, > > can anyone please point me in the right direction about embedding fonts with > swfmill? > > > thanks > Gabriel > > _______________________________________________ > swfmill mailing list > swfmill@osflash.org > http://osflash.org/mailman/listinfo/swfmill_osflash.org > > > > > _______________________________________________ > swfmill mailing list > swfmill@osflash.org > http://osflash.org/mailman/listinfo/swfmill_osflash.org > > > > _______________________________________________ > swfmill mailing list > swfmill@osflash.org > http://osflash.org/mailman/listinfo/swfmill_osflash.org > > _______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org