We have noticed that when we display a TextField with a device font (Verdana), that the antialiasing is different (and subjectively worse) when
the app is compiled as a swf10 app than when it is compiled as a swf8 app.
Below is the TextField when compiled and run as a SWF 10 file, displayed in the 10.1 player. The font size was set to 12 point, magnified, to show that it uses grayscale antialiasing
An below is the same code but compiled to a swf8 file (and run in the 10.1 player as well)
You can see that when the file is compiled as SWF8, the device font is rendered with color pixels, I guess as an LCD font.
Can anyone tell me why this is not being done for TextField when the app is compiled/run as SWF10 ??
The code to instantiate the text field looks like
var tf:TextField = new TextField();
tf1.antiAliasType = AntiAliasType.ADVANCED;
tf1.autoSize = TextFieldAutoSize.LEFT;
tf1.sharpness = 0;
tf1.x = 100;
tf1.y = 50;
var fmt:TextFormat = new TextFormat();
fmt.kerning = true;
fmt.size = 12;
fmt.font = 'Verdana';
tf1.embedFonts = false;
tf1.styleSheet = null;
tf1.defaultTextFormat = fmt;
var str = "Verdana";
tf1.htmlText = str;
I guess, the output shown by flash 10.1 is sharper and probably the better way to anti-alias.
also, flash has absolute backward compatibility and hence, when published as FP-8 the swf behaves as though it was authored for FP-8 though is running on Flash Player 10.1.
Actually our users are complaining that the Flash 10 grayscale antialiasing on device fonts does not look as good
as the Flash 8 style antialiasing.Virtually everyone uses LCD monitors now, and it seems like the Flash 8 color
dithering produce better results on these displays.
It is demonstrated that the Flash 10 player will render device fonts with
different algorithms when it is using AVM1 or AVM2, so what I would like to know is if there is any way to have programmatic control over this
choice in my Flash 10 application, so I can get the Flash 8 style antialiasing, or control other parameters on a device font, like sharpness, etc.