더 나은 살펴 보겠습니다 그런 식으로 ...
greetz
back2dos을 요인 2에 의해 스케일링 Matrix
을 통과 요인 (2)에 의해 Bitmap
을 축소 내 경험을이 질문에 추가하십시오. 나도 텍스트를 회전시키고 싶었다.
처음에는 ActionScript 만 사용하여 글꼴을 포함했습니다.
Embed(source="C:\\WINDOWS\\Fonts\\CALIBRI.TTF", fontFamily="Calibri")]
public static const FONT_CALIBRI:Class;
...
var font:Font = new Global.FONT_CALIBRI as Font;
//Font.registerFont(Global.FONT_CALIBRI); //I tried various other things...
하지만 언제든지 embedFonts = true
으로 설정하면 텍스트가 사라집니다. 마침내 나는 안으로 넣었다 embedded the font using Flash.
var font:Font = new FontClass as Font; //FontClass was exported from Flash IDE
마침내 효과가있었습니다.
var textFormat:TextFormat = new TextFormat(font.fontName);
textField = new TextField();
textField.defaultTextFormat = textFormat; //must be before setting the text
textField.embedFonts = true; //needed to rotate fonts
textField.autoSize = TextFieldAutoSize.CENTER;
textField.antiAliasType = flash.text.AntiAliasType.ADVANCED;
textField.text = ("TESTING")
this.addChild(textField);
어쨌든 플래시 IDE를 사용하는 것이 얼마나 싫은가? 플래시를 사용하지 않고 누구든지이 작업을 수행 할 수 있었다면 공유하십시오!