I've run into this incredibly annoying problem today. I have numerous dynamic textfields in my movie that embed the font Gill Sans MT. Some of them are normal/regualar, some of them are bold.
But, in the published swf all bold text fields are displayed as normal/regular! I've investigated this for hours, and the only way I can get the bold font to display properly is to NOT use the regular one anywhere in the movie.
I also tried making a new flash movie containing two text fields, one that embeds Gill Sans Normal, and one that embeds Gill Sans Bold and that worked fine.
So my suspicion now is that my original .fla has somehow gone corrupt so that the bold font data is overwritten with the normal font data.
Is this a known issue? Does anyone have a solution for this?
I also thought it's not the problem, but it was. Try creating a TextFormat object with different settings for one of the text fields and see what the result is Sometimes it seems to work not exactly as we expect
Thanks again and no disrespect, but that's a useless solution. What you suggesting may be a workaround to solve the problem, but I can't tell a graphics artist who doesn't know how to program that he needs to hack AS in order for textfields to display properly. Moreover, like I wrote in my first post I managed to get it to work using a fresh flash movie, and I didn't use any TextFormat objects there.
So, let me clarify my question: Why does it work in one movie but not in another one?
makac, I think it's impossible to answer your question without having a look at the fla file.
I've just tried to do the same and it worked out just fine, take a look at the attachment if you want. I used standard "embed characters" option and embedded lowercase, uppercase, numerals and punctuation glyphs. No actionscript at all. It works. As simple as it sounds.
mm.. Maybe it's a weird question but anyway, have you imported the font itself to the library?
There is nothing spectacular about the way the flash file is built. It's dynamic textfields on stage, with embedded fonts, that's it. It's exactly the way I've done it with success many, many times for years.
Like I said, I think the .fla is somehow corrupted. I can't be the first one to experience the problem (you've had it, appearenlty), and now I'm trying to get to the bottom of it.