Skip navigation
Currently Being Moderated

Fonts Mangled In Flash CC

Jun 18, 2013 9:33 AM

I just installed Flash CC eager to try out the features and quickly discovered that any fla that I opened that uses Library embedded fonts completely looks mangled, the font is wrong, kerning gets screwed up, text randomly is cut off. Very dissapointing. Is this something that might get fixed soon.

 
Replies 1 2 Previous Next
  • kglad
    72,340 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 18, 2013 10:09 AM   in reply to ryan546783

    i don't see a problem.

     

    create a new fla in cs6 add the minimum needed to exhibit the problem then post your results.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2013 12:26 PM   in reply to ryan546783

    Experiencing the same kind of issues here... using flash.text.TextField objects in AIR 3.6 on Mac OS 10.8.4. Text is smaller, with much larger line spacing, breaking out of its bounding area on the right-hand side.

     

    On the upside, the issue I was having with punctuation spacing too close to special characters (accented characters and such) is now fixed! Weird stuff.

     
    |
    Mark as:
  • kglad
    72,340 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 18, 2013 12:40 PM   in reply to ryan546783

    i don't see those problems in windows.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 18, 2013 3:51 PM   in reply to ryan546783

    I'm seeing the same behaviour on my Mac. It seems to be a leading problem only with textfields created in Actionscript. If you place a textfield on the stage, the leading is correct. I tried quite a few fonts and font types and they all acted the same way. You can set a leading property for a TextFormat to get the text to look correct, but that's just stupid.

     

    I have logged this as a bug.

     
    |
    Mark as:
  • kglad
    72,340 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 18, 2013 4:19 PM   in reply to Rob Dillon

    ok, now i see a problem with textformat, but that's not necessarily textfield issue. 

     

    the textformat default leading is not handled the same in cc as in previous versions of flash.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2013 2:51 AM   in reply to kglad

    I have the TextField issues on Windows 7 as well. It seems so Flash CC cannot render an embedded font in bold style anymore. setTextFormat does not have any effect on this.

     
    |
    Mark as:
  • kglad
    72,340 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 19, 2013 4:07 AM   in reply to Devarai

    bold fonts embed without problem.

     

    like all flash versions since i can remember, you must embed a bold font to display an embedded bold font.  you will fail if you embed a regular weight font and then try to display that font bolded.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2013 4:38 AM   in reply to kglad

    I've just imported CS6 project into CC (Mac Os). The leading is the issue, I had to set leading again on all textfields for it to work, which is a pain.

     

    my steps to re-create the problem

     

    In Flash CS6

    1. Create a dynamic textfield reference, with multiline support

    2. Embed a Font

    3. In actionscript create a new textfield using the textfield reference

    4. Assign font to new textfield

    5. Make sure new textfield has multiline,embedfonts set

    6. Run. The result should be multlined text with correct leading

     

     

    In Flash CC

    1. Open project

    2. Run. The result shows the leading is quite large and second line of text is not visible.

     

    linked fla for reference.

    https://dl.dropboxusercontent.com/u/8412496/flash_cc_textfield_bug.fla

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2013 4:46 AM   in reply to kglad

    Ok, I tell you what I do

     

    Embed Arial font

    Create in actionscript a textfield

    Set the textfield all up (embedded, settextformat...)

    In the format I set it to bold

    I create a bitmapdata object

    I render the textfield into a bitmap

    I add the bitmap to the stage

     

    The final bitmap contains the text in the Arial font and has the correct size

    However whatever I try cannot get it in bold

     

    Best,

    Henning

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2013 4:48 AM   in reply to Devarai

    Arial is embedded in normal and bold

     
    |
    Mark as:
  • kglad
    72,340 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 19, 2013 4:53 AM   in reply to yanivyaldainlink

    you can use the following function to set the leading of all textfields (that exist and are on the display list).  just past the main timeline (cast as a movieclip) to setLeadingF and specify the leading you want to apply.

     

    the function can be made more efficient by creating the textformat instance outside setLeadingF to prevent it from being created repeatedly.

     

    function setLeadingF(mc:MovieClip,leading:int):void{

        var tfor:TextFormat = new TextFormat();

        tfor.leading = leading;

        for(var i:int=0;i<mc.numChildren;i++){

            if(mc.getChildAt(i) is TextField){

                TextField(mc.getChildAt(i)).defaultTextFormat=tfor;

                TextField(mc.getChildAt(i)).setTextFormat(tfor);

            } else if(mc.getChildAt(i) is MovieClip){

                setLeadingF(MovieClip(mc.getChildAt(i)),leading);

            }

        }

    }

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2013 5:04 AM   in reply to Rob Dillon

    I did some more looking this morning and it seems that the trigger is the line: txt.embedFonts = true; If you leave that line out, the leading returns to normal. But, of course, this also means that you can't use an embedded font which makes the whole thing useless.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2013 5:05 AM   in reply to kglad

    That is not really practical. Advanced coders create TextField objects dynamically during run-time. Some of my projects have hundreds of source code files. Correcting each one manually is really a pain in the ***.

     
    |
    Mark as:
  • kglad
    72,340 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 19, 2013 5:10 AM   in reply to Devarai

    it works for dynamically created textfields.  but, if it doesn't work for you, don't use it.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2013 5:53 AM   in reply to kglad

    I forgot to add this to pre-release bugs, got sidetracked. I think its going to be a common issue for most advanced users.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2013 1:51 AM   in reply to ryan546783

    Simple way to recreate the bug:

     

    import flash.text.TextField;

    import flash.text.TextFormat;

    import flash.text.TextFieldAutoSize;

     

    var tf : TextFormat;

    var tb1 : TextField;

    var tb2 : TextField;

     

    tf = new TextFormat();

    tf.font     = "Arial";

    tf.color     = 0x000000;

    tf.size      = 20;

     

    function makeTb( txt : String ) : TextField {

        var tb : TextField = new TextField();

            tb = new TextField();

            tb.multiline             = false;

            tb.selectable             = false;

            tb.defaultTextFormat     = tf;

            tb.autoSize             = TextFieldAutoSize.LEFT;

            tb.mouseWheelEnabled     = false;

            tb.antiAliasType         = AntiAliasType.ADVANCED;

            tb.embedFonts             = true;

            tb.border                 = true;

            tb.borderColor             = 0xff00ff;

            tb.condenseWhite         = true;

            tb.text                    = txt;

        return tb;

    }

     

    tb1 = makeTb( "how the bug looks" );

    tb2 = makeTb( "how it should be" );

    tb2.embedFonts = false;

    tb2.x = 200;

    addChild( tb1 );

    addChild( tb2 );

     

     

    And a screenshot ( win7 pro + flash cc )"

    bug.jpg

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2013 5:35 PM   in reply to Ngl Robert

    Just to add more info here, I'm having exactly the same bug.

     

    http://forums.adobe.com/message/5459908

     

    Adobe do something!!!

     

    Does anyone have the link to the bug report?

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2013 6:01 PM   in reply to pierBover

    Hey PierBover, Adobe Bugbase doesnt have the selection. I've notified some people on twitter on how to report bugs for flash cc.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2013 6:07 PM   in reply to yanivyaldainlink

    So how can I vote for the bug?

     
    |
    Mark as:
  • kglad
    72,340 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 28, 2013 6:18 PM   in reply to pierBover
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2013 6:29 PM   in reply to kglad

    Thanks, but is it possible to simply vote for an existing bug?

     
    |
    Mark as:
  • kglad
    72,340 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 28, 2013 7:09 PM   in reply to pierBover
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2013 8:48 PM   in reply to kglad

    Thanks for reporting the issue, we are able to reproduce it at our end. We will investigate the issue.

     

    -Dharmendra

     
    |
    Mark as:
  • kglad
    72,340 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 29, 2013 6:26 AM   in reply to dharmk

    the cause is the default textformat's leading.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 29, 2013 8:01 AM   in reply to kglad

    In my case changing the leading did not solve the issue. There always remained some big offset from the top of the textfield to the top of the text.

     
    |
    Mark as:
  • kglad
    72,340 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 29, 2013 9:06 AM   in reply to pierBover

    copy and paste the code you used to change the leading of your textfield.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 29, 2013 10:53 AM   in reply to kglad

    error2.jpg

    format.leading = 0;

    myText.text = "hello";

    myText.setTextFormat(format);

     

    There's not much mystery to changing leading.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 4, 2013 3:23 AM   in reply to pierBover

    We are looking into this issue. However, for the time being you can use a workaround for this issue. Just create an invisible text element on the first frame which uses the same embedded font, it should solve the issue. You may need to clearn the publish cache in some cases (Control -> Clear publish cache).

     

    One way you can create an invisible text on stage would be to create a text element, apply the embedded font and create a movie clip out of it. You can then go to the PI and uncheck the visible checkbox to hide the movieclip.

     

    -Dharmendra.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 4, 2013 9:27 AM   in reply to dharmk

    Thanks dharmk, that works.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 4, 2013 9:47 AM   in reply to pierBover

    You're welcome. I'm glad it did.

     

    -Dharmendra.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 4, 2013 3:37 PM   in reply to dharmk

    Confirmed working as well. Im on Mac osx, I'm using resources files so its a pretty easy fix. Thanks guys.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 15, 2013 8:05 PM   in reply to AbductedMind

    Hi Kevin

     

    I'm having a similar problem here: http://forums.adobe.com/message/5459895#5459895

     

    It seems it's a bug with CC. I think the simplest solution is to go back to CS6 until they fix the bug...

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 12, 2013 9:23 AM   in reply to ryan546783

    This thread doesn't specifically recommend a fix that works in all cases. I am unsure how adding a textfield to frame one has helped others but it has not helped me (for example do you have to still set leading to some silly number such as "-50" for the font to display correctly?). In my case Arial is rendering correctly but another Font is not. When I use both in the same textfield (classic text field) the leading is different for the two. There doesn't appear to be a way to specify leading inline with HTML within the font tag so I am stuck. If there is a way around the problem in the case of multiple fonts in the same field, please let me know!

     

    This bug needs to get fixed!

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 12, 2013 1:52 PM   in reply to AbductedMind

    There was a Flash CC update but this was not resolved. How can this bug not be a top priority?

     

    Adobe do something.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 11, 2013 3:05 AM   in reply to ryan546783

    this worked for me: 

     

      var tf:TextFormat = new TextFormat();

      tf.leading = -70;

      this.flashTextField.defaultTextFormat = tf;

      this.flashTextField.text = 'this text appeared with correct leading';

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 23, 2013 1:50 PM   in reply to dharmk

    Tried these workarounds and am having no success. Is it just about Arial and if so, why? All of my legacy files are built with it, as it was assumed that this was a mostly universal font. This is costing me time and resources.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 13, 2013 8:44 AM   in reply to ryan546783

    I have a similar problem.  I replaced the font in it with a font from an external library - and then the line spacing went haywire. I have a separate movieclip where I used the external embedded fonts from the start which is fine. The workaround mentioned is not working for me.

     

    As soon as I uncheck "import for runtime sharing" for the externally embedded font, the leading issues disappear.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 3, 2013 4:26 AM   in reply to staublicht

    The new update(Flash Pro CC release - November 2013) is now available to you. This Flash CC update will update your flash version to 13.1.0.217. Can you check this using this latest update

     

    You can update from the Adobe Creative Cloud application or from Flash Pro CC Help -> Updates menu.

     

    You will more information about the update at: http://helpx.adobe.com/flash/using/whats-new.html

     

    Thanks,

    Sujai

    Adobe Flash Professional Team

     
    |
    Mark as:
1 2 Previous Next
Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points