RE: [Flashcoders] Embedding Fonts, it should be easy...., right!

2010-09-15 Thread Keith Reinfeld
Jiri, What version of Flash are you using? What version of the Flex sdk? Does the swf you are loading use timeline code? Have you tried putting in some traces? var tField:TextField = _sprite.getChildByName("field") as TextField; trace("tField =", tField); I did not notice before but, based on

Re: [Flashcoders] Embedding Fonts, it should be easy...., right!

2010-09-15 Thread allandt bik-elliott (thefieldcomic.com)
i've also found problems if you don't use the actual names (which can be viewed in the flash ide) for the font (which can be the same as long as the weights are different and matching the names in ) here is a sample from a font embed class that i used on a recent project note: the fontName for th

Re: [Flashcoders] Embedding Fonts, it should be easy...., right!

2010-09-15 Thread Glen Pike
Hi, I have had lots of problems with this in the past - be careful you are not embedding the font in the IDE for any of your text fields, I think it clashes. Where is "MyriadProFont" coming from in your App? Glen On 15/09/2010 08:46, Jiri wrote: He Keith, thanks for pointing

Re: [Flashcoders] Embedding Fonts, it should be easy...., right!

2010-09-15 Thread Jiri
He Keith, thanks for pointing that out to me. I tried and it still wont show any text. When I enumerate the fonts, and using the code provided by Keith I get this output embeddedFonts Array (@367abf39) [0] flash.text.Font (@369a56c1) fontName"

RE: [Flashcoders] Embedding Fonts, it should be easy...., right!

2010-09-14 Thread Keith Reinfeld
The fontNames for each embedded font need to be distinct from one another. Use Font.registerFont(Class); to make the embedded fonts available to loaded swfs. Use the fontName when assigning format.font; [Embed( source='../../../../../fonts/myriad pro/MyriadPro-Bold.otf',