PDA

View Full Version : Inconsistent font anti-aliasing between Flex 2 and Flex 3


rollingsj
03-06-2008, 03:53 PM
Has anyone else noticed that the rendering of advanced anti-aliasing for embedded fonts differs between Flex Builder 2 and Flex Builder 3? This is causing us some duress as we have to adjust all of our font styles to correct the look of our interface.

Below is a brief application to demonstrate this bug. If you compare the result in Flex 2 and Flex 3, you’ll notice that the text is thinner and lighter in Flex 3. Does anyone have a quick workaround, or know why this is?

http://www.actionscript.org/forums/attachment.php3?attachmentid=26302&stc=1&d=1204818532

Also, just out of curiosity, does anyone know what values for fontSharpness and fontThickness would mimic the ‘Anti-alias for readability’ setting in Flash CS3?

Thanks!

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
backgroundColor="#E8E8E8"
backgroundGradientColors="[#E8E8E8, #E8E8E8]">

<mx:Style>
@font-face{
fontFamily: arialEmbeddedFont;
src: local("Arial");
fontWeight: normal;
}

.textFontStyle {
fontFamily: arialEmbeddedFont;
fontSize: 13;
color: #000066;
fontAntiAliasType: advanced;
fontGridFitType: pixel;
fontSharpness: -400;
fontThickness: -150;
}
</mx:Style>

<mx:Text x="25" y="25"
styleName="textFontStyle"
text="Hello, world!" />

</mx:Application>

rollingsj
03-06-2008, 07:59 PM
Posted bug report: FB-12208
http://bugs.adobe.com/jira/browse/FB-12208

So far, I can only replicate this in Flex Builder 2.0.143459.

Thanks