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

Reply via email to