Search code examples
flashactionscriptfontssubpixel

Subpixel color in flash/actionscript


When working with text in Flash, I often encounter the following problem:

http://www.aino.se/media/i/subpixel.png

This makes the text "glow" in various colors. Is there any good way to avoid this? It has something to do with subpixel rendering, but I'm not sure how to fix it. I tried most of the options available.


Solution

  • Hit print screen on this website if you are on PC win7 and paste it to photoshop. Zoom in and then you'll see this is the way how subpixel anti-aliasing became a standard method these days. Turn this off and everything looks ugly. Is not what Win XP or OSX was about. The old school anti-aliasing was based on grey scale. Sub pixel is using full palette of colors. Not mention that this patent belongs to Microsoft only.

    This invention improved text quality on LCD a lot but we loosing a pixel perfection in other hand. And Flash performing under Win 7 (I wonder if Vista as well) using native method. If you want to avoid this effect draw Text Field on BitmapData, select BitmapText or use pixel font. By the way if you are on XP and full screen mode you can experience similar effect