Archive for the ‘AIR’ Category

AS3 font anti-aliasing in AIR and browser

Friday, August 3rd, 2007

First of all, I’m a noob on fonts in AS3. Just posting some differences between AIR (Adobe Integrated Runtime) and the browser I noticed while developing.

Font anti-aliasing is done automatically in the browser when you don’t add any effects to it like a GlowFilter. When running AIR the font is not anti-aliased:

Verdana, Not embedded, Browser
Font quality Browser

Verdana, Not embedded, AIR
Font quality AIR

If you want to do effects like alpha and rotation on fonts, you have to embed them into your SWF. This also results in anti-aliasing when you run your application as AIR file:

Verdana, Embedded, Browser
Font quality Browser (embedded font)

Verdana, Embedded, AIR
Font quality AIR (embedded font)

Though the strange thing is the 0 (zero) and o (O) are missing a bit on the top right.