4 Replies Latest reply on Mar 6, 2008 11:52 AM by rollingsj

    Inconsistent font anti-aliasing between Flex 2 and Flex 3

    rollingsj
      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 much thinner and lighter in Flex 3. Does anyone have a quick workaround, or know why this is?

      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>