Do embedded fonts work in TextFlow yet?

Embedded fonts aren't working for me in TextFlow for SDK build 8537. I added the embedAsCFF: true thing, and the font does show up in Spark controls; it's just not working when I use it in TextFlow (defaults to Times). Non-embedded fonts are working fine though in TextFlow, the problem is only with the embedded ones. Is this a known issue at this time?

Turns out this is because of the linkage setting to RSLs in the newer SDK builds, Adobe is looking at this. Check outhttp://forums.adobe.com/message/2121775#2121775 for details/workaround.

Similar Messages

  • How to set fontFamily with an embedded font of a textFlow ?

    Hy,
    When I create a TextFlow without use any component of the flex SDK (4.0.13827) and then I try to change or apply a FontFamily of an embedded font, it doesn't work. Whereas when I use a component like RichEditableText or Label, it works.
    Bellow the code I wrote for my test :
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                creationComplete="creationCompleteHandler(event)"
                                width="800" height="600"
                                >
         <fx:Style>
              @namespace s "library://ns.adobe.com/flex/spark";
              @namespace mx "library://ns.adobe.com/flex/mx";
              @namespace local "*";
              @font-face {
                   src:                         url("assets/Fonts/arial.ttf");
                   fontFamily:                  ArialEmbedded;
                   advandedAntiAliasing:      true;
                   cff:                              true;
                   unicodeRange:                U+0020-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E,U+00A1-U+00FF,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183;
              @font-face {
                   src:                         url("assets/Fonts/cour.ttf");
                   fontFamily:                  CourierEmbedded;
                   advandedAntiAliasing:      true;
                   cff:                              true;
                   unicodeRange:                U+0020-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E,U+00A1-U+00FF,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183;
              s|WindowedApplication
         </fx:Style>
         <fx:Script>
              <![CDATA[
                   import flash.text.Font;
                   import flash.text.engine.FontLookup;
                   import flashx.textLayout.container.ContainerController;
                   import flashx.textLayout.conversion.TextConverter;
                   import flashx.textLayout.edit.EditManager;
                   import flashx.textLayout.edit.IEditManager;
                   import flashx.textLayout.elements.TextFlow;
                   import flashx.textLayout.events.SelectionEvent;
                   import flashx.textLayout.formats.TextLayoutFormat;
                   import flashx.undo.UndoManager;
                   import mx.collections.ArrayCollection;
                   import mx.events.FlexEvent;
                   import spark.core.SpriteVisualElement;
                   import spark.events.IndexChangeEvent;
                   private var dynTextFlow : TextFlow;
                   private var ctTextFlow : TextFlow;
                   protected function creationCompleteHandler(event:FlexEvent):void
                        controlBarVisible=false;
                        dynTextFlow = TextConverter.importToFlow("Hello World", TextConverter.PLAIN_TEXT_FORMAT);
                        drawTextBloc(dynTextFlow);
                        dynTextFlow.addEventListener(SelectionEvent.SELECTION_CHANGE, selectionChangeListener);
                        dynTextFlow.fontFamily = "ArialEmbedded";
                        dynTextFlow.fontLookup = FontLookup.EMBEDDED_CFF;
                        dynTextFlow.fontSize = 24;
                        dynTextFlow.interactionManager = new EditManager(new UndoManager());
                        dynTextFlow.flowComposer.updateAllControllers();
                        dynTextFlow.invalidateAllFormats();
                        dynTextFlow.flowComposer.updateAllControllers();
                   protected function cbFont_creationCompleteHandler(event:FlexEvent):void
                        var fonts:ArrayCollection=new ArrayCollection(Font.enumerateFonts());
                        cbFont.dataProvider=fonts;
                   protected function cbFont_changeHandler(event:IndexChangeEvent):void
                        var cf : TextLayoutFormat = new TextLayoutFormat();
                        cf.fontLookup = FontLookup.EMBEDDED_CFF;
                        cf.fontFamily = ComboBox(event.currentTarget).selectedItem.fontName;
                        IEditManager(ctTextFlow.interactionManager).applyLeafFormat(cf);
                        ctTextFlow.interactionManager.setFocus();
                   private function drawTextBloc(txt : TextFlow) : void
                        var container : SpriteVisualElement = new SpriteVisualElement();
                        var controller : ContainerController = new ContainerController(container, 300, 200);
                        addElement(container);
                        txt.fontLookup = FontLookup.EMBEDDED_CFF;
                        txt.fontFamily = "ArialEmbedded";
                        txt.flowComposer.addController(controller);
                   private function selectionChangeListener(event : SelectionEvent) : void
                        ctTextFlow = event.currentTarget as TextFlow;
                   protected function txt_selectionChangeHandler(event:FlexEvent):void
                        ctTextFlow = (event.currentTarget as RichEditableText).textFlow;
              ]]>
         </fx:Script>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <s:layout>
              <s:VerticalLayout paddingLeft="10" paddingTop="10"/>
         </s:layout>
         <s:RichEditableText x="10"
                                  y="10"
                                  selectionChange="txt_selectionChangeHandler(event)"
                                  paddingTop="5" paddingLeft="5" paddingRight="5" paddingBottom="5"
                                  id="txt"
                                  fontFamily="CourierEmbedded"
                                  text="RichEditableText"
                                  height="200"
                                  width="350"/>
         <s:ComboBox id="cbFont"
                        labelField="fontName"
                        creationComplete="cbFont_creationCompleteHandler(event)"
                        change="cbFont_changeHandler(event)"
                        />
         <s:Label text="TEST" fontFamily="CourierEmbedded" fontSize="22" rotation="45"/>
    </s:WindowedApplication>
    Please, help me...
    Thank you very much...

    Thank you very much,
    I finally found the solution using the swfContext :
    use namespace mx_internal;
    myTextFlow.swfContext = ISWFContext(getFontContext("myFontName", false, false, FontLookup.EMBEDDED_CFF));
    It works fine both with a dynamic component like RichEditableText or a dynamic textflow with a ContainerController.
    Thanks

  • Why don't embedded fonts work inside ItemRenderers?

    I'm trying to use an embedded font on a spark label inside an item renderer for a list control and it doesn't work.  Works fine everywhere else.

    So i think i figured out what was going on.  Here is my simplified code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:components="com.rtn.jccFlex.components.*" xmlns:local="*" xmlns:components1="com.ray.components.*">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            @font-face {
                src: url("/assets/Typewriter.ttf");
                fontFamily: Typewriter;
                embedAsCFF: true;
        </fx:Style>
        <mx:VBox width="100%" height="100%">
            <s:Label fontFamily="Typewriter" text="MY FONT WORKS!!" fontSize="14" />
            <s:Panel width="60%" height="100%" fontSize="18" fontWeight="bold">
                <s:Label fontFamily="Typewriter" text="MY FONT DOESNT WORKS!!" fontSize="14" />               
            </s:Panel>       
        </mx:VBox>
    </s:Application>
    It was looking for the bold version of the font since it inherited it from the parent panel. But the embed by default embeds the "normal" weight.
    In our project someone wrote a common panel component that sets the content of the panel using the "DefaultProperty" and we put our list in there.  So you don't really think about the container that the List and ItemRenderer sit inside, and it was very easy to overlook.
    This was very painful to figure out.
    Thanks for the help guys.

  • TextFlow using an embedded font or stylename in span

    I am trying to use an embedded font in a TextFlow span element in a TextArea in a custom component and it is not working.    Also can you use a stylename from an ext. stylesheet?  The fontFamily works if I style the TextArea itself with it, and it works as a device font in the span since it is loaded on my computer, but I need to use it as an embedded font since most users will not have it.
    Thanks,
    John
    Below is what I tried:
    <s:TextArea>
    <s:textFlow>
    <s:TextFlow>
    <s:p>
    <s:span fontFamily="threeDumbFont" fontLookup="embeddedCFF">
    Everyone says the cow jumped over the moon
    </s:span>
    </s:p>
    </s:TextFlow>
    </s:textFlow>
    </s:TextArea>
    I have a external styleshteet for the application here is part of it that includes the font:
    @font-face {
    src:url("assets/fonts/3Dumb.ttf");
    fontFamily: 'threeDumbFont';
    fontWeight: normal;
    fontStyle: normal;
    embedAsCFF: true;
    .logo {
    fontFamily: 'threeDumbFont';
    fontLookup: embeddedCFF;
    fontSize: 40;
    color: #ed1161;

    Set fontFamily on the TextArea as well.
    The rules are that all fonts in a component must be embedded in the same SWF, and the component itself must be given one of those fonts as the fontFamily (and fontStyle and fontWeight) so it can detect and use the correct SWF for its fonts.  Once you've specified one of the fonts in the SWF, the TextFlow can use any of the fonts in the SWF.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Has anyone got embedded fonts in SVG to work on Mac OS X Lion?

    I have used CS3, CS4 suite versions of illustrator on Snow leopard, and embedding fonts worked correctly,
    but on several computers at work here, none of the CS5 or CS5.5 suite versions of illustrator embed fonts in SVG format on Lion.
    I have also tried CS4 on Lion and still does not work...
    Saving as SVG without fonts works fine,
    Saving with fonts shows error message and no fonts are ever brought over.
    This shows brand new ai file with a text box and three letters in standard font:
    This shows saving as SVG to documents folder  (does not matter where saving to, issue still exists):
    This shows the SVG options (Note font is SVG, subsetting is common english and glyphs used.)
    Error message:
    Does not matter how many fonts are attempted to be embedded, no fonts (with glyphs translation) ever show up on the svg file.
    Any suggestions?
    Other than
    reinstall lion completely, then reinstall CS5 then CS5.5(DONE, does not work)
    reinstall lion completely, then reinstall CS5.5 only(DONE, does not work)

    This is what i currently have to do:
    Currently i use a secondary PPC computer with leopard 10.5 and Illustrator CS3 on it, and save the file as svg using those settings (fonts).
    Open the CS3 svg in text edit
    Copy fonts created in CS3 and then paste in CS5 svg file which i created on the intel computer with lion (mac 10.7)
    Also tested this in mountain lion 10.8, still same error, have to do this stupid workaround for now....

  • Unable to load embedded fonts in TlF / FlowLeafElement

    dears,
    I use TextFlowUtil.importFromString and FlowLeafElement to make each some text have its own style, every some words have diffirent color, fontFamily, fontSize....etc
    that is done here in the text attribute in this xml tag, and TextFlowUtil.importFromString and FlowLeafElement make taht perfect:
    <TextArea text="&lt;div direction=&quot;rtl&quot;&gt;&#xD;&#xA;  &lt;p textAlign=&quot;right&quot;&gt;&#xD;&#xA;    &lt;span fontFamily=&quot;ttf&quot; fontSize=&quot;16&quot; color=&quot;#FFE000E0&quot; &gt;Welcome to Android Training. Here you'll find a collection of classes that aim to help you build great apps for &lt;/span&gt;&#xD;&#xA;    &lt;span fontFamily=&quot;Arial&quot; fontSize=&quot;16&quot; color=&quot;#FFE000E0&quot; &gt;Android, using best practices in a variety of framework topics.&lt;/span&gt;&#xD;&#xA;  &lt;/p&gt;&#xD;&#xA;  &lt;p&gt;&lt;/p&gt;&#xD;&#xA;  &lt;p textAlign=&quot;right&quot;&gt;&#xD;&#xA;    &lt;span fontFamily=&quot;Arial&quot; fontSize=&quot;16&quot; color=&quot;#FFE00000&quot;&gt;Each class explains the steps required to solve a problem or implement a feature using code snippets and &lt;/span&gt;&#xD;&#xA;    &lt;span fontFamily=&quot;Arial&quot; fontSize=&quot;16&quot; color=&quot;#FFE00000&quot;&gt;sample code for you to use in your apps.&lt;/span&gt;&#xD;&#xA;  &lt;/p&gt;&#xD;&#xA;  &lt;p&gt;&lt;/p&gt;&#xD;&#xA;  &lt;p textAlign=&quot;right&quot;&gt;&#xD;&#xA;    &lt;span fontFamily=&quot;Arial&quot; fontSize=&quot;16&quot; color=&quot;#FF00E000&quot;&gt;What you see now is just the beginning. We plan to add many more classes, expand and refine existing &lt;/span&gt;&#xD;&#xA;    &lt;span fontFamily=&quot;Arial&quot; fontSize=&quot;16&quot; color=&quot;#FF00E000&quot;&gt;classes, and build Training Courses that help you enhance your apps using objective-oriented collections of &lt;/span&gt;&#xD;&#xA;    &lt;span fontFamily=&quot;Arial&quot; fontSize=&quot;16&quot; color=&quot;#FF00E000&quot;&gt;classes.&lt;/span&gt;&#xD;&#xA;  &lt;/p&gt;&#xD;&#xA;&lt;/div&gt;" direction="rtl" styleName=".textAreaTitle" editable="false" selectable="true" scrollable="false" mainReferance="UI.Components.Basics.TextArea" />
    The problem is that i need to embed fonts, by this fontFamily=&quot;Arial&quot; you can set font name which you want, but if i set font name which is embedded it won't work, like : fontFamily=&quot;ttf&quot;
    the embedded code is :
    [Embed(source='/Resources/majallab.ttf',fontName='ttf',mimeType='application/x-font',embed AsCFF='true')]
                                            var font1:Class; //This is only used to compile the code
    I use Flex SDK 4.5,
    what can i do ?
    Thank you in advance,
    amt

    To use embedded fonts in a Flex component, the fontFamily for the component needs to be set to an embedded font that is in the same SWF as the other embedded fonts in the TextFlow.  See my blog for more details
    Alex Harui
    Flex SDK Team
    Adobe Systems, Inc.
    http://blogs.adobe.com/aharui

  • Mx components don't recognize embedded font

    I ran into this problem: while spark components render embedded font just fine, the mx components silently fail.
    Here is a simple demo code where the first mx:LinkButton simply does not show up.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx"
       minWidth="1024" minHeight="768">
    <fx:Style>
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/mx";
    @font-face {
    src: url('/Library/Fonts/Microsoft/Goudy Old Style');
    fontFamily: 'GoudyEmbedded';
    .embedded {
    fontFamily: 'GoudyEmbedded';
    color: #FF0000;
    fontSize:28;
    .nonembedded {
    fontFamily: 'Goudy Old Style';
    color: #FF0000;
    fontSize:28;
    </fx:Style>
    <mx:LinkButton x="50" y="50" styleName="embedded" label="Just a test - 1234567890" />
    <mx:LinkButton x="50" y="150" styleName="nonembedded" label="Just a test - 1234567890" />
    </s:Application>

    Here are 4 instances of 'Accordion', where you can see how 'headerStyleName' and 'styleName' yield different results.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx"
       minWidth="1024" minHeight="768">
    <fx:Style>
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/mx";
    @font-face {
    src: url('/Library/Fonts/Microsoft/Goudy Old Style');
    fontFamily: GoudyEmbedded;
    .emb {
    fontFamily: GoudyEmbedded;
    color: #800000;
    fontSize: 24;
    textAlign: center;
    textFieldClass: ClassReference("mx.core.UIFTETextField");
    .nonemb {
    fontFamily: 'Goudy Old Style';
    color: #800000;
    fontSize: 24;
    textAlign: center;
    </fx:Style>
    <!-- 'headerStyleName' does render embedded font -->
    <mx:Accordion id="acc1" x="10" y="10" width="240" headerStyleName="emb" >
    <s:NavigatorContent label="The slanted dash '-'" >
    <s:Label x="10" y="50" styleName="emb" text="Just a test - 12345" />
    </s:NavigatorContent>
    </mx:Accordion>
    <!-- just 'styleName' - does NOT render embedded font -->
    <mx:Accordion id="acc2" x="260" y="10" width="240" styleName="emb" >
    <s:NavigatorContent label="The slanted dash '-'" >
    <s:Label x="10" y="50" styleName="emb" text="Just a test - 12345" />
    </s:NavigatorContent>
    </mx:Accordion>
    <!-- non embedded font works -->
    <mx:Accordion id="acc3" x="510" y="10" width="240" headerStyleName="nonemb" >
    <s:NavigatorContent label="The slanted dash '-'" >
    <s:Label x="10" y="50" styleName="emb" text="Just a test - 12345" />
    </s:NavigatorContent>
    </mx:Accordion>
    <!-- non embedded font is rendered but text alignment is ignored-->
    <mx:Accordion id="acc4" x="760" y="10" width="240" styleName="nonemb" >
    <s:NavigatorContent label="The slanted dash '-'" >
    <s:Label x="10" y="50" styleName="emb" text="Just a test - 12345" />
    </s:NavigatorContent>
    </mx:Accordion>
    </s:Application>

  • Problems with embedded font with medium or heavy weight

    Hey guys,
    I'm switching a current Project from Flashbuilder Beta2 to the Flashbuilder final release.
    I have a big problem concerning embedded fonts. The fonts I have to use are Futura Com Medium & Futura Com Heavy.
    Here's some of my code:
    @font-face
         src:                        url("assets/fonts/FuturaCom-Medium.ttf");
         font-weight:               normal;
         fontFamily:                 myFuturaMedium;
         advancedAntiAliasing:       true;
         embedAsCff:                 false;
    .myDatagrid{
         fontFamily: myFuturaMedium;
         color: #ff0000;   
    this worked well in beta2, but I'm not able to get the embedded Font working in the datagrid with the Flashbuilder final release.
    Any help on using embedded fonts in a mx|Datagrid is highly aprechiated.
    Cheers

    Hey guys,
    I'm switching a current Project from Flashbuilder Beta2 to the Flashbuilder final release.
    I have a big problem concerning embedded fonts. The fonts I have to use are Futura Com Medium & Futura Com Heavy.
    Here's some of my code:
    @font-face
         src:                        url("assets/fonts/FuturaCom-Medium.ttf");
         font-weight:               normal;
         fontFamily:                 myFuturaMedium;
         advancedAntiAliasing:       true;
         embedAsCff:                 false;
    .myDatagrid{
         fontFamily: myFuturaMedium;
         color: #ff0000;   
    this worked well in beta2, but I'm not able to get the embedded Font working in the datagrid with the Flashbuilder final release.
    Any help on using embedded fonts in a mx|Datagrid is highly aprechiated.
    Cheers

  • Embedded font on Spark Button

    I am using an embedded font for all spark labels. It works fine.
    However, the font is not applied to the button label. If I switch the font to Comic Sans MS then the font is used on the button.
    I can't figure out why this particular embedded font works in all labels, except the button label.
    Any help would be greatly appreciated.
    gkx

    I'm seconding Robs reply here... I had a very similar issue and ended up having to set the fontWeight and fontStyle to match the embedded font. In my case it was normal and normal using a Futura family font.
    So, my overall embed was:
    @font-face {
                                  src: url("assets/fonts/Futura_Book_BT.ttf");
                                  fontFamily: "FuturaCFF";
                                  embedAsCFF: true;
                        @font-face {
                                  src: url("assets/fonts/Futura_Book_BT.ttf");
                                  fontFamily: "Futura";
                                  embedAsCFF: false;
    Then my buttons looked like
    <s:Button fontFamily="Futura"  fontWeight="normal" label="Select"  click="hubSelectionHandler(event)" />

  • Embedded fonts with rich editable text

    Hi, I am trying to use my embedded fonts in rich editable text field, but it only works for users that already have that font installed on their system.
    This is what I do.
    I embed fonts like this:
         @font-face {
                src:url("fonts/Cantarell-Regular.ttf");
                fontFamily: Cantarell;
                advancedAntiAliasing: true;
            @font-face {
                src:url("fonts/Cantarell-Bold.ttf");
                fontFamily: Cantarell;
                fontWeight: bold;
                advancedAntiAliasing: true;
    Then in my DropDownList (id=fontPicker) I add a new string entry that references my new font (in this case "Cantarell")
    I have a custom item renderer which makes sure to print out the name of the font using the font itself, so that for example font name "Cantarell" will be printed out using Cantarell font. Code in my custom font item renderer looks like this:
    <s:Label id="labelDisplay"
                 fontFamily="{data}"
                 verticalCenter="0"
                 left="3" right="3" top="6" bottom="4"/>
    And this part works, even if you dont have the font installed on your system, the name of the font is displayed propperly.
    The thing that I want to do is to select some text in my rich editable text field and change the font of the selected text depending on what user selected from the dropdownlist. I added an event which is called once user selects new font type, and it performs following code on the selection in rich editable text:
                   if(fontPicker.selectedIndex == -1){
                        //user did not select anything, we do not change the font
                        text.setFocus();
                        return;
                   //we get the text layout format of the selected text
                    var txtLayFmt:TextLayoutFormat = text.getFormatOfRange(null,text.selectionAnchorPosition,text.selectionActivePosition);
                   //we change fontFamily of the selected text to the font that we just picked
                    txtLayFmt.fontFamily = fontPicker.selectedItem;
                    // I even tryed to add those two following lines without much help
                    //txtLayFmt.fontLookup = FontLookup.EMBEDDED_CFF;
                    //txtLayFmt.renderingMode = RenderingMode.CFF;
                   // we update our selected text with new font
                    text.setFormatOfRange(txtLayFmt,text.selectionAnchorPosition,text.selectionActivePosition );
                    text.setFocus();
    This code works perfect if user has the font installed on their system but it does not work if they dont have the font even if I embed the font.
    What I am doing wrong, any suggestions, tips, links?
    Thanks,
    Dal

    Thanks I will take a look at your blogs, maybe I find some explanations.
    Once it comes to my problem, I found a solution, I just needed to add a simple style:
            .mystyle1 {
                 fontFamily:Cantarell;
    and set the styleName of my text to it:
    text.styleName = "mystyle1";
    Afterwards I can dynamically change fonts and sizes of the text selections in my rich editable text field as much as I like.
    Also I need to make sure that I set embed-as-cff: true;
          @font-face {
                src:url("fonts/Cantarell-Bold.ttf");
                fontFamily: Cantarell;
                fontWeight: bold;
                advancedAntiAliasing: true;
                embed-as-cff: true;
    I hope this helps someone.
    And if anyone has explanation to why embedded fonts work only after I change styleName of a text to a random style, please share with me.
    Cheers,
    Dal.

  • AFEFontManager,TextLayoutFramework and embedded fonts

    Should we not use AFEFontManager in conjunction with TextLayoutFramework and embedded fonts. I have a project that was using the compiler argument -managers=flash.fonts.AFEFontManager. I would embed fonts from a loaded swf, but the fonts would be of type "embedded" instead of "embeddedCFF". Since the type wasn't embeddedCFF, the font wouldn't display correctly.
    I removed the -managers=flash.fonts.AFEFontManager argument and it works perfectly.
    So, is there a different way to reference the AFEFontManager? Or perhaps it's not necessary to do so at all?
    thanks.

    I think this question needs to go to the flex forum, since it is more about AFEFontManager. "embedded" fonts work with TextField, "embeddedCFF" fonts work with TLF and flash.text.engine. It's possible there is a way for you do this with embeddedCFF, that is a question for the Flex group, they are the best source fr information about the compiler.
    Thanks,
    - robin

  • Embeding Fonts from TTF File

    Hi,
    I had a very basic question on using Embeded Fonts in SWF files.
    I have to use a Italic effect on a Arail Font text, for this should I use ARIAL.TTF and apply the italic effect on it or Should I go for ARIALI.TTF file?
    What is the difference and which is the correct way of doing it?
    I am acutally working on a PPT to SWF converter and I am not able to match the look at feel of the Italic or Bold fonts in PPT and SWF, any suggestions where I should look for help on understanding how fonts are used?

    Hi Peter,
         Thanks for your reply.
         I did some experimentation and found that I can embed the Arail.ttf file and apply FontStyle=Italic property in my MXML tag and it shows me a italic form of Arail font. But when I try to use the same embeded font using FontRange and specify FontStyle = Italic in font range the italic font is not shown on the UI. Why is there a difference in MXML and Font Range ?
         I understand that I should use ARIALI.TTF file for Italic fonts but the problem is that it increases the size of my SWF. And even if somebody has used a italic style for couple of words it increases the size significantly. I want to avoid that.
         Can you tell me why FontStyle on normal Embede font work from MXML and not from FontRange?
    -Saurabh.

  • Embedded fonts not working

    embedded fonts aren't working for me in TextFlow. The non-embedded/pre-included fonts are working fine but if i try to add my own font, it doesn't work.
    i have the font set to DF4 and i have it exported for ActionScript with a class name.
    the font i'm using specificaly is Kozuka Gothic Pro L, which is OpenType.
    any ideas what's wrong here?
    if you need me to provide any more data pls let me know.

    pertinent as code:
              private function startLoadingXML():void {     
                   titleLdr = new URLLoader();
                   titleLdr.addEventListener(Event.COMPLETE, loadComplete);
                   titleLdr.addEventListener(IOErrorEvent.IO_ERROR, loadError);
                   titleContent = new String();
                   titleContainer = new Sprite();
                   this.addChild(titleContainer);
                   titleContainer.x = 40;
                   titleContainer.y = 837;
                   titleFlow = new TextFlow();
                   titleLdr.load(new URLRequest("XML/titleLdr.txt"));
                   titleTxtOutput.text="Loading an external file...";
                   trace("Loading an external file...");
              public function loadComplete(e:Event):void {
                   titleContent = titleLdr.data;
                   titleTxtOutput.text="An external text file, markup.txt, was loaded.";
                   trace("An external text file, markup.txt, was loaded.");
                   titleLdr.removeEventListener(Event.COMPLETE, loadComplete);
                          titleLdr.removeEventListener(IOErrorEvent.IO_ERROR, loadError);
                   placeIconTitle();
              function loadError(e:IOErrorEvent):void {
                   titleTxtOutput.text = "Error loading an external file.";
                   trace("Error loading an external file.");
              private function placeIconTitle():void {
                   titleFlow = TextConverter.importToFlow(titleContent, TextConverter.TEXT_LAYOUT_FORMAT);
                   titleFlow.flowComposer.addController(new ContainerController(titleContainer, 400, 400));
                   titleFlow.flowComposer.updateAllControllers();
                   //titleFlow.fontLookup = FontLookup.EMBEDDED_CFF;
    which leads to the text:
    <TextFlow color="#FFFFFF" columnCount="0" columnGap="0" columnWidth="0" fontFamily="Meiryo" fontSize="14" lineBreak="toFit" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0" paragraphSpaceAfter="0" paragraphSpaceBefore="0" verticalAlign="top" whiteSpaceCollapse="preserve" textAlpha="1" xmlns="http://ns.adobe.com/textLayout/2008">
         <p color="#FFFFFF" fontSize="18" trackingRight="2" fontWeight="normal">
              <span>subTitle</span>
         </p>
         <p fontSize="40" fontFamily="Kozuka" textAlpha=".2" baselineShift="85">
              <span fontWeight="bold">main</span><span fontWeight="normal">title</span>
         </p>
    </TextFlow>

  • I am on a Windows 7 OS attempting to reduce pdf size with my Adobe Acrobat Standard XI & Pro.  The application keeps timing out and  at the Subsetting embedded fonts portion and the application gives "Adobe Acrobat has stopped working" and then closes.  T

    I am on a Windows 7 OS attempting to reduce pdf size with my Adobe Acrobat Standard XI & Pro.  The application keeps timing out and  at the Subsetting embedded fonts portion and the application gives "Adobe Acrobat has stopped working" and then closes.  The document is 275 pages.  Is there something I can do to stop this?

    Hi Ricci,
    Since when are you facing this issue? Did you tried system restore to a date before this problem occured.
    Does acrobat stop working when you open this specific pdf file or with any pdf file that you open?
    Regards,
    Rahul

  • Has Mozilla changed the way Firefox displays @font-face enbeded fonts? The site I'm codeing works in Safari, Chrome, and IE, but Firefox 8.0.1 doesn't display the embeded font.

    Has Mozilla changed the way Firefox displays @font-face enbeded fonts? The site I'm codeing works in Safari, Chrome, and IE, but Firefox 8.0.1 doesn't display the embeded font.

    No problems here with the H1 headers.
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

Maybe you are looking for

  • Problem in creation of GL account

    Hi Experts, When we create the GL account in FS00, it ask for the Group Account Number. We have checked the field status of the GL account group and this field is not existing there. Where to control this field? Regards, Bhavesh

  • How to convert a file from pdf to txt in java

    hi, in my project ,I want to convert a file from pdf to txt using java api. If anyone have any idea about it plz help me.

  • File Attachment in Sandboxed Solution

    I was using below code to insert item in the list with the file attachement using farm solution <asp:TextBox ID="txtBoxTitle" runat="server"></asp:TextBox> <asp:FileUpload ID="flUpload" runat="server" /> <asp:Button ID="btnSave" runat="server" Text="

  • Seeburger BIC Mapping Designer-Project Explorer.......

    Hi Everyone,       I have a Problem with Seeburger BIC Mapping Designer. The problem is All the Projects/Mappings that i have done are suddenly disappeared in the Project Explorer, but my projects are available in the C:\Program Files\SEEBURGER\Mappi

  • Is it possible to copy all the channel strip info to another Logic project?

    Hi I'm trying to combine two projects so that I can crossfade from one to another yet still have full mix control. I've figured out how to copy the audio files (drag and drop), and that's brilliant, but I'd like to keep all my channel info without ha