Embedding fonts from swf error

Hey, I'm tring to embed a font postscript called Frutiger with a style of "Black 75". I use Flash, and add a dynamic text with the said area police (with text) and then incorporate the police then export the swf file. In Flex, I create a css file with:

@font-face
{
SRC:URL("..) ("/ fonts/Frutiger1.swf");
fontFamily: "Frutiger";

}

I also tried Frutiger 55 Roman, Frutiger 75 Black for fontFamily name, but I get the same error:

Police "Frutiger" with a weight of normal and regular style not found.

I even tried to use flash cs3 as I read that he has no problems with the fonts as of cs4, but even the flash cs3 could not display Frutiger with a "Black 75" style in the font list. the I read so many forums on this and tried so many solutions, workaround, but in vain. If someone has solved this?

Thanks in advance...

-Mike

Try this syntax instead:

[Embed (source = "embedfonts.swf", fontName = "Freestyle Script", fontStyle = "italic", fontWeight is"fat")]

public static var freestyleBoldItalic: Class;

Tags: Flex

Similar Questions

  • Question of embedding fonts when SWF is loaded into the charger

    Hello.

    I ran into a problem of the incorporation of police where all the text fields with embedded police disappear when the SWF file is loaded as a child into a parent SWF. When the SWF file is read directly as stand-alone or inside a container of page HTML, text fields display perfectly with embedded fonts. Just not if the SWF is loaded into another SWF. It's basically the way I joined the police:

    [Inside the document class]

    [Embed (source="/Library/Fonts/Arial.ttf", fontName = "FontVerdana", mimeType ="application/x-font-truetype")]

    public static FontVerdana: Class const;

    var theFont * = new FontVerdana();

    var myText:TextField = new TextField();

    var fmt:TextFormat = new TextFormat();

    FMT.font = theFont;

    myText.embedFonts = true;

    myText.setTextFormat (fmt);

    Incidentally, I either work on a Mac using Flex 3.5. Anyone encountered this problem? What can be done to fix this?

    See you soon,.

    Harry

    Check out my blog on embedded fonts

    --

    Alex Harui

    Flex SDK Team

    Adobe System, Inc..

    http://blogs.Adobe.com/aharui

  • Remove an embeded font from a PDF file

    Hi guys

    I have a bunch of PDF files where I need to remove a font sertant for copyright reason.

    When I use PDF Optimization and cancellation of embedding the fonts, it replaces the police with one another across in the PDF, but when I open the optimized PDF file and check properties, he said that the police is

    Embeded.

    How can I completely remove the embeded font? and is it possible, where I can choose the substitute font?

    Another solution of course would be to transform all text to images, but the quality is simply misuse.

    I use Adobe Pro IX for Windows 8.1 (64-bit)

    Why do you think that it is always integrated?

    The latter appears in the file properties > because it is defined as the font to use when ripping the file, but unless Scripture says it is integrated, it is only a reference to name the list fonts.

  • Convert to PDF from word, the fonts are not included, the word doc record embedded fonts, but conversion does not incorporate fonts?  What should I do to get the embedded fonts?

    Convert to PDF from word, the fonts are not included, the word doc record embedded fonts, but conversion does not incorporate fonts?  What should I do to get the embedded fonts?

    I used times new roman in word 2013.  New file.  Apparently the version of adobe that I use will not incorporate.  I use the version line.  I was told that I have to upgrade to Adobe Pro.  I'm dealing with a patent application, so I can't share the document.  The patent office cannot accept that documents with embedded fonts.  My drawings that have been scanned and then converted are a problem too because I get an error based on the size of the page (23.6 "x 32.4") and I am unable to reduce this size in files from Adobe.com.

    Unfortunately I signed up for this product that get these two converted documents and uploaded only to discover that the conversions will not download.

  • CS6 - fonts embedded in external swf loaded--lack of characters

    I created a SWF with some embedded fonts, and nothing else. I put all the fonts to export for Actionscript. When I load the external police, I call Font.registerFont () on each of the classes of this SWF fonts. The fonts work, but several characters are missing from the police.

    However, if I incorporate the same fonts in the main swf file that has the textfields instead of their loading from an external swf, all characters appear as expected.

    The alternative is for me to integrate several fonts in several other SWFs to be redundant.

    This seems to be a serious bug in Flash. I like it if it's not, and I'm doing something wrong. Adobe, are you listening?

    That's why I approach to code for 98% of all projects. My TextFields are that all formatted using the TextFormat class. I embed or load a SWC with the fonts in the main project and whatever other charges have use fonts that I loaded only once in the main application.

    Consider that there are also Runtime shared as an option for you. This is where you mark all your fonts in a Font.FLA export as shared runtime. Then just create the same fonts in your other parts of the user interface, but to import from the file shared time. Then you can work on the separate user interface components while still seeing the correct font.

    System code page simply means that if I'm on an English Windows copy then which will be the language that Flash considers most important. If I try to embed Arial and then programmatically create and populate a TextField with Chinese, it won't work, nothing will be displayed. Even though I explicitly tell Flash to include Chinese glyphs (which certainly exist in Arial). Because I can not specify the unicode range I need and force it as Flash Builder, Flash "magically internally" decide everything I need is English (latin) glyphs and wouldn't integrate the Chinese glyphs. This magical behavior was always a pain.

  • Embedding fonts is embeded swf

    Hey, I have a big problem with embedding the fonts.

    I have a swf file which embeded in an another SWF (for security code).

    In the first swf file, I have some for Tlf embeded fonts and it works fine but after Im points in another swf file:

    [Embed (source = "main.swf", mimeType = "application/octet-stream")]

    All the fonts that have been shipped are not shown and replaced by the default system font.

    How can I fix it and make fonts work?

    your tlf containing the swf must use the runtime library settings link shared "merged into code", not "runtime shared library.

  • Flex 4 Embed fonts in flash swf VS embedding fonts in Adobe flex

    I have this dilemma... What is the best way to embed fonts?

    In flash, I can easily integrate fonts + strings of characters that I need the menu, export the swf file and then use it in flex.

    I don't see an easy way to define the character ranges in flex. How can I get the values that I need? I read that the format is U + (beginning of range)-(end of range) but where I take beginning and end of the beach of?

    Thanks in advance.

    Search for the file "flash-unicode - table.xml" in your Flex SDK installation folder (he sits next to 'flex-config' file)

    "Flash-unicode - table.xml" contains various language of the character ranges that you can find convenient.

    More on this can be read here http://frankieloscavio.blogspot.com/2008/01/flex-embedded-fonts-more-control-over.html

  • question of Embeded fonts

    Someone can asnwer the following about the fonts embedded in a Flex 4 (component) application:

    1. is the file of the same font for Macintosh and Windows-based computers?

    2. embedded fonts look as good as system fonts?

    Thank you.

    I'm not sure that understand #1.  Data from the specified font file is copied

    in the SWF file and used by the player to display fonts on all platforms.  The

    OS is not delivered the file to make the rendering of the fonts.

    Embedded fonts are the only way to ensure consistency between platforms

    and machines.  If someone does not have the policy that you want to use, on most

    Operating systems, you will get an approximation of the police.  Display of built-in police

    quality is not controlled by the options of smoothing of the fonts on the user's computer.

    You should see what looks like a font not incorporated during a rotation on XP with

    font-smoothing off the coast.

  • Embedding fonts

    I have a program and use it dynamic text. This text, I use a special font CAMPFIRE.ttf.

    Many users do not have this font on their pc, but I want so they open my .swf and see this font.

    For this I use the following code:

    var fooFont:foo = new foo();
                   var format:TextFormat = new TextFormat();
                   format.font=fooFont.fontName;
                   format.color=0xFF0000;
                   format.size = 100;
                   levelNumbers.height += 100;
                   levelNumbers.embedFonts=true;
                   levelNumbers.autoSize = TextFieldAutoSize.CENTER;
                   levelNumbers.antiAliasType=AntiAliasType.ADVANCED;
                   levelNumbers.defaultTextFormat=format;
    

    but I don't see my correct dynamic text. I see strange space on top, do not see the lower part of the text.

    Preview of the photo:

    e.png

    Can someone help please or any other way how to make main idea to offer what I need?

    All the code here:

    package {
    
         import flash.events.*;
         import flash.display.*;
         import flash.text.TextField;
         
         import flash.text.TextFormat;
         import flash.text.TextFieldAutoSize;
         import flash.text.AntiAliasType;
    
         public class GuessNumber extends MovieClip 
         {
              var guessNumber:Number;
              var points:Number = 0;     
              var level:Number = 1;
              var lastGuessNumber:Number = 5;
              
              //constructor
              public function GuessNumber() 
              {
                   beginScreen();
              }
              
              public function beginScreen():void
              {
                   gotoAndStop('beginScreen');
                   playBtn.addEventListener(MouseEvent.CLICK, startGame);
                   
                   howToPlay_mc.visible = false;
                   moreGames_mc.visible = false;
                   thanks_mc.visible = false;
                   
                   howToPlayBtn.addEventListener(MouseEvent.CLICK, howToPlayScreen);
                   moreGamesBtn.addEventListener(MouseEvent.CLICK, moreGamesScreen);
                   thanksBtn.addEventListener(MouseEvent.CLICK, thanksScreen);
              }
              
              public function startGame(event:MouseEvent):void
              {
                   generateNumber();
              }
              
              public function generateNumber(e:Event = null):void 
              {
                   gotoAndStop('gameScreen');
                   trace("****** Welcome Screen *********");
                   pointsView.text = "0";
                   levelView.text = "1";
                   addEventListener(Event.ADDED_TO_STAGE, startGuess);
                   startGuess();
              }
              
              public function howToPlayScreen(event:MouseEvent):void
              {
                   trace("Open 'How to play screen'");
                   howToPlay_mc.closeBtn.addEventListener(MouseEvent.CLICK, closeHowToPlayScreen);
                   
                   howToPlayBtn.mouseEnabled = false;
                   moreGamesBtn.mouseEnabled = false;
                   thanksBtn.mouseEnabled = false;
                   
                   howToPlayBtn.alpha = 1;
                   moreGamesBtn.alpha = 0.5;
                   thanksBtn.alpha = 0.5;
                   
                   howToPlay_mc.visible = true;
                   moreGames_mc.visible = false;
                   thanks_mc.visible = false;
              }
              public function moreGamesScreen(event:MouseEvent):void
              {
                   trace("Open 'More games screen'");
                   moreGames_mc.closeBtn.addEventListener(MouseEvent.CLICK, closeMoreGamesScreen);
                   
                   howToPlayBtn.mouseEnabled = false;
                   moreGamesBtn.mouseEnabled = false;
                   thanksBtn.mouseEnabled = false;
                   
                   howToPlayBtn.alpha = 0.5;
                   moreGamesBtn.alpha = 1;
                   thanksBtn.alpha = 0.5;
                   
                   howToPlay_mc.visible = false;
                   moreGames_mc.visible = true;
                   thanks_mc.visible = false;
              }
              public function thanksScreen(event:MouseEvent):void
              {
                   trace("Open 'Thanks screen'");
                   thanks_mc.closeBtn.addEventListener(MouseEvent.CLICK, closeThanksScreen);
                   
                   howToPlayBtn.mouseEnabled = false;
                   moreGamesBtn.mouseEnabled = false;
                   thanksBtn.mouseEnabled = false;
                   
                   howToPlayBtn.alpha = 0.5;
                   moreGamesBtn.alpha = 0.5;
                   thanksBtn.alpha = 1;
                   
                   howToPlay_mc.visible = false;
                   moreGames_mc.visible = false;
                   thanks_mc.visible = true;
              }
              public function closeHowToPlayScreen(event:MouseEvent):void
              {
                   howToPlay_mc.visible = false;
                   trace("Close 'How to play screen'");
                   
                   howToPlayBtn.mouseEnabled = true;
                   moreGamesBtn.mouseEnabled = true;
                   thanksBtn.mouseEnabled = true;
                   
                   howToPlayBtn.alpha = 1;
                   moreGamesBtn.alpha = 1;
                   thanksBtn.alpha = 1;
              }
              public function closeMoreGamesScreen(event:MouseEvent):void
              {
                   moreGames_mc.visible = false;
                   trace("Close 'More games screen'");
                   
                   howToPlayBtn.mouseEnabled = true;
                   moreGamesBtn.mouseEnabled = true;
                   thanksBtn.mouseEnabled = true;
                   
                   howToPlayBtn.alpha = 1;
                   moreGamesBtn.alpha = 1;
                   thanksBtn.alpha = 1;
              }
              public function closeThanksScreen(event:MouseEvent):void
              {
                   thanks_mc.visible = false;
                   trace("Close 'How to play screen'");
                   
                   howToPlayBtn.mouseEnabled = true;
                   moreGamesBtn.mouseEnabled = true;
                   thanksBtn.mouseEnabled = true;
                   
                   howToPlayBtn.alpha = 1;
                   moreGamesBtn.alpha = 1;
                   thanksBtn.alpha = 1;
              }
              
              public function startGuess(e:Event = null):void 
              {
                   trace("**** Starting Guess ****");
                   guessBtn.enabled = true;
                   guessBtn.visible = true;
                   nextLevelBtn.enabled = false;
                   nextLevelBtn.visible = false;
                   
                   var fooFont:foo = new foo();
                   var format:TextFormat = new TextFormat();
                   format.font=fooFont.fontName;
                   format.color=0xFF0000;
                   format.size = 100;
                   levelNumbers.height += 100;
                   levelNumbers.embedFonts=true;
                   levelNumbers.autoSize = TextFieldAutoSize.CENTER;
                   levelNumbers.antiAliasType=AntiAliasType.ADVANCED;
                   levelNumbers.defaultTextFormat=format;
                   
                   levelNumbers.text = String(lastGuessNumber);
                   trace("Guessed number beetween 1 and " + lastGuessNumber);
                   yourGuessText.text = "";
                   levelView.text = String(level);
                   trace("Now Level: " + level);
                   pointsView.text = String(points);
                   trace("Player Points: " + points);
                   
                   guessNumber=Math.ceil(Math.random()*lastGuessNumber);
                   trace("Guessed number: " + guessNumber);
                   
                   removeEventListener(Event.ADDED_TO_STAGE,startGuess);
                   guessBtn.addEventListener(MouseEvent.CLICK,checkingYourGuess);
              }
              
              public function checkingYourGuess(e:MouseEvent):void 
              {
                   if (yourGuessText.length == 0) 
                   {
                        trace("need enter something");
                        outputText.text="please enter a number beetween 1 and " + lastGuessNumber;
                        return;
                   }               
                   
                   if (guessNumber == Number(yourGuessText.text)) 
                   {
                        outputText.text = "You are GUESS!!!";
                        trace("Guess!");
                        points += 100;
                        trace("Player earn: " + points + " points!");
                        trace("+++++++++++++++++++++++++");
                        trace("go to the next level?");
                        nextLevelBtn.visible = true;
                        guessBtn.visible = false;
                        winGame();
                   } 
                   else if (guessNumber > Number(yourGuessText.text)) 
                   {
                        points -= 20;
                        pointsView.text = String(points);
                        trace("-20 points, need MORE");
                        outputText.text = "need MORE, try again please";
                   } 
                   else if (guessNumber < Number(yourGuessText.text) && (Number(yourGuessText.text)<= lastGuessNumber)) 
                   {
                        points -= 20;
                        pointsView.text = String(points);
                        trace("-20 points, need LESS");
                        outputText.text = "need LESS, try again please";
                   }
                   else if (Number(yourGuessText.text) > lastGuessNumber)
                   {
                        outputText.text = "enter number from 1 to " + lastGuessNumber;
                        trace("enter number from 1 to " + lastGuessNumber);
                   }          
              }
              
              public function winGame():void 
              {
                   pointsView.text = String(points);
                   level += 1;
                   if (level == 4)
                   {
                        youAreWinner();
                        trace("You are winner!!!!!");
                        pointsView.text = String(points);
                        trace("Player earn: " + points + " points." );
                        level = 1;
                        points = 0;
                        lastGuessNumber = 5;
                   }
                   else{lastGuessNumber += 10;}
                   
                   nextLevelBtn.enabled=true;
                   guessBtn.enabled=false;
                   nextLevelBtn.addEventListener(MouseEvent.CLICK, playAgain);
              }
              
              public function playAgain(event:MouseEvent):void 
              {
                   trace("yes");
                   outputText.text = "";
                   startGuess();
              }
              
              public function youAreWinner():void
              {
                   gotoAndStop('finishScreen');
                   nextLevelBtn.visible = false;
                   guessBtn.visible = false;
                   playAgainBtn.addEventListener(MouseEvent.CLICK, generateNumber);
              }
              
         }
    
    }
    

    This isn't a problem with embedding fonts.

    Make sure that multiline is disabled.

  • Compilation slow transformation with embedding fonts

    Hi all

    In app may I embedded fonts int the font.css file and use it in my mxml app now on pressing f11 its taking too much time for compiling... is it due to embedding the fonts... ?

    Thank you

    Hello

    Here for you a nice tutorial with a video included:

    http://www.axelscript.com/2008/10/03/improving-compile-times-with-runtime-CSS/

    Apart from the generation of the SWF in the debugging of the other project (I think it is bad), you can check the setting for the other project where you have your embeded fonts, including as a module.

    Claudino Bur.

  • The present no embedded fonts in scanned documents containing plain text are not get converted fonts incorporated after OCR applied. But the texts are searchable. The text even unincorporated font that is formatted as text (not scanned) become stupid

    The present no embedded fonts in scanned documents containing plain text are not get converted fonts incorporated after OCR applied. But the texts are searchable. Even fonts not embedded text that is formatted as text (not digital) are themselves converted to fonts embedded by adobe distiller.

    Fix. Expected behavior.

    Output of the OCR is not incorporated. With Acrobat Pro, a preflight check is available to embed the fonts.

    On the use of Distiller - using a work option distill configured appropriately that the PDF created from the authoring application (FrameMaker, InDesign, MS Word, etc.) will have embedded fonts.

    Be well...

  • The pdf I want to change has all embedded fonts.  When I try to insert a comma, I get the message, "all or part of the selection has no available system fonts.» Cannot add or remove text using the selected font. "Will I still have this problem

    The pdf I want to change has all embedded fonts.  When I try to insert a comma, I get the message, "all or part of the selection has no available system fonts.» Cannot add or remove text using the selected font. "Will I still have this problem if I'm updating from Acrobat X?

    You have the fonts installed in the system. This has not changed. (Having the police is not always enough, but it is certainly necessary).

  • Non - embedding fonts using AIR in Flash Professional 3.0 (for iOS Development)

    Hey there,

    We develop Plains AS3 projects (to compile) using Flash Professional and Flash Builder.

    Everything works well with the new 3.0 version of the AIR and performance is better than with AIR 2.6

    I followed this tutorial and similar use AIR instead of AIR 2.6 3.0:

    http://kb2.Adobe.com/CPS/908/cpsid_90810.html

    Unfortunately, today, we have seen a new show with embedding fonts. Using Flash Professional, himself or the Embed tag in the code itself works. We also see that the SWF size does not change when you add more than one font.

    Anyone has an idea where this problem may be caused? I think that how the fonts are embedded changed air 3.0 and it does not work with the 'replace AIR 2.6 with AIR X.Y thing'.

    Any help welcome.

    Best,

    Cedric

    Try the instructions at http://help.adobe.com/en_US/as3/iphone/WS789ea67d3e73a8b2-5b45bb17124b3295cc8-7ffd.html.

  • Line breaks ignored when using text HTML CSS and embedded fonts

    Someone at - it find it.
    When you use a style sheet with html text in a dynamic textfield with embedded fonts line breaks are ignored. It's as if TextField.condenseWhite is set to true. Essentially the < p > tags are treated as a < br / > tag.

    If I do not incorporate fonts, it works fine. Another weird thing is that if I add an empty paragraph < p > < / p > between the first two paragraphs it makes any following paragraph behave correctly. for example

    < p > first text paragraph here < /p >
    < p > second text paragraph here < /p >
    < p > third text of paragraph here < /p >

    poster as if there are < br / > between each of them.

    But

    < p > first text paragraph here < /p >
    < p > < / p >
    < p > second text paragraph here < /p >
    < p > third text of paragraph here < /p >

    behaves correctly even for the third paragraph.

    Here is the code that I work with (by using XML as I am filling dynamic textfield to XML)

    any help much appreciated

    UPDATE:
    After reading http://www.kirupa.com/forum/showthread.php?t=307326
    I tried the same experiment using a TF designed in the IDE, the results for each, although the TextFields are essentially the same are totally different.

    Updated CODE accordingly - just need TF on stage, called "ideTextField" with the font "Arial".



    Ok
    I gave up to play with style sheets, try display: block, inline, different ways to format the XML data, in play with XML.ignoreWhiteSpace and XML.prettyPrinting etc.

    I went down the road of encodeURI, using a regular expression to remove all tabs, line breaks and the transport returns. This now gives consistent results for all situations, even incorporated and any fonts embedded.

    for example
    _TEXT:string = TEXT FROM XML, HTML TEXT etc.

    var st:String = encodeURI (_text);

    var model: RegExp = /(%09) + | (0 %) + | (0 % D) + / g ;

    St = st.replace (model, "");
    St = decodeURI (st);

    YOUTEXTFIELD.htmlText = m;

    The

    Tags always behave like a
    Tag, but you can add an extra
    to simulate a paragraph.

    Here is the example with the updates,

    Hope this helps someone

  • LabelButton blurred embedded fonts in the Simulator and the rendering of the fonts of the differences

    Hey people, party

    I have problems with the fonts embedded in LabelButton not made cleary by operating in the Simulator. They are crunchy when added stand alone. The button is on whole pixels and I double checked that the text in the button field is also on a set of pixels.

    Autonomous mode:

    Simulator:

    My code:

    public class GenericLabelButton extends LabelButton
        {
            protected var labelStr:String;
    
            public function GenericLabelButton(labelStr:String)
            {
                this.labelStr=labelStr;
    
                super();
            }
    
            override protected function init():void
            {
                var format:TextFormat=new TextFormat();
                format.font="font_helveticaNeue";
                format.size=16;
                format.color=0x000000;
                format.align=TextFormatAlign.CENTER;
    
                super.init();
    
                setTextFormatForState(format, SkinStates.DISABLED);
                setTextFormatForState(format, SkinStates.UP);
                setTextFormatForState(format, SkinStates.DOWN);
                setTextFormatForState(format, SkinStates.SELECTED);
                setTextFormatForState(format, SkinStates.DISABLED_SELECTED);
                label_txt.embedFonts=true;
                label=labelStr;
                label_txt.x=Math.round(label_txt.x);
                label_txt.y=Math.round(label_txt.y);
            }
        }
    

    Everyone knows this? Is font_helveticaNeue a bad font to use for the development of the PlayBook? Should I use the native font instead?

    I would also add that I use the police elsewhere in my application as a plain text field and it makes fine/crisp in the Simulator.

    I could use the native components wholesale, but I tell myself that I should at least try to use my own fonts.

    And while on the subject of the native LabelButton...

    Why text makes it differently in the Simulator this autonomous? The bg of the LabelButton doesn't resize correctly when I use the Simulator. Should I have the fonts installed on the host computer?

    Autonomous mode:

    In the Simulator:

    Would appreciate any input in this...

    Thank you

    SMJOHN

    Whoops - just realized I wrote this for you questions about LabelButton, and TextInput in which case you will need to use the textfield label_txt as you have already done (this is the default TextField fom flash.text).

    Embedded fonts will make in the TextInput QNX on the Simulator, as they do with TextInput fl.controls Flash; 100 times greater than the vector shapes.

    To make them look good, you need to change some properties of the TextInput textField.

    You can adjust the sharpness and thickness to your taste. The gridFitType property can also help alone. I have not tested it without the custom of the AA, however settings.

    _textInput.textField.antiAliasType = AntiAliasType.ADVANCED;
    _textInput.textField.sharpness = 1;
    _textInput.textField.thickness = 25;
    _textInput.textField.gridFitType = GridFitType.PIXEL;
    

    I have attached a before and after the screenshot of the Simulator. Unlike my screenshot, make sure the size of your type TextInput and/or its TextField correctly do not cut the Downhillers. Myriad Pro is displayed.

    TextField reference for anyone who comes across this thread and he needs: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.html

Maybe you are looking for