Well, the textField as library symbol will work fine - I tested that, but would rather keep it pure AS.
On Mon, Apr 11, 2011 at 2:56 PM, Merrill, Jason < [email protected]> wrote: > I have found every now and then certain fonts don't play well with Flash > and there isn't much you can do if they don't work. There are a few fonts I > have which simply don't embed, and the failure is silent. > > Jason Merrill > Instructional Technology Architect > Bank of America Global Learning > > > > > > _______________________ > > > -----Original Message----- > From: [email protected] [mailto: > [email protected]] On Behalf Of Matt Perkins > Sent: Monday, April 11, 2011 2:25 PM > To: Flash Coders List > Subject: [Flashcoders] Problem embedding and using a font variant > > I'm using Myriad Pro for regular (non TLF) dynamic text fields in my > project and it's working fine. Now the client wants to use "Myriad Pro > Condensed Bold" for titles and I cannot get it to show up. I can't get just > "Myriad Pro Condensed" to show either. I don't have any problems with > "Myriad Pro" - I think the "condensed" variant/style is causing issues. I've > checked over and over that I have it embedded properly. > > Looks like "Condensed Bold" is treated as a style like "bold" but there's > no way to set a style on a text format object. > > I even tried setting the font style via html in the text content: > textfild.htmlText = "<font face='Myriad Pro Condensed'>"+mytext+"</font>"; > Didn't work. > > Any tips for using font variants like this? I'd rather keep doing it > dynamically like this and not have to create a textfield symbol in the > library to use (which would work). Also, this is an AS3/CS5 project. > > The TLF TextLayoutFormat has a font style property, but not sure if it > would work - but the last time I tried to use TLF my FLA wouldn't compile > because of some error with my assets SWC and the TLF SWC. So I'd rather not > go there. > > Maybe I can fake it by tweaking the scaleX property. > > Thanks, > Matt > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > ---------------------------------------------------------------------- > This message w/attachments (message) is intended solely for the use of the > intended recipient(s) and may contain information that is privileged, > confidential or proprietary. If you are not an intended recipient, please > notify the sender, and then please delete and destroy all copies and > attachments, and be advised that any review or dissemination of, or the > taking of any action in reliance on, the information contained in or > attached to this message is prohibited. > Unless specifically indicated, this message is not an offer to sell or a > solicitation of any investment products or other financial product or > service, an official confirmation of any transaction, or an official > statement of Sender. Subject to applicable law, Sender may intercept, > monitor, review and retain e-communications (EC) traveling through its > networks/systems and may produce any such EC to regulators, law enforcement, > in litigation and as required by law. > The laws of the country of each sender/recipient may impact the handling of > EC, and EC may be archived, supervised and produced in countries other than > the country in which you are located. This message cannot be guaranteed to > be secure or free of errors or viruses. > > References to "Sender" are references to any subsidiary of Bank of America > Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are > Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a > Condition to Any Banking Service or Activity * Are Not Insured by Any > Federal Government Agency. Attachments that are part of this EC may have > additional important disclosures and disclaimers, which you should read. > This message is subject to terms available at the following link: > http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you > consent to the foregoing. > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

