Copy link to clipboard
Copied
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.
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 visibl
...Copy link to clipboard
Copied
i don't see a problem.
create a new fla in cs6 add the minimum needed to exhibit the problem then post your results.
Copy link to clipboard
Copied
Here is a quick example:
SWF exported using CS6:
http://terminalvelocity.ca/temp/flashCC/a.png
SWF exported using CC
http://terminalvelocity.ca/temp/flashCC/b.png
(this example only really shows a line spacing problem)
Here is also an example of one of my project FLAs which reveals more issues such as the wrong font variant being used (non bold) and the "height" property of the textfield being wrong which is causing the buttons to misdraw as being too tall (and the input elements being too short)
CS6:
http://terminalvelocity.ca/temp/flashCC/c.png
CC:
http://terminalvelocity.ca/temp/flashCC/d.png
You can download my test FLA here:
http://terminalvelocity.ca/temp/flashCC/test.fla
The font problems seem prevailent in any FLA I open that uses embedded fonts. I am on a Mac running the latest version of Mountain Lion. I suspect this may be caused by a few default params changing in the TextFormat object perhaps? Though if so I won't be happy if I have to go back through every text field in every FLA in order to use the CC version of Flash.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
i don't see those problems in windows.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Arial is embedded in normal and bold
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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);
}
}
}
Copy link to clipboard
Copied
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 ass.
Copy link to clipboard
Copied
it works for dynamically created textfields. but, if it doesn't work for you, don't use it.
Copy link to clipboard
Copied
I forgot to add this to pre-release bugs, got sidetracked. I think its going to be a common issue for most advanced users.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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 )"
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Hey PierBover, Adobe Bugbase doesnt have the selection. I've notified some people on twitter on how to report bugs for flash cc.
Copy link to clipboard
Copied
So how can I vote for the bug?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks, but is it possible to simply vote for an existing bug?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks for reporting the issue, we are able to reproduce it at our end. We will investigate the issue.
-Dharmendra