Show multiple embedded fonts into an html textfield

Hi to everyone,
I'm using Flash CS5 , Actionscript 3.0 and export fo Flash Plaer 10.
I create a class, myHtmlText.as, that builds a basic TextField.
I create an empty file myHtmlText.fla
I embedded two fonts inside the myHtmlText.fla: "Ghotam Light" and "Ghotam Book"; I selected all characters for each font and exported for actionscript with the following linkage name: "GhotamBook" and "GhotamLight"
I wish to use the fonts embedded, in the TextField using htmlText, like this:
var tf:TextField = createTextField(10, 10, 400, 22);
     tf.htmlText = '<p><font face="GhotamBook">Lorem ipsum dolor sit amet.</font></p>';
     //tf.embedFonts = true;
where createTextField function is:
private function createTextField(x:Number, y:Number, width:Number, height:Number):TextField
     var result:TextField = new TextField();
     result.x = x;
      result.y = y;
     result.width = width;
      result.height = height;
     addChild(result);
      return result;
but it does not work; the text is not displayed; If I use .text instead fo .htmlText, the latin text is displayed with a system font.
How can I do?

GhotamLight and GhotamBook should be class names and you'll need to import the needed classes to use:
var tf:TextField = createTextField(10, 10, 400, 22,"GotamBook");
     tf.htmlText = '<p>Lorem ipsum dolor sit amet.</p>';
private function createTextField(x:Number, y:Number, width:Number, height:Number, fontS:String):TextField
     var result:TextField = new TextField();
     result.x = x;
      result.y = y;
     result.width = width;
      result.height = height;
     addChild(result);
var ClassRef:Class=Class(getDefinitionByName(fontS));
var font:Font = new ClassRef();
var tfor:TextFormat=new TextFormat();
tfor.font=font.fontName;
result.embedFonts=true;
result.defaultFormat=tfor;
      return result;

Similar Messages

  • Embedding Fonts into a PDF file - Best Solution/s

    Good day
    What is the best solution or solutions to Embedding Fonts into a PDF file?
    Kind Regards

    Amplifing on what Test Screen Name posted.
    --| Use a Distiller Job Option that embeds fonts.
    --| Use Acrobat Pro's (starting with 9.x) Preflight that embeds fonts (if they are present and installed on the local machine).
    --| Untick "Rely on system fonts only; do not use document fonts" in the Adobe PDF Document Properties dialog.
    Be well...

  • Embedding fonts into a component

    I have this weird issue where I am using a component
    (slideshowpro) and
    have it set to embed the font, but it is not doing it. I am
    wondering if
    there is anything else I can or if there might be a trick.
    Can I embed a
    font into the movie? I think I have done this before... Maybe
    that will
    do it?
    Thanks for any help with this!
    Brian

    Open the library panel. Click on the button in the upper
    right corner of the panel to toggle open the library menu. Select
    'New Font'. A new dialog window named “Font Symbol
    Properties” will appear. Click the double-arrow button to the
    right of the “Font:” field in the Font Symbol
    Properties dialog. Select the name of the font. Then, give your
    font a simple name in the “Name:” field. Leave all the
    other options alone. Click OK.
    Now Brian, this comes directly from the SSP_User_Guide.pdf
    included with the distribution of SlideShowPro...

  • Embedding fonts into movie

    Hi all I have a projector into which I embedded some fonts
    using the following commands: Insert>Media Element>Font. I
    chose the option to include the entire character set. After I
    embedded the fonts, all the spaces between the words in the movie
    shows up as square boxes. How can I fix this?

    Are you using a fancy, custom font downloaded from some free
    font website?... your problem sounds like there's simply no space
    character... the box is the default 'character glyph' used when the
    nothing exists at the position in the font file.

  • Embedding Fonts Into A PDF

    Hi There,
    I'm having trouble sending my files to the printers, my fonts is jumping...
    How do i make sure that my fonts are embedded into my PDF file,
    I'm using indesign cs5.5 Please can someone help me, I have distiller as well.
    Thank You
    Kind Regards

    Can you check one of your problematic PDFs with Acrobat? Go to the Document Properties dialog and check the "Fonts" tab. That way you can verify if your fonts are embedded.
    It's really straightforward: where Acrobat does *not* tell you a font is "(Embedded)" or "(Embedded subset)", that font is missing.
    If you find you are creating files without embedding all fonts, you need to review your workflow. As I said above, you might have switched off InDesign's warnings for this.
    Bear in mind it's also possible your PDFs are fine and it's your printer that needs to update.

  • NEED HELP EMBEDING FONT INTO MYSITE

    I have finish mysite and need to know how to embed my font.  I know about going to the library and clicking new font then going to linkage, but I dont know the action script to put into my actions panel. CAN ANYBODY HELP PLEASE. My font name is 1979

    Thx.  With the text.Format script do I have to call each size of that font if i use it, say 9pt and 7pt?  Thanks

  • Embedding fonts into applets

    hi im making a applet game and it has a custom font
    how can i embed the font so the user does not have to install it manually
    i read on page u can do this by adding it to the jar and pointing to it some how but they dint explain how
    is this possible or is there another way ? point to the font if i upload it or soming
    thx :)

    been playin with this for past few hours not getting any were just dont no java well enough to really understand whats going on
    all going over my head
    font is at http://www.auba18.dsl.pipex.com/fruitsim/AthleticTown.ttf
    my applet class files r at
    http://www.auba18.dsl.pipex.com/fruitsim/
    so same place as my font
    i just need the applet to some how load this font and display it were the other ones are grabbing "LCD"
    iv got a few pieces of code no idea which one to use or how to get them to compile properlty
    would some one be able to add the code in for me would really appreciate it thanks :)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.applet.*;
    import java.io.*;
    import java.io.InputStream;
    import java.net.URL;
    public class drawTopbox {
         private Applet parrentapp;
         JLabel imageLabel;
         ImageIcon ImageIcon;
         JLabel bronze = new JLabel("000.00");
         JLabel silver = new JLabel("000.00");
         JLabel gold = new JLabel("000.00");
         //InputStream in = getClass().getResourceAsStream("AthleticTown.ttf");
         //public static Font createFont(int in);
         //Font     font = Font.createFont(Font.TRUETYPE_FONT, in);
         //InputStream fis = new FileInputStream("font.ttf");
         //Font f = Font.createFont(Font.TRUETYPE_FONT, fis);
         public drawTopbox(Applet parrent, int maxSlots) {
              parrentapp = parrent;          
         try {
         URL url = new URL("AthleticTown.ttf");
         InputStream is = url.openStream();
         Font font = Font.createFont(Font.TRUETYPE_FONT, is);
          } catch (Exception e) {
          e.printStackTrace();
              // bronze
              bronze.setBounds(((187*maxSlots)/2)-99, 14 ,100, 50); 
              bronze.setFont(new Font(font, Font.PLAIN, 25));
              bronze.setForeground(Color.red);
              parrentapp.add(bronze);
              // silver
              silver.setBounds(((187*maxSlots)/2)-54, 45 ,100, 50); 
              silver.setFont(new Font("LCD", Font.PLAIN, 25));
              silver.setForeground(Color.red);
              parrentapp.add(silver);
              // gold
              gold.setBounds(((187*maxSlots)/2)-20, 9 ,200, 50); 
              gold.setFont(new Font("LCD", Font.PLAIN, 35));
              gold.setForeground(Color.red);
              parrentapp.add(gold);
              // background
              ImageIcon = new ImageIcon(parrentapp.getImage(parrentapp.getCodeBase(), "Images/topbox.gif"));
              imageLabel = new JLabel(ImageIcon);
              imageLabel.setBounds(((187*maxSlots)/2)-135, 0, 271, 100);
              parrentapp.add(imageLabel);
              parrentapp.setLayout(null);
         *     displayBronze                              *
         public void displayBronze(double value) {
              bronze.setText(String.valueOf(value) + "0");     
         *     displaySilver                              *
         public void displaySilver(double value) {
              silver.setText(String.valueOf(value) + "0");     
         *     displayGold                                   *
         public void displayGold(double value) {
              gold.setText(String.valueOf(value) + "0");     
         *     clearValue                                   *
         public void clearValue(int value) {
              switch (value) {
             case 0:
                        gold.setText("");     
                        break;
               case 1:
                        silver.setText("");     
                        break;
               case 2:
                        bronze.setText("");     
                        break;
    }silver and gold work fine (old way grabbing from pc)
    trying to convert bronze to work by grabbing font from my server

  • (How) can I use Embeded Fonts in Flex 3.3

    If I understand correctly, I need to transcode/embed the fonts in Flex 4 / CS 4, but is there any way to then get those embeded fonts into a Flex 3.3 application?

    Support for DefineFont4 (the cff property) is new in Flex Gumbo. It is not available in Flex 3.X. That said – I do have a solution for you. Create a separate Flex Gumbo project and use the cff property to embed the font you need into that SWF. Then embed the font SWF that you just created in Gumbo into your Flex 3.3 application.
    Check out the “Building a Font SWF for use in any Flash Application” section in my DefineFont4 blog post:
    http://blogs.adobe.com/tlf/2008/11/embedded_font_subsetting_using.html
    Here is an article on embedding a SWF in Flex:
    http://blog.flexexamples.com/2007/10/25/embedding-fonts-from-a-flash-swf-file-into-a-flex- application/
    Hope this helps!

  • 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

  • Spark DataGrid Embedded Font Quandary

    01.  In everything that follows, I am talking about the latest [21328] version of the SDK, not that I believe that my problems have anything to do with that release, just so anyone interested and willing to help will know the version.
    02.  My application happens to be rooted in AIR's WindowedApplication, but again, I do not think that has any impact on my problems; I believe the same results would obtain for a Flex Application.
    03.  I have a custom renderer for the Spark DataGrid which extends DefaultGridItemRenderer.  It works fine. Its primary job is to change the font characteristics of each row in the list as a visual clue to the user as to the specific nature of the content that is accessible.  Some entries are just in the Regular font, some in Bold, some in Italic, and some in Bold-Italic.
    04.  I have, for most of the project, embedded the necessary fonts like this:
        [Embed (source="C:/Windows/Fonts/ArnoPro-Caption.otf", fontName="ArnoPro_BI_4",
            fontStyle="italic",
            fontWeight="bold",
            mimeType="application/x-font",
            embedAsCFF="true",
            unicodeRange="U+0021-U+00ff, U+20ac-U+20ac")]
        private const ArnoPro_BI_4:Class;
    As I said, that all works just as advertized.  But, that method of embedding carries the somewhat painful burden of slower compilations, so for the last 24 hours I have unseccessfully been trying to replace that with:
    [Embed (source = "../resources/assets/ArnoPro_BI_4.swf", symbol="ArnoPro_BI_4")]
    private const ArnoPro_BI_4:Class;
    where the swf file was produced via fontswf, using this incantation:
    fontswf -4 -u U+0021-U+00ff,U+20ac-U+20ac -b -i -a ArnoPro_BI_4 -o ArnoPro_BI_4.swf C:/Windows/Fonts/ArnoPro-Caption.otf
    06.  By all that is holy, the two different means of embedding the font ought to yield the same result, but they do not.  I have debugging code inserted to print out the list of fonts upon initiation of the application, and they are identical.  Both means of embedding do succeed in getting the embedded fonts into the .swf, but the attempt to use the fonts fails using the second approach.
    There is, of course, no change being made to the code in the item renderer which merely uses setStyle() to effect the row-by-row result.  The result in the second case is that the only style of the embedded font that renders is 'regular'.
    07.  I have used the 'keep-generated' facility to look at the code being generated by the mxmlc compiler and can see that different code is emitted, but it does not help me find a fix to the problem.  Both forms of the meta-tag do something; both methods of embedding seem to correctly register themselves with the FontManager, but only the method of embedding which actually performs the transcoding during compilation seems to result in a set of registered fronts which can be found and correctly used to render output based on the runtime setting of the font style.

    Thank for the reply
    I hoped that my posting indicated how the fonts in the the .swf file were constructed.  The "-4", argument to the command-line tool, fontswf, as far as I can tell, is the precise analog to the "embedAsCFF" argument in the [Embed] syntax.  That is what makes it so perplexing.  Given all the external documentation that is available for each tool/methodology, I would have thought that the resultant bytecodes, classes, flags, whatever, would have been identical.  The only difference would be the timing of when the transcoding took place.
    Since it is clearly more efficient to only transcode whatever set of fonts an application needs once, not once per build/test turn-around, I would really like to make the fontswf workflow work.  For those of us outside the beneficial environment of your licensed tools, the kindly-provided alternative to the facilities built into Flash Professional and/or Flash Builder give us the greatest degree of productivity.
    Whoever has access to the source code for Font [I can only see the uninteresting FontAsset in the SDK] can probably determine what difference might result from mxmlc working with this intermediate output, when inline transcoding is 'tagged':
    package
    import mx.core.FontAsset;
    [ExcludeClass]
    [Embed(fontName="ArnoPro_IT_4", _resolvedSource="C:/WINDOWS/Fonts/ArnoPro-ItalicCaption.otf", fontStyle="italic", _line="1189", _pathsep="true", embedAsCFF="true", fontWeight="normal", unicodeRange="U+0021-U+00ff, U+20ac-U+20ac", source="C:/Windows/Fonts/ArnoPro-ItalicCaption.otf", _column="2", exportSymbol="AIRZoom_ArnoPro_IT_4", _file="G:/FP/AIRZoom/src/AIRZoom_AS.as", mimeType="application/x-font")]
    public class AIRZoom_ArnoPro_IT_4 extends mx.core.FontAsset
        public function AIRZoom_ArnoPro_IT_4()
            super();
    versus this, when swf extraction is 'tagged':
    package
    import mx.core.FontAsset;
    [ExcludeClass]
    [Embed(fontName="ArnoPro_IT_4", _resolvedSource="C:/WINDOWS/Fonts/ArnoPro-ItalicCaption.otf", fontStyle="italic", _line="1191", _pathsep="true", embedAsCFF="true", fontWeight="normal", unicodeRange="U+0021-U+00ff, U+20ac-U+20ac", source="C:/Windows/Fonts/ArnoPro-ItalicCaption.otf", _column="2", exportSymbol="AIRZoom_ArnoPro_IT_4", _file="G:/FP/AIRZoom/src/AIRZoom_AS.as", mimeType="application/x-font")]
    public class AIRZoom_ArnoPro_IT_4 extends mx.core.FontAsset
        public function AIRZoom_ArnoPro_IT_4()
            super();
    The only difference is that value for '_line' which probably only indicates that one of the two processes has a comment or empty line somewhere.

  • Problems with embedded font on spark RichText control

    « Hide
    I have an embedded font that appears correctly when used with Halo components, but when associated with the spark RichText component, it is not recognized.
    The embedded font is defined in css file, my css file
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/halo";
    @font-face {
    src:url("assets/fonts.swf");
    fontFamily: "Helvetica Neue";
    @font-face {
    src:url("assets/fonts.swf");
    fontFamily:"Helvetica Neue";
    fontWeight: bold;
    global{
    color:#333333;
    fontFamily: "Helvetica Neue";
    fontSize:12px;
    The embedded font it used in the following manner:
    <mx:Label styleName="panelTitle" text="Hello There"  width="263" x="21" y="11"/>
    <s:Group width="410" x="38" y="52" height="50">
    <s:RichText styleName="panelTitle" text="Hello There" fontFamily="Helvetica Neue"  width="263" x="21" y="11"/>
    </s:Group>
    The Label shows the embedded font correctly while the RichText control does not. It does not matter if the fontFamily is specified explicitly on the control or not.
    I created a bug SDK-22137, but since I'd need to get this working soon any help would be appreciated.

    Just a friendly reminder. Many of the examples on that site are fairly old and havent been updated to use the latest APIs. For example, "cff" has recently been renamed to "embedAsCFF". In fact, here's a better example:
    <?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/halo">
        <s:layout>
            <s:VerticalLayout paddingLeft="20" paddingTop="20" />
        </s:layout>
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            /* DefineFont3 (embedAsCFF == false) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgia;
                fontWeight: normal;
                embedAsCFF: false;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgia;
                fontWeight: bold;
                embedAsCFF: false;
            /* DefineFont4 (embedAsCFF == true) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: normal;
                embedAsCFF: true;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: bold;
                embedAsCFF: true;
            mx|Label {
                fontFamily: embGeorgia;
            s|RichText {
                fontFamily: embGeorgiaCFF;
                fontLookup: embeddedCFF;
        </fx:Style>
        <mx:Label text="Halo Label" />
        <mx:Label text="Halo Label (bold)" fontWeight="bold" />
        <s:RichText text="Spark RichText" />
        <s:RichText text="Spark RichText (bold)" fontWeight="bold" />
    </s:Application>
    Also, depending on what you're trying to do, this may help you: http://blog.flexexamples.com/2009/06/14/using-a-cff-embedded-font-with-a-halo-label-contro l-in-flex-4/. Basically, you can set the textFieldClass style on certain Halo controls and have them use the mx.core.UITLFTextFieldClass (instead of the default mx.core.UITextFieldClass) so they can take advantage of the new CFF fonts.
    In fact, here's the same example as above, but with the single embedded font:
    <?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/halo">
        <s:layout>
            <s:VerticalLayout paddingLeft="20" paddingTop="20" />
        </s:layout>
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            /* DefineFont4 (embedAsCFF == true) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: normal;
                embedAsCFF: true;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: bold;
                embedAsCFF: true;
            mx|Label {
                fontFamily: embGeorgiaCFF;
                textFieldClass: ClassReference("mx.core.UITLFTextField");
            s|RichText {
                fontFamily: embGeorgiaCFF;
                fontLookup: embeddedCFF;
        </fx:Style>
        <mx:Label text="Halo Label" />
        <mx:Label text="Halo Label (bold)" fontWeight="bold" />
        <s:RichText text="Spark RichText" />
        <s:RichText text="Spark RichText (bold)" fontWeight="bold" />
    </s:Application>
    Peter

  • Using embedded fonts

    Hi,
    I've embedded font into an SWF in the following manner:
    package resources.fonts
    import flash.display.Sprite;
    public class _Arial extends Sprite
    [Embed(source='c:/windows/fonts/Arial.ttf',
    fontName='_Arial')]
    public static var _Arial:Class;
    Now when I try to load it in my AIR app, I get "IFlexAsset
    could not be found" error when the file gets loaded. Any
    ideas?

    @Flex, thanks. I have tried, and succeeded in making swf containers for fonts in various ways including using the fontswf app but they never seem to be used after I have loaded them in the main application. I have asked a couple of questions here:
    http://stackoverflow.com/questions/12846752/embedded-font-flash-text-engine There doesn't seem to be any error message, the font just 'silently' isn't used. Do you think that it just isn't possible? The documentation I've been able to dig up all seems to indicate that it should be; including the sentence I quote above.

  • How to show embedded and not embedded font in TextField at the same time?

    Hi guys,
    I need to show embedded and not embedded font in my TextField at the same time. TextField has embedFonts = true and isHTML = true.
    Any ideas?

    Two different font won't work for me because I need to support all UTF glyphs.
    Idea with two TextFields one on top of other seems to be working. The only problem I see here - if half string is Chinese and hand Latin - then it will be quite problematic to properly position text...

  • Embedding swf into HTML+JS AIR app

    Hi
    I'm trying to embed swf into HTML+JS AIR app with no luck.
    First, I created flash library with this class in default package.
    package
         import mx.controls.Alert;
         public class Utilities
              public function Utilities()
                             //asdfasdf              
                   Alert.show("asdasd","");
    Then I compiled the project with Flash Builder and got library.swc as result. Then I extracted swf file.
    After this is added required code into my html:
    <html>
    <head>
        <script type="text/javascript" src="AIRAliases.js"></script>
        <script type="text/javascript" src="AIRIntrospector.js"></script>
        <script type="text/javascript" src="jquery-1.6.2.js"></script>
        <script src="library.swf" type="application/x-shockwave-flash"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                alert('loaded');
                air.Introspector.logError("aaa");
                var v = new runtime.Utilities();
        </script>
    </head>
    <body>
    </body>
    </html>
    Then after I run application, I get error that result of expression is not constructor, function etc.
    Could you help me please?  Thanks in advance.
    Here is sample code:
    http://depositfiles.com/files/jztpnlb3a

    No. I mean that the Flex framework makes certain assumptions about the environment it is running in -- like having a stage to work with. The Alert function, for example, works by creating a sprite and adding it to the Flash display list. Since your embedded SWF is not on a stage, there's no way for it to work.
    You can can possibly use certain non-visual parts of the framework, such as the rpc package, but I can't guarantee it.

  • Apply html tag to embedded fonts

    hi,
    i have a textfield, i embedded fonts and assigned htmlText, i.e.
    txt.embedFonts = true;
    txt.htmlText      = '<b>my text </b>';
    but it doesnt aplly html tags because of embedFonts... i tried to make style using css but didnt work....
    is there any way to accomplish this?

    I dont know it its possible in this way. I would load a text file with the html and another with the style as described here  :
    http://www.republicofcode.com/tutorials/flash/as3css/

Maybe you are looking for

  • How to move an App from one mac to DPS App builder on another mac

    When I try to download the Developer app, after adding new UDIDs to the provisioning certificate, I get an error stating the app was built on a different machine. Everything works great when completed from the original Mac that I did the build on. (t

  • How to measure the InfoCube size?

    can any body help me regarding this how to measure the info cube size?

  • 2LIS_11_V_ITM: Adding field AUART

    The extractor 2LIS_11_V_ITM does not contain the field AUART and this field can not be added via LBWE. The field is mentioned in MCVBAK but in table TMCEXCFS the state is 'F', indicating that filling is not allowed. I do not understand why a field is

  • Gutted

    Dropped my C7 yesterday. About a 30cm drop onto a hard surface. Until this happened, it was in immaculate condition because I've always kept it inside a protective wallet, but unfortunately it landed right on the top corner where the phone isn't prot

  • Information broadcasting  - precalculation error for BEx workbooks

    Hi, i have problem with Information broadcasting for BEx workbooks 7.0. At the log display of transaction RSRD_ADMIN i get a red status message with " Cannot precalculate workbook XYZ" -> connection transfer did not succeeded. At the transaction RSPR