Hi Rui, I'm afraid it's a bit more complex than that when using runtime shared .swfs; loading in clips with fonts embedded into them will not make those fonts available to the other loaded movies.
Search the Flashcoders list archives - there's plenty of threads about loading fonts at runtime. Ian On 8/22/06, Rui Duarte Silva <[EMAIL PROTECTED]> wrote:
Ian, So, that means that no matter which TextField you embed the fonts into, they can be used in every TextField. I suppose this should work over a runtime shared library MovieClip too. Thanks a lot! This font thing almost got me crazy! You're help has been invaluable and I cannot thank you enough. Rui Duarte Silva Senior Flash Developer / Senior Product Manager MNI - Médicos Na Internet, Saúde na Internet, SA Alert Life Sciences Computing www.alert-online.com -----Mensagem original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Ian Thomas Enviada: terça-feira, 22 de Agosto de 2006 11:44 Para: Flashcoders mailing list Assunto: Re: [Flashcoders] Multiple html formattings in a TextField 3) No. Setting embedFonts property tells the textField to _use_ embedded fonts, it doesn't actually enforce embedding. 4) The simplest way to have multiple fonts in the same dynamic TextField is to create a bunch of other, offscreen textfields (or imported in a clip in the library, doesn't matter which), and setting each one to embed the particular font - or font variant - that you want. Then any other textfield set to embedFonts=true - such as the one you want to have multiple fonts in - can use those fonts without a problem. HTH, Ian On 8/22/06, Rui Duarte Silva <[EMAIL PROTECTED]> wrote: > Ok, > > Let's see if I got this right: > > 1. In order to use html formatting in author time created dynamic TextFields > I have to force embedding by inserting some text in every style I will need > and then choose the characters to embed in the properties panel; > > 2. With runtime created TextFields I have to set it's text format using > setNewTextFormat indicating which font face will be used and then setting > it's embedFonts property to true; > > 3. Using the embedFonts property forces the embedding of the whole font > face, including its styles; > > 4. It's not possible to embed two font faces into the same dynamic > TextField. The only way to use different font faces on the same TextField is > to use device fonts which are not anti-aliased and cannot be masked with > author time layer masks. > > Are these correct? Or am I way off? > > Rui Duarte Silva > Senior Flash Developer / Senior Product Manager > > MNI - Médicos Na Internet, Saúde na Internet, SA > Alert Life Sciences Computing > > www.alert-online.com > -----Mensagem original----- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Em nome de R.A. > Williamson > Enviada: segunda-feira, 21 de Agosto de 2006 21:59 > Para: flashcoders@chattyfig.figleaf.com > Assunto: Re: [Flashcoders] Multiple html formattings in a TextField > > Rui, > > You'll need to embed three versions of Arial (normal, bold, and italic), > for this to work. > > -rw > > Date: Mon, 21 Aug 2006 17:06:13 +0100 > From: "Rui Duarte Silva" <[EMAIL PROTECTED]> > Subject: [Flashcoders] Multiple html formattings in a TextField > To: "FlashCoders Mailing List" <flashcoders@chattyfig.figleaf.com> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Suppose I have a Dynamic TextField on the stage and I want to: > > 1. Insert html formatting such as <font face="Arial">This normal > Arial<br><b>This is Arial Bold</b><br><i>This Arial Italic</i></font> > 2. Embed the font (in order to allow it to be masked and to keep > anti-aliasing) > 3. Use it under a mask > > Is this possible? > > Rui Duarte Silva > Senior Flash Developer / Senior Product Manager > > MNI - Médicos Na Internet, Saúde na Internet, SA > Alert Life Sciences Computing > > www.alert-online.com > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com