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

Similar Messages

  • Unable to load embedded fonts in TLF using SWFContext

    Hi,
        We are having issues with embedding/renderring fonts in swf.
        Here is the code of the slide1.swf compiled by mxmlc.exe [Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16076] with compiler parameters --  "-static-link-runtime-shared-libraries".  and using Flash player version 10.1, 10.2 & 10.3.
        package
            import flash.display.Sprite;
            import flashx.textLayout.compose.ISWFContext;
            public class Slide1 extends Sprite implements ISWFContext
                [Embed(source="C:/WINDOWS/FONTS/CALIBRI.TTF", fontName="Calibri", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+004E,U+006F,U+006D", mimeType="application/x-font")]
                public static const calibri:Class;
                [Embed("slide1/sldBg1.png", mimeType="image/png")]
                public static const bg:Class;
                [Embed("slide1/slide1.xml", mimeType="application/octet-stream")]
                public static const slide:Class;
                public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
                    if (returns)
                    return fn.apply(thisArg, argsArray);
                    fn.apply(thisArg, argsArray);
        Using Flex 4.1 SDK:--
            When I load the slide1.swf in FB4 ActionScript Project it shows the embedded text. // Output is fine
            But, when I load the slide1.swf in FB4 MX+Spark Flex Project, it gives an error :
            Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run.
            Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !
            Below is the code where the exception occurs.
            var fontClass:Class = ApplicationDomain.currentDomain.getDefinition("Slide1") as Class;
           textFlow.flowComposer.swfContext = new fontClass();   // Exception occurs here
            textFlow.flowComposer.addController(new ContainerController(textContainer, containerWidth, containerHeight));   
            textFlow.flowComposer.updateAllControllers();           
            textFlow.flowComposer.composeToPosition();
            And, when I load the slide1.swf in FB4 MX Flex Poject, it shows the embedded text.  // Output is fine
        Using Flex 4.5 SDK:--
            With FB4 MX+ Spark and MX only Flex Project we get following errors
            VerifyError: Error #1053: Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.
            VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.SubParagraphGroupElement.
            VerifyError: Error #1103: Class flashx.textLayout.elements::LinkElement cannot extend final base class.
            VerifyError: Error #1053: Illegal override of display in flashx.textLayout.elements.ContainerFormattedElement.
            VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.FlowLeafElement.
            VerifyError: Error #1053: Illegal override of addParaTerminator in flashx.textLayout.elements.SpanElement.
            VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.InlineGraphicElement.
            VerifyError: Error #1053: Illegal override of minPercentValue in flashx.textLayout.property.NumberOrPercentProperty.
            VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.EnumStringProperty.
            VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.BooleanProperty.
            VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.NumberProperty.
            VerifyError: Error #1014: Class flashx.textLayout.property::NumberProperty could not be found.
            VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.IntProperty.
            VerifyError: Error #1014: Class flashx.textLayout.property::IntProperty could not be found.
            VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.UintProperty.
            VerifyError: Error #1014: Class flashx.textLayout.property::UintProperty could not be found.
            VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.StringProperty.
            VerifyError: Error #1014: Class flashx.textLayout.property::NumberOrPercentProperty could not be found.
            VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.ArrayProperty.
            VerifyError: Error #1103: Class flashx.textLayout.elements::TCYElement cannot extend final base class.
            VerifyError: Error #1053: Illegal override of createTextLine in flashx.textLayout.compose.ComposeState.

    We use this for fonts  ----  textFormat.fontLookup = FontLookup.EmbedCFF;
    For showing the fonts we use the line of code :--
    textFlow.flowComposer.swfContext = new fontClass();
    which throws an error
    Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !

  • Unable to load embedded fonts in Textlayout Framework using SWFContext.

    Hi,
        We are having issues with embedding/renderring fonts in swf.
        Here is the code of the slide1.swf compiled by mxmlc.exe [Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16076] with compiler parameters --  "-static-link-runtime-shared-libraries".
    and checked with  Flash player version 10.1 and 10.2 and 10.3.
        package
            import flash.display.Sprite;
            import flashx.textLayout.compose.ISWFContext;
            public class Slide1 extends Sprite implements ISWFContext
                [Embed(source="C:/WINDOWS/FONTS/CALIBRI.TTF", fontName="Calibri", embedAsCFF = "true", unicodeRange="U+0041,U+0072,U+0069,U+0061,U+006C,U+0020,U+004E,U+006F,U+006D", mimeType="application/x-font")]
                public static const calibri:Class;
                [Embed("slide1/sldBg1.png", mimeType="image/png")]
                public static const bg:Class;
                [Embed("slide1/slide1.xml", mimeType="application/octet-stream")]
                public static const slide:Class;
                public function callInContext(fn:Function, thisArg:Object, argsArray:Array, returns:Boolean=true):*
                    if (returns)
                    return fn.apply(thisArg, argsArray);
                    fn.apply(thisArg, argsArray);
        Using Flex 4.1 SDK:--
            When I load the slide1.swf in ActionScript Project it shows the embedded text.
            But, when I load the slide1.swf in  MX+Spark Flex Project, it gives an error :
            Warning: An ActionScript 1.0/2.0 SWF file has loaded an ActionScript 3.0 SWF; code in the ActionScript 3.0 SWF will not run.
           Error TypeError: Error #1034: Type Coercion failed: cannot convert Slide1@f56fce9 to mx.core.IFlexModuleFactory. !
            Below red colored text is the code where the exception occurs.
            var fontClass:Class = ApplicationDomain.currentDomain.getDefinition("slide1") as Class;
          textFlow.flowComposer.swfContext = new fontClass();
            textFlow.flowComposer.addController(new ContainerController(textContainer, containerWidth, containerHeight));   
            textFlow.flowComposer.updateAllControllers();           
            And, when I load the slide1.swf in Only MX Flex Poject, it shows the embedded Font.
        Using Flex 4.5 SDK:--
            With MX+ Spark and MX only Flex Project we get following errors
            VerifyError: Error #1053: Illegal override of createGeometry in flashx.textLayout.elements.FlowGroupElement.
            VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.SubParagraphGroupElement.
            VerifyError: Error #1103: Class flashx.textLayout.elements::LinkElement cannot extend final base class.
            VerifyError: Error #1053: Illegal override of display in flashx.textLayout.elements.ContainerFormattedElement.
            VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.FlowLeafElement.
            VerifyError: Error #1053: Illegal override of addParaTerminator in flashx.textLayout.elements.SpanElement.
            VerifyError: Error #1053: Illegal override of canReleaseContentElement in flashx.textLayout.elements.InlineGraphicElement.
            VerifyError: Error #1053: Illegal override of minPercentValue in flashx.textLayout.property.NumberOrPercentProperty.
            VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.EnumStringProperty.
            VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.BooleanProperty.
            VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.NumberProperty.
            VerifyError: Error #1014: Class flashx.textLayout.property::NumberProperty could not be found.
            VerifyError: Error #1053: Illegal override of minValue in flashx.textLayout.property.IntProperty.
            VerifyError: Error #1014: Class flashx.textLayout.property::IntProperty could not be found.
            VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.UintProperty.
            VerifyError: Error #1014: Class flashx.textLayout.property::UintProperty could not be found.
            VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.StringProperty.
            VerifyError: Error #1014: Class flashx.textLayout.property::NumberOrPercentProperty could not be found.
            VerifyError: Error #1053: Illegal override of hash in flashx.textLayout.property.ArrayProperty.
            VerifyError: Error #1103: Class flashx.textLayout.elements::TCYElement cannot extend final base class.
            VerifyError: Error #1053: Illegal override of createTextLine in flashx.textLayout.compose.ComposeState.

    Hi Jin-Huang
              But when I use Simple ASProject with SDK 4.1 then it works fine but when I create Flex project then it give error
    with SWFContext.
    I think it's a issue of swfcontext or AS comunication with Spark components.
    Please let me know if any solution.
    Thanks

  • Unable to apply embedded font swf to text in text layout framework

    Hello,
    We have created a swf for a given font (for e.g., Calibri.swf) which contains all the styles (Regular, Italic, Bold, BoldItalic).
    We have created a xml which lists the name of the font and the corresponding swf file path. The names from the xml are loaded into a combo box in the application.
    When we try to apply the selected font to a text in the text layout framework, it does not apply the same. It sets the font to default "Times" font.
    Following is a snippet of code to apply the font to the text:
    private function selectFont(fontXML:XML):void {               
                    var path:String = fontXML.@source;
                    var myEvent:IEventDispatcher = styleManager.loadStyleDeclarations(FlexGlobals.topLevelApplication.url.substring(0,FlexGl obals.topLevelApplication.url.lastIndexOf("/"))+"/"+path);
                    myEvent.addEventListener(StyleEvent.COMPLETE, function(event:StyleEvent):void{
                        var editManager:EditManager = textFlow.interactionManager as EditManager;
                        var itextLayout:TextLayoutFormat = new TextLayoutFormat();
                        itextLayout.fontSize = 20;
                        var fontName:String = fontXML.@name;
                        Alert.show(fontName);
                        itextLayout.fontFamily = fontName;   
                        Alert.show( "itext = " + itextLayout.fontFamily);
                        editManager.applyFormat(itextLayout,itextLayout,itextLayout);
                        var flowLeafElement:FlowElement = textFlow.findLeaf(editManager.anchorPosition) as FlowElement;
                        editManager.changeStyleName(fontName,flowLeafElement);
    Can anyone please let us know what is missing in the implementation?
    Thanks in advance.
    Vikram

    My recommendation: unless you really care about ISWFContext implementations and the application domain issues, ignore Alex's post about embedded fonts.
    It is a nice discussion about the inner workings of the domain and security of how this works but it is imho broken and is an insane concept to require an ISWFContext to just use an embedded font. It also breaks runtime CSS loading that has fonts embedded in it because the Flex compiler (last I checked) was also busted – it doesn't include the function necessary to create within context the font embed so that it may be applied. You can't create an ISWFContext with a compiled CSS file.
    These issues were introduced in the last Flex SDK beta before FB4 was released in final form. There are multiple bugs logged against the issue of applying loaded font files to TLF text (in short, SWFContext is broken and you have to override GlobalSettings.resolveFontLookupFunction to return embedded or null, all the time).
    Here's some more details to get you started - with links to at least one of the SDK bugs that were filed:
    http://forums.adobe.com/message/2656152
    For example:
    import flashx.textLayout.elements.GlobalSettings;
    import flash.text.engine.FontLookup;
    GlobalSettings.resolveFontLookupFunction = function makeValid():String { return FontLookup.EMBEDDED_CFF };
    And you may need to do this after your font is loaded:
    yourTextBlock.textFlow.invalidateAllFormats();
    Disclaimer: I haven't seen the latest Flex SDK release to see if this was fixed. I have an AIR application with native process that builds embedded font SWF files for use and stub code for FB4 usage but haven't updated to the latest SDK yet to see if it's working properly.
    Anyhow, your best bet is to look at the Flash Builder forums. I think this is/was a Flex team issue, not TLF.

  • How to use dynamic loaded embeded font?

    I have loaded fonts.swf on startup. I don't use TextLayout
    Embeded fonts feature. Then i have loaded some xml and assign xml
    to TextLayout. How I can use loaded font for display?

    Are you using Flash CS4 or Flex?
    Check out the following blog post, it contains instructions
    for font embedding that may help you out:
    Embedded
    Font Subsetting Using DefineFont4

  • Unable to load wingdings font to button

    Hello Everyone,
    Need help. I tried to load wingdings font to button, to display symbol. However seems like the button still display wording and unable to load the wingdings font. I 'm able to load other font except wingdings, wingdings 2.
    Button btn = new Button();
    //Font lcd = Font.loadFont(JFXTestButton.class.getResourceAsStream("wingding.ttf"),14);
    Font lcd = new Font("Wingdings",54);
    btn.setText("abc");
    btn.setFont(lcd);
    Thanks

    Wingdings does not appear to work => bugs can be filed at http://javafx-jira.kenai.com

  • Unable to load embedded PDF - must change settings for all users

    Hello.  We recently updated to Adobe Reader X on our three terminal servers.  Since the update we have found that a lot of our users are having an issue loading PDF's that are embedded in web sites.
    They access different websites that have such features and the PDF must be displayed in the browswer for it to load correctly.  Anyways, I have properly found what settings to adjust in Adobe Reader, my issue is that I need these settings adjusted for all 50 something employees and I really don't want to log into each user account and change the settings.
    The settings that must be adjusted are as follows:
    Edit > Preferences > General > Uncheck Enable Protected Mode at Startup
    Edit > Preferences > Internet > Uncheck Display in Read Mode by Default
    Edit > Preferences > Internet > Uncheck Allow fast web view
    Edit > Preferences > Internet > Uncheck Allow speculative downloading in the background
    I have found the registry files for the Protected Mode startup and Display in Read Mode, but am unable to find the other two registry settings.  Does anyone have any idea where those might be?  Or if you have a better suggestion on how to deploy Adobe with these settings already configured?  I have looked in the Customization Tool but was unable to find all the settings there as well.  Thanks!

    Acrobat is not permitted to run as a server process.
    Licenses are assigned to individual users, each of whom must have their own serialized copy.

  • [svn:fx-trunk] 6191: Fix more bugs related to embedded fonts and TLF, including TLF in an RSL.

    Revision: 6191
    Author:   [email protected]
    Date:     2009-04-21 22:02:29 -0700 (Tue, 21 Apr 2009)
    Log Message:

    Gordon, it looks like its been a while since you made this post.  Not sure how valid it is now...   I am particularly interested in the LigatureLevel.NONE value.  It seems that it is no longer supported.
    How do I turn of ligatures in the font rendering?
    My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase.  Is there any way (even roundabout) to turn ligatures off in flash?
    Thanks,
    Om

  • Missing characters in CFF embedded fonts

    Our application loads embedded fonts on the fly. I'm in the process of converting our text handling to FTE and switching over to CFF fonts, but I've noticed that for a couple of fonts, there are characters that are damaged, or missing entirely. The same text renders correctly when the font is installed as a system font, and also when it's embedded in the non-CFF format, so CFF embedding is choking on something, but I have no idea what. Nor do I see a lot of knobs that I can twist to control the CFF output.
    For example, Budmo Jiggler (http://www.dafont.com/budmo-jiggler.font). When embedded as CFF, the letter "B" isn't rendering correctly:
    This occurs in both the 10.3 and 11.3 players.
    My embedding code is autogenerated for all fonts and looks like this:
    // GENERATED FILE - DO NOT EDIT
    package {
         import flash.display.Sprite;
         import flash.text.Font;
         [SWF(width="800", height="600", backgroundColor="#FFFFFF", frameRate="30")]
         public class BUDMO extends Sprite {
              [Embed(source='/Users/bsharon/src/Bueller/as/fonts/ttf/Budmo Jiggle/BUDMO.ttf',
                     mimeType="application/x-font",
                     fontName='embedded_BUDMO',
                     unicodeRange='U+0000-U+00FF',
                     embedAsCFF='true',
                     fontWeight='normal',
                     fontStyle='normal')]
              public static var embedded_BUDMO:Class;
              [Embed(source='/Users/bsharon/src/Bueller/as/fonts/ttf/Budmo Jiggle/BUDMOB.ttf',
                     mimeType="application/x-font",
                     fontName='embedded_BUDMO',
                     unicodeRange='U+0000-U+00FF',
                     embedAsCFF='true',
                     fontWeight='bold',
                     fontStyle='normal')]
              public static var embedded_BUDMO_Bold:Class;
                trace("Registering font embedded_BUDMO");
                Font.registerFont(embedded_BUDMO);
                trace("Registering font embedded_BUDMO_Bold");
                Font.registerFont(embedded_BUDMO_Bold);
    The code is compiled like so: mxmlc --static-link-runtime-shared-libraries -output <swf_file> <as3_file>. There are no warnings.
    So...what do I try next?

    I will close my own question by saying that if I convert the TTF files to OpenType, the problem goes away. I would have preferred not to bang my head on this particular wall, but at least I have a workaround now.

  • Unable to load font"^0" "Helvetica Neue" After Effects CC

    After updating After Effects CC, the warning appears: Unable to load font"^0" "Helvetica Neue"
    HelveticaNeue.dfont is available in my HD/System/Library/Fonts
    I work with:
    Before the CC update everything worked fine.
    Please help me.

    See this thread and ask further questions there:
    http://forums.adobe.com/thread/1326590

  • After 12.1 Update - Unable to load font "^0" "Helvetica Neue" error

    I've just updated to After Effects CC 12.1, and I'm now getting the following error when launching:
    After Effects warning: Unable to load font "^0" "Helvetica Neue"
    After pressing OK, I get another error:
    Cannot load font required for the After Effects interface. Please replace the font or reinstall After Effects.
    And then a final error:
    After Effects can't continue: unexpected failure during application startup
    I'm on Mac OS 10.9, and this was working just fine with the 12.0.1 patch. I've double-checked that Helvetica Neue is installed and all other CC apps work just fine. Any ideas?

    Hello
    Here's what worked for me
    In font explorer I had several instances of Helevetica Neue fonts (Same font name but not same file name).
    I deleted these instances in Font explorer.
    I went to fontbook and restore defaults fonts.
    After effects opened perfectly.
    but now as KLTV8
    i get this message when I quit the application
    ( 76 :: 0 )
    Unable to allocate 0.003 MB of memory. Either decrease the memory requirements for the rendering of this frame, or install more RAM. (12803 / Text Engine Data). For more information, see www.adobe.com/go/learn_ae_mem
    I didn't even open any projects.
    Buggy update !

  • Using embeded fonts in loaded swf.

    I have a .Swf, which has 3 fonts embedded in it, they are all exported in frame 1 for AS.  This swf loads any number of external .swfs which have dynamically generated textfields inside of them.  This text must be embedded text because effects may be applied to them.  I do not want to embed the three fonts into every external swf, and do not think I should have to.  The font exists in the Loading swf and I have registered the fonts to the global font list.  If I print this list from the loaded swf, all three fonts are present, but when I try to use any of them, my textfiels are empty.
    My question is how do I utilize a font which is embedded in a swf, from a swf which has been loaded into that swf?
    From my external swf, this code:
    [PHP]var embeddedFonts:Array = Font.enumerateFonts(false);
    embeddedFonts.sortOn("fontName", Array.CASEINSENSITIVE);
    trace(embeddedFonts);[/PHP]
    produces the following:
    [PHP][object CenturyBook],[object MyriadProRegular],[object MyriadProItalic][/PHP]
    which are the three fonts that are embedded in the loading swf, So I assume the LOADED swf has access to these fonts.
    When I apply this code to the externally loaded swf:
    [PHP]var FontClass:Class = getDefinitionByName("MyriadProRegular") as Class;
    trace("FontClassInstance -> " + FontClass.toString());
    var linkedFont: Font = new FontClass();
    trace("Font name: " + linkedFont.fontName);
    var textFormat: TextFormat = new TextFormat(linkedFont.fontName, 14);
    //... The next lines set up the text box and apply the format.  I am sure this is done correctly.
    [/PHP]
    I get the following output:
    [PHP]FontClassInstance -> [class MyriadProRegular]
    Font name: Myriad Pro[/PHP]
    which is exactly what I would expect.  Yet, my text box is still blank.  I have embedText = true on the text box, and have applied a string to the "text" property, so it's nothing silly liek that.
    Any help would be appreciated...

    You may also want to look at the various embedded font format issues. Many of the Flex 4 components use a newer embedded font fortmat, which is not the same as the one generally used in Flash. So even if ther Flash font gets registered properly, it still may not work with some of the spark components.
    You should be able to create a swf using Flex that contains fonts embedded in either format, which can then be used in the way you describe, though, since Flex 4 suports both font formats.
    Hopefully, someone else will jump in here if I got some of this wrong.
    -JM

  • Embeded fonts to load when i wont not in the beginning

    How do i make that the embeded fonts load whenever i want?
    they just take
    ages to load in a slow connection and until they are not
    loaded the movie
    doesnt start, and how do i make a loading in this case???
    anyone can help?

    When using this method, consider the Flash Player security
    model:
    For Flash Player 8:
    Data loading is not allowed if the calling SWF file is in the
    local-with-file-system sandbox and the target resource is from a
    network sandbox.
    Data loading is also not allowed if the calling SWF file is
    from a network sandbox and the target resource is local.
    For more information, see the following:
    Chapter 17, "Understanding Security," in Learning
    ActionScript 2.0 in Flash
    The Flash Player 8 Security white paper at
    http://www.macromedia.com/go/fp8_security
    The Flash Player 8 Security-Related API white paper at
    http://www.macromedia.com/go/fp8_security_apis
    For Flash Player 7 and later:
    Websites can permit cross-domain access to a resource via a
    cross-domain policy file.
    In SWF files of any version running in Flash Player 7 and
    later, url must be in exactly the same domain. For example, a SWF
    file at www.someDomain.com can load data only from sources that are
    also at www.someDomain.com

  • Embeded Fonts and Externally Loaded Text?

    Just curious, I am designing a site with two embeded fonts. I am also using many externally loaded textboxes styled by a CSS. When I use the inline HTML in the .txt file, can I specify the embeded fonts for the text boxes or will they just use default browser fonts?
    Thanks in advance,
    Jeff

    I think what I need to do is place an instance of a text box on each page, so when you navigate away from the page the existing text box will leave. This works, but I can't get the CSS to do the formatting. Here is the code I have, any suggestions?
    var fileTxt:String;
    var myTextLoader:URLLoader = new URLLoader();
    var cssLoader:URLLoader = new URLLoader();
    myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
    myTextLoader.load(new URLRequest("text/tgc.txt"));
    function onLoaded(e:Event):void{
        fileTxt=myTextLoader.data;
        callCss();
    function callCss():void{
        var cssRequest:URLRequest=new URLRequest("styles.css");
        cssLoader.addEventListener(Event.COMPLETE, onCss);
        cssLoader.load(cssRequest);
    function onCss(e:Event):void{
        var css:StyleSheet = new StyleSheet();
        css.parseCSS(cssLoader.data);
        tgc_txt.styleSheet=css;
        tgc_txt.wordWrap=true;
        tgc_txt.htmlText=fileTxt;
    Like I said, it loads the text fine and eliminates the embeded HTML tags in the .txt file. It does not change color, size or weight as I have in the CSS.

  • Unable to undo applied embedded fonts

    Hello All,
    I have application with text box created with  container controller and textflow.
    Also I have applied embedded fonts dynamicaly using
    styleManager.loadStyleDeclarations2(url,false);
    but after this when I try to undo, previous font is not get applied.
    When I debug the application, i fonund that generation is number is mismatch.
    please anybady know why it is? When I apply different font size or any other property link color, Undo works properly.
    Thanks,
    Vikram

    Undo can only undo those changes that are inside operations. If there are direct model changes (changes resulting from an API call that is NOT in an operation), this will cause a generation number mismatch. Undo will be blocked because the model has changed. I would suggest finding out what it is you are calling that is incrementing the generation number, but is not inside an operation.
    - robin

Maybe you are looking for

  • JCO$Exception: (127) JCO_ERROR_FIELD_NOT_FOUND: ES_BDGT_EXT not a member

    Hi Experts, I am doing some enhancement on existing PDK applications. and there is a need to change Function module's signature (import, export parmaters) after making changes there when i try to read values of those fields in java program, i am gett

  • How do I reinstall MS Word on MacPro.  WORD keeps causing my computer to freeze.

    How do I reinstall Microsoft WORD on my MacPro.  (WORD keeps causing my computer to freeze.)

  • Is there a way to recover game center info

    is there a way to recover game center info I just lost like a week in dragonvale not very happy about it cause i lost gems and everything. and I have no idea why it would have such an error. I know my phone logged into game center numerous times sinc

  • EP6 SP2 Jco / System Alias Question

    Hi all, I'm developing a number of Iviews on an EP6 SP2 system connected to a 4.6C box.  I have two problems that I'd be grateful for some help with. 1) How do I make use of the System Aliases set up in the portal via Jco ? I know I can use the direc

  • Apache-ant problem need it to complie freecol

    hallo i did just install apache-ant but when i try to run it i just get an error li'l post my log [root@archhost ~]# pacman -S apache-ant Targets: jdk-1_5_0_07-1 apache-ant-1.6.5-1 Total Package Size:   16.7 MB Proceed with upgrade? [Y/n] y :: Retrie