システムフォントが回転できない確認

by esukei
@author エスケイ
* とりあえずデバイスフォントは角度が少しでもついたら表示されないよねって言う確認
♥0 | Line 31 | Modified 2010-01-08 16:03:55 | MIT License
play

ActionScript3 source code

/**
 * Copyright esukei ( http://wonderfl.net/user/esukei )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/oAQM
 */

/**
 * @author エスケイ
 * とりあえずデバイスフォントは角度が少しでもついたら表示されないよねって言う確認
 */
package {
    import flash.display.Sprite;
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.text.TextField;
    public class FlashTest extends Sprite {
    		private var textField:TextField;
    		private var textField2:TextField;
    		private var sprite:Sprite;
        public function FlashTest() {
            // write as3 code here..
            textField = new TextField();
            textField.text = 'ほげほげ';
            textField.x = 50;
            textField.y = 50;
            addChild(textField);
            textField.rotation = 10;
            
            sprite = new Sprite();
            sprite.x = 100;
            sprite.y = 100;
            
            addChild(sprite);
            
            textField2 = new TextField();
            textField2.text = 'ほげほげ';
            textField2.x = 0;
            textField2.y = 0;
            textField2.cacheAsBitmap = true;
            textField2.alpha = 0.5;
            sprite.addChild(textField2);
            sprite.rotation = 10;
        }
    }
}