Unfortunately we cannot support OpenType fonts directly in Flex 2, it's something we're trying to fix in the next release. As a workaround, if you have access to Flash, you can create a SWF and embed the font there, then in Flex grab the font from the SWF that you produced. Basically you use Flash to get the font encoded correctly, then we take that work and just steal the symbol in Flex.
Matt ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of nesleinob Sent: Wednesday, February 21, 2007 6:08 AM To: [email protected] Subject: [flexcoders] OpenType Fonts in Flex 2? Please forgive me if this topic have been brought up before, but I have not been able to locate any threads, so I'll bring it forward... We have no trouble embedding TruType Fonts in our Flex app, but OpenType Fonts does not compile. Is this simply the way it is - no support for OTF in Flex 2 or are we missing something? For reference, we are using a .css file to embed the fonts. As a syntax example, the following entry will compile fine @font-face { src:url("fonts/gara.ttf"); fontFamily: Garamond; font-style: regular; } However, replacing the font with an OTF font like this @font-face { src:url("fonts/AGaramondPro-Regular.otf"); fontFamily: AGaramondPro; font-style: regular; } throws a compiler error: exception during transcoding: Unexpected exception encountered while reading font file '/U:/bnielsen/init/app/flex/fonts/AGaramondPro- Regular.otf' If anyone on the list can offer any advice, it would be much appreciated. Thanks in advance, -Bo

