Problems with dynamic text in Flash

Corey Holms's picture

I've got a problem with this typeface that was designed as a bitmap font - whenever it is rendered as dynamic text, it blurs. I have read the FontLab manual, and the FontFlasher manual, followed the directions to the letter, and still the typeface blurs when used dynamically in Flash.

I would be eternally grateful to anyone with advice on how to solve this problem. I am completely at a loss and very frustrated.

Here is a sample of the typeface in action (on the right is a sample of one that works correctly in Flash) -
http://www.stereotypography.com/bfuq2/

Mark Simonson's picture

Sucks, doesn't it?

There are only two ways to fix this that I know of:

1. Use FlashMX 2004 and switch aliasing ON for the text field. The drawback is that you if you export this for pre-Flash 7 players, it doesn't work.

2. Set the quality setting for the movie to LOW. This is the only way to do it for pre-MX 2004 versions. Unfortunately, this affects everything, not just the text field.

Mark Simonson's picture

Hmm. Now that I look at your example again, I'm not sure I'm understanding what's happening. It works okay for one font, but not the other? Any other details you can provide about the fonts? (PostScript, TrueType, etc.) In other words, I'm not sure how it's even working in the lower right text box. It seems like it shouldn't...

Corey Holms's picture

Thank you for helping Mark, the typeface is TrueType, but I've also supplied a PS1 version in the hopes that he could jettison the PS data and only use the bitmap information. He has tried this with both versions, but I believe we are looking at the TTF version. I assumed that the problem was metrics causing the blurring, but my flash programmer says that no metrics are involved at all. Does that help clarify?

I generated the typeface using FontLab and FontFlasher with Python. I have generated a TTF and a PS1 version with an 8pt bitmap for him to use, both generate the exact same problem with the blurring that we see in the example above.

Mark Simonson's picture

Which version of Flash are you using? If you're using MX 2004, have you tried turning the font aliasing feature on for the text boxes?

Corey Holms's picture

I will ask him which version of Flash is being used and will link this thread in the email hoping that he can join in on the conversation. Again, thanks for taking time to look into this for me!

Mark Simonson's picture

Corey and I corresponded by email after he posted here and he sent me the font. It turns out that the space character had a width that was not a multiple of the basic "pixel" unit in the font. I haven't heard back from him, but I think that was the problem and he was able to get it to work right.

Corey Holms's picture

Mark, I am a very rude person.

I apologize for not getting back to you - your suggestion solved the problem! I was so excited that it worked, I ended up forgetting my manners. Thank you!

Mark Simonson's picture

No problem. I'm glad it turned out to be such a simple solution.

hrant's picture

> use fonts from Miniml.

Or go another step up to: http://www.ultrafonts.com

hhp

Mark Simonson's picture

Makes me wonder if these other fonts have the same word
spacing issue.


If you have the font, open it up in a font editor. The space should be a multiple of the "pixel" unit size. It may or may not be the problem.

I just checked Unibody myself, and the space is correct. It must be something else.

anonymous's picture

Have you followed all the instructions to the letter? If the text field is nested inside a movieclip both the movieclip and the text field need to be set to a whole pixel. This can get complicated with multiple lists. I'd write a global to local script to force the textfield to a whole pixel position on the root timeline.
Also use Math.floor to fix that floating point integer bug.
And make sure your text isn't center justified or anything like that.

Joe Pemberton's picture

Very interesting. I have seen this same problem with other
Vector "bitmap" fonts when pulled dynamically into Flash.

The only fix I've found is to use fonts from Miniml. You can see
Standard working on the Typophile home page. Even Unibody
(Underware) and various FontsForFlash faces produce the
blurring when the text is dynamic.

Makes me wonder if these other fonts have the same word
spacing issue.

Syndicate content Syndicate content