Sunday, March 18, 2012

Flash Font Embedding

I recently ran into a problem involving embedding a stylized font (Bold, Italic, etc) in a dynamic text field. As soon as I changed the content of the text field, the font would lose its style and revert to its Regular version. After a lot of messing around with embed settings, I finally discovered that the problem involved Anti-aliasing and that this would occur with any textfields that were set to be anti-aliased for readability.

Setting the textfield to Bitmap anti-aliasing resolved the problem but left the font looking a bit gritty. The best solution seems to be to set the field to Custom anti-aliasing. Lo and behold, the content of a textfield with custom anti-aliasing can change without killing the style of the font.

No comments:

Post a Comment