it's not required. just specifies that the file being attached is a truetype
font

On Fri, May 29, 2009 at 4:32 PM, rohit <[email protected]> wrote:

>
> why u add this
> , mimeType="application/x-font-truetype"
>
> On May 29, 3:38 pm, Nishant Kyal <[email protected]> wrote:
> > Hi,
> > Attaching the code I use to embed a font with bold and italic
> >
> > When swf is loaded
> >
> > ------------------------------
> > var fontAppDomain:ApplicationDomain =
> (event.target.loader.contentLoaderInfo
> > as LoaderInfo).applicationDomain;
> > var FontLibrary:Class =
> > fontAppDomain.getDefinition('content.fonts. Acadian') as Class;
> > Font.registerFont(FontLibrary['Acadian']);
> >
> > // Try registering all available versions
> > try {
> >     Font.registerFont(FontLibrary['AcadianBold']);
> >
> > } catch (e:Error) {}
> >
> > try {
> >     Font.registerFont(FontLibrary['AcadianItalic']);
> >
> > } catch (e:Error) {}
> >
> > try {
> >     Font.registerFont(FontLibrary['AcadianBoldItalic']);} catch (e:Error)
> {}
> >
> > --------------------------------------------------------------------
> >
> > The try catches are because not all my fonts have bold and italic
> versions.
> > After this you can simply use fontStyle and fontWeight styles to change
> bold
> > italic.
> >
> > Regards
> > Nishantwww.itasveer.com
> >
> > On Fri, May 29, 2009 at 3:28 PM, sheetal <[email protected]>
> wrote:
> >
> > > Rohit I faced similar issues,some posts regarding same are there on
> > > this group.Plz refer to previous posts.
> > > Also you have to embed separate files for bold,italic,bold and
> > > italic.That means u have to embed 4 fontfiles(ttf) for each font.
> >
> > > On May 29, 2:30 pm, rohit <[email protected]> wrote:
> > > > hi,
> >
> > > > i am embeding font swf in my application. i.e abcFont.swf
> > > > when I use the font family = abcFont(using class name). Font going to
> > > > dispaly fine
> >
> > > > But when i try to perform operation of bold and italic on
> > > > this ..........that's not working
> >
> > > > I am using richtextediter  bold and italic button
> >
> > > > can somebody help me?
> >
> >
> >
> >  Acadian.as
> > < 1KViewDownload
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to