Set Text box grid fit type to pixel : Effects « TextField « Flash / Flex / ActionScript






Set Text box grid fit type to pixel

 

package {

  import flash.display.Sprite;
  import flash.text.TextField;
  public class Main extends Sprite {
    public function Main(  ) {
      var field:TextField = new TextField(  );
      field.gridFitType = GridTypeFit.PIXEL;

      addChild(field);
    }
  }
}

        








Related examples in the same category

1.Applying Advanced Anti-Aliasing
2.Make whole TextField italic
3.ClickableText
4.Rasterizing, then dissolving a TextField
5.the text appears fully opaque, even though the text field's alpha percentage is set to 20%:
6.a list of bulleted text