I've been fooling around with text and anti-aliasing the fonts in Flash in some very twisted ways.. and ran into a little fun that I thought I'd share to see what others have done to work around this.
One of the nice things (in the past anyway) about using embedded fonts instead of the system fonts was that the text remained fixed in place and didn't jump font sizes as the text was stretched or transformed. For instance, if you take text using _sans system font and stretch it larger and smaller in a smooth motion you'll see the font size jump drastically from one font size to the next. However, with embedded fonts the font size would increase smoothly and the text would seem to grow and shrink smoothly.
Now since Flash Player 8 we've had "anti-alias for readability" or if you're into code it's myTextField.antiAliasType="advanced". It provides a better looking anti-aliasing, but throws in a new bit of trouble. The spacing between the characters (letterSpacing) seems to vary as the TextField is stretched making the text appear to shake around. I've got an example here, and if you look at it you have to resize your browser window in and out smoothly and kind of slowly so you can get the full effect.
Click here to see an example
FLA and HTML here
and - - this is important because it's possible for text to word-wrap as it's stretched and that could wreck a layout.
Anti-Alias for readability shakes about Monday, November 12, 2007
Have Your Saycomments & trackbacks
The trackback URL for this entry is: Trackbacks are disabled for this entry
20 Nov 2007 at 08:40 am | #
Well having this problem right now, I'm trying to do some Zoom-in Zoom-out effect on a layout with an anti alias for readability textfield and the text is wrapping around.
I'll repost when I got a solution!
20 Nov 2007 at 10:30 am | #
I came out with a fast solution for my case that minimizes the ugly effect.
While the textfield is animating, I changed the anti alias type to "normal" (the anti-alias for animation at the IDE) and when the animation is finished, I changed it back to anti-alias for readability.
Hope someone could find an elegant solution to solve this problem
20 Nov 2007 at 06:40 pm | #
Or, you can make sure that you stick to the size of the flash movie. We make sure to tell our clients run on 1024x768 and do our QA testing from there.