I'm not sure if that will work, it's all about what Java will support by
default.  It may support Type 1, not sure.  Sorry for not having more
info...
 
Matt

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Maher
Sent: Wednesday, May 09, 2007 2:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: OpenType Fonts in Flex 2?



I'm very happy to finally find this answer. Wow that threw me for a 
while.... Alright then, I have a Type 1 font (pfm/pfb) that I 
converted to OTF. Since OTF cannot be used, how about the PFM?

/me prays

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "nesleinob" <[EMAIL PROTECTED]> wrote:
>
> Thanks, Matt - we'll give the flash option a try.
> 
> -Bo
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "Matt Chotin" <mchotin@> wrote:
> >
> > 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: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>  
> [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> ] On
> > Behalf Of nesleinob
> > Sent: Wednesday, February 21, 2007 6:08 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

> > 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
> >
>



 

Reply via email to