Embeded font in swf is giving error

i am trying like crazy to embed one more font into a swf for
my application to access. What kills me is the first font in my css
has no problems. The second one does have issues. I am sure they
are added to the swf in the same way:
- made a text field,
-embeded the font to the field
- typed in some stuff to be sure it works when compiling the
font.swf
-added font to Library
-gave class names (Font1,AA)
the errors i get are:
-font 'AA' with normal weight and regular style not found
-Unable to transcode fnt/CiscoFonts.swf.
btw, AA is just simply Arial

well...not sure what that is about, but i simply embeded the
trouble font into a new swf and changed fonts.swf to
extrafont.swf...and it worked.
Flex is too unpredictable

Similar Messages

  • Help with embedding fonts in swf file

    Hi, I am haviing a problem with my fonts displaying in my swf file. I created the flash site using CS4 on a mac. I thought the fonts were embedded but when I tested the swf in safari and firefox the fonts disappeared are all scrunched up in 1/2" on top of each other in several lines. Its a mess. It is displaying in times or some other font when viewed in on a pc browser.
    What I did so far that did not work:
    Made fonts static with animation
    made fonts dynamic with animation
    How can I fix this?
    I am still a beginner using flash so the simpler the option the better.
    Thanks!!!

    there are quite a few ways you could mess this up but no one way that's typical.
    create a new fla.  click on the text tool, select static in the combobox and add a textfield to the stage.  animate it.  test it.  any problems?
    any other way (or ordering of steps) you use to create static text is prone to problems.

  • Embedding fonts as SWF

    Hi all,
    I am working on a mobile actionsxcript project and am having trouble embedding some fonts. The fonts are embedded in SWF files as only a small subset is needed and I am trying to embed the SWF files in my AS build and then access the fonts via their linkage names.
    I am not having any luck but am not really sure of the exact approach here so if anyone can shed any light or provide a tutorial/example that would be great as I am about to start banging my head on stuff.
    I am embedding the font swf like this:
    [Embed(source="assets/newfonts/FontFile.swf", symbol="fontInstanceName")]
    public var FontBold:Class;
    I assume I need to construct an instance and cast it before I can use the font (maybe wrong about this) but am unsure of the details.
    Thanks in advance for any help.

    Turns out to be really (embarressingly) simple and I'm not sure how it took me so long to get working.
    Add a new font to the library in Flash.
    Give it a linkage name and set it to export for actionscript.
    Publish the SWF
    Embed the swf in the actionscript project using [Embed(source="assets/newfonts/FontLib.swf", symbol="TestFontBold")]public var TestFontBold:Class;
    Set the 'symbol' parameter in the embed tag to be the flash linkage name of the font.
    Create a TextFormat object
    Create a Font object - var newFont:Font = new TestFontBold();
    Set myTextFormat.font = TestFontBold.fontName;
    Apply the TextFormat as usual.
    No idea how I had so much trouble with this when it is so obvious and straighforward. Oh well, that's often the case (with me at least)
    Cheers

  • Embedded font and Combobox

    Hello All,
    Scenario of my application: Application have combobox filled with fonts list. When user select font from combobox. Application load font swf from server and apply to text.
    I have embedded fonts in SWF using css.
    @font-face {   
        src: url("assets/fonts/arial.ttf");   
        fontFamily: "Arial";   
        fontWeight: "normal";   
        embedAsCFF: true;   
    here is code snippet to load font from server.
    var eventDesi:IEventDispatcher = styleManager.loadStyleDeclarations2(fontStyleName.@swfURL);
                eventDesi.addEventListener(StyleEvent.ERROR,function(event:StyleEvent):void{
                    Alert.show("error while downloading font " + fontStyleName.@name);
                eventDesi.addEventListener(StyleEvent.COMPLETE,function(event:StyleEvent):void{
                    fontStyleName.@isDownloaded == "true";
                   if(functionToCall != null)
                        functionToCall.call();   
    Problem:
    When I select font arial form combobox all list of fonts,tool tips are get disappear. My primary exploration is combobox has arial font and I am loading again arial and registering it. This may be the cause.
    Is there any way to set embeded font to any control?
    Thanks,
    Vikram

    Hi,
    Follow this tutorial and use the code below..
    http://www.designscripting.com/2011/06/as3-combobox-font-embedding-problem-flash-cs5/
    var arial:Font = new ArialFont();
    var myFormatBlack:TextFormat = new TextFormat();
    myFormatBlack.font = arial.fontName;
    myFormatBlack.size = 18;
    myFormatBlack.color = 0x000000;
    myComboBox.textField.setStyle("embedFonts", true);
    myComboBox.textField.setStyle("textFormat", myFormatBlack);
    myComboBox.dropdown.setRendererStyle("embedFonts", true);
    myComboBox.dropdown.setRendererStyle("textFormat", myFormatBlack);
    myComboBox.setStyle("embedFonts", true);
    myComboBox.setStyle("textFormat", myFormatBlack);
    myComboBox.prompt = "Select State";
    myComboBox.width = 248;
    myComboBox.height = 25;
    myComboBox.x = 100
    myComboBox.y = 100
    myComboBox.setStyle("textPadding", 1);

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

  • Error message from Adobe Reader. cannot extract the embedded font 'LICCMC+MyriadPro-Light'. some characters may not display or print correctly. Print looks like gibberish

    Trying to view/print PDF documents from website. Print looks like gibberish and is unreadable. Problem is with the embedded fonts. Error message from Adobe says cannot extract the embedded font 'LICCMC+MyriadPro-Light'. some characters may not display or print correctly.

    Try Adobe support, that's not a Firefox support issue. <br />
    http://forums.adobe.com/index.jspa

  • Why do PDFs created with some print presets show the error message "cannot extract embedded font."

    Whenever I create a pdf from InDesign using a press-quality preset, I get an error message upon opening the file. The error message says that an embedded font cannot be extracted.
    InDesign indicates the font is not present in the file.
    In Acrobat's properties, the font in the error message is listed and shows that it is not embedded, and that the actual font is unknown.
    Running the "embed fonts" from preflight fixups doesn't help.

    Found this fix in Preflight: Under prepress, I selected my destination, which is sheetfed offpress (CMYK) and ran the analyze and fix. The updated file opened without the error message.

  • Embedded font errors after migrating pdfs to new web server

    Hi All,
    After hundreds of working pdfs were moved to new web server, they produce variations of the "cannot extract the embedded font" (name of font) "some characters may not display or print correctly" error. The first page loads perfectly and the rest never load. All these files open fine when I open local copies in Reader (9.1.3) and Professional (7.1.0).They also open fine when moved to another server. When I delete copies on the server and re-upload using the working copies, the errors persist. Doesn't make sense. I also occasionally get the error "there were problems reading this document (14)".
    I was told by the IT department that a possible cause was that the new server environment used fonts installed on the server rather than the local machine to display pdfs.  This doesn't make sense to me.  I've researched these errors and haven't found anything applicable or that has worked. Any suggestions? Has anyone else expeienced this?
    The server is IIS and is running ASP.net. The IT dudes are saying they need to install all the refferenced fonts on the web server but due to the expense of this, they can't.This will nessecitate a really bizzarre and Rube Goldbergesque workaround (that I'm not even going to try to explain here) that I'd really like to avoid.  Any suggestions? Are there any Acrobat settings that need to be twekaed?

    Hi,
    I read the following on another discussion in this forum:
    it appears that with the shortkey ctrl+shift+Y you can force the pc to work around the system fonts
    Maybe that helps.
    Jenny

  • Get the "cannot extract embedded fonts" error message

    I get the "Cannot extract embedded font 'UZNVZW+HElveticaNeueLTStd-Hv-Identity-H'. Some characters may not display or print correctly." error message when I generate a PDF from MadCap Flare or Frame Maker. I am on Windows 8 64-bit / Adobe Acrobat 11 / FrameMaker 9 / MAdCap Flare 9.
    When I do the same task on a Windows 7 system, works like a whistle.
    I am looking at a solution and no workarounds.
    Regards,
    AxDe

    Hi hartmanja14,
    Please let me know if this is happening with all PDFs or any specific document?
    Also, tell me if that document has been created by any third party or not.
    Regards,
    Anubha

  • [svn] 1384: Splitting DefineFont into the various DefineFont 1, 2, 3, etc SWF tag formats but retaining a common base DefineFont class so that embedded fonts are still retained as symbols for the SWF dictionary no matter what version of the SWF tag is us

    Revision: 1384
    Author: [email protected]
    Date: 2008-04-24 07:54:58 -0700 (Thu, 24 Apr 2008)
    Log Message:
    Splitting DefineFont into the various DefineFont 1, 2, 3, etc SWF tag formats but retaining a common base DefineFont class so that embedded fonts are still retained as symbols for the SWF dictionary no matter what version of the SWF tag is used.
    Also improving [Embed] so that it can recognize .TTC files as assets (previously these were only recognized through CSS @font-face rules).
    QE: Yes, please add a test case for using [Embed] to embed fonts from a TTC file in addition to our tests for @font-face. Note that the AFEFontManager must be configured for this scenario.
    Doc: No
    Checkintests: Pass
    Mxunit: AtEmbed Font suite: Pass
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/AbstractTranscoder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/FontTranscoder.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/MimeMappings.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/CachedFontManager.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/Dictionary.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/MovieEncoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagDecoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagEncoder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagHandler.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagValues.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/builder/tags/FontBuilder.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFontAlignZones.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFontInfo.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tools/SwfxPrinter.java
    Added Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/DefineFont3Face.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont1.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont2.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont3.java
    flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont4.java
    Removed Paths:
    flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/DefineFontFace.java

    Running the script by python2 solves it for me:
    su - mythtv -c "nice -n 19 python2 /usr/bin/tv_grab_nl_py --output ~/listings.xml"
    Best regards,
    Cedric

  • ASDoc Error: Can't find Embedded Fonts?

    Hello,
    I am working in Flash CS5 Professional.
    On my stage, I have a dynamic TextField (my_txt) that uses a basic font, we'll say Arial. However, I want to format some of the text within the field with a custom font.
    I've embedded the font and exported to ActionScript as per Adobe's documentation, so now there is a Font item in my library named "MyCustomFont".
    The properties of the Font are -
    Class: MyCustomFont
    Base Class: flash.text.Font
    So, I've written a custom class file and I want to format the text, so the AS code within the class looks something like this:
    var my_font:Font = new MyCustomFont();
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.font = my_font.fontName;
    my_txt.setTextFormat(my_fmt, 5, 15);
    This is pretty much like the examples I've seen in Adobe Docs. And, it works swimmingly when I test the movie; however, when I try to document the class using the ASDoc command line tool, I get the error:
    /Path/To/Project/And/The/Classes/SomeClass.as(221): col: 27 Error: Call to a possibly undefined method MyCustomFont.
                var my_font:Font = new MyCustomFont();
                                       ^
    I THINK I understand why ASDoc isn't finding the "method" MyCustomFont... the "method" is actually a Class contained in the Library within the .fla.
    So, is there a special argument I need to write in the ASDoc command line so that it will recognize embedded fonts?
    Or, am I supposed to use an "import" statement in SomeClass to import the embedded fonts somehow?
    Thanks!

    Ahhh...found the answer, do the same thing as I would do for any project that uses the built-in AS3 components (such as FLVPlayback):
    Put the Font items into a new .fla library and export a SWC.
    Then use the "-library-path /Path/to/SWC" argument in the ASDoc command line tool.

  • AIR 3.0 mx:HTML embedded fonts in external swf - silent craziness

    The recent upgrade to AIR 3.0 has hosed our application.  We rely heavily on an mx:HTML control to render the UI of our application using javascript and HTML templates.  Everything has been working great in production for months, until Adobe released AIR 3.0 last week.  We use embedded fonts in our application that our defined in an external .swf (loaded at runtime).  The HTML control loads a .css file that references the name of our embedded font "ArialEmbedded" and it all worked great.  But now, with 3.0 it does not respect anything in the external .swf.  We get the default Times New Roman font in all of our content, and the app crashes with reliability (in debug mode and release mode) without any exceptions being thrown.
    Using the Windows Debugger, I have been able to track it down to this call consistently - Webkit!cairo_pattern_get_type with an Access Violation erros - c0000005 . 
    After some Googling, it seems webkit uses Cairo for the graphics rendering portion of the library, and in this case it is trying to render a specific color.
    1) I've tried forcing the moduleLoader on the HTML control to use the moduleLoader of the parent Spark component - to no avail.
    2) Did something change with style management and loading external .swf files?
    3) Any other help?  At this point, I have no idea where to begin.  When it crashes, usually during the rendering of items in a grid the AIR process will grab about 2GB of RAM all at once and then stop working with the windows process stopped working dialog.
    Thanks for any help,
    Steve

    Hi,
    Could you please open a new bug report on this over at bugbase.adobe.com? Please include sample media, code, project or app to help us reproduce the issue. Finally, once the bug has been added, would you mind posting back with the URL so that others affected can add their votes and comments?
    Thanks,
    Jian
    Adobe Flash Runtime team

  • Error message: "Cannot extract the embedded font DAAAAA+Arial MT..."

    hello,
    after open an pdf file I get the error message "Cannot extract the embedded font DAAAAA+Arial MT..." I get this message with Adobe Reader Version 6.x, 7.x, 8.x and 9.0 on three different pc (Windows XP). The file was written with Adobe Acrobat Version 8.1
    I found the kb402950 but the solution to use Version 7.x didn`t work.
    Any other ideas?

    Hey k%20street,
    There seems to be a font issue within this particular file, but you cannot do anything using only Reader.
    So, as long as it displays correctly, there should be no problem with printing. It is simply a warning that apparently something was a miss in an embedded font and result might not be as expected.
    Regards,
    Anubha

  • Embedded font errors (must be a bug)

    In a project I've been working on we are unable to use the design view because there's something wrong with embedding fonts. I have embedded to fonts via a CSS style sheet and as soon as I referenced that stylesheet in a component I get the following errors
    Description    Resource    Path    Location    Type
    unable to resolve 'assets/css/assets/fonts/MYRIADWEBPRO-BOLD.TTF' for transcoding    lmtools        line 14    Flex Style Problem
    unable to resolve 'assets/css/assets/fonts/myriadwebpro.ttf' for transcoding    lmtools        line 17    Flex Style Problem
    unable to resolve 'assets/css/assets/fonts/myriadwebpro.ttf' for transcoding    lmtools old        line 12    Flex Style Problem
    Unable to transcode assets/css/assets/fonts/MYRIADWEBPRO-BOLD.TTF.    lmtools        line 14    Flex Style Problem
    Unable to transcode assets/css/assets/fonts/myriadwebpro.ttf.    lmtools        line 17    Flex Style Problem
    Unable to transcode assets/css/assets/fonts/myriadwebpro.ttf.    lmtools old        line 12    Flex Style Problem
    I can clean the project and clear these errors then compile and run the application where the fonts showed just fine. However if I then rebuild the design view the errors return and design view remains unusable.
    Has anyone else experienced this or can anyone help?
    ( build number 272416 )
    Thank you,
    Rob

    Err, so where's the problem, Herb?
    It's normal that Logic just displays one staff if you select a track. Just double click somwhere on a "blank piece of paper" inside the score window, and you'll be switched back to all instruments.
    Fox

  • 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

Maybe you are looking for