v

[ActionScript 3] TextArea embedFonts

· 2011-11-22 (화) 11:10:46 · 998
import fl.controls.TextArea;

var chaparralProEmbeddedFont:Font = new ChaparralProEmbedded();

var textFormat:TextFormat = new TextFormat();
textFormat.font = chaparralProEmbeddedFont.fontName;
textFormat.size = 32;

var textArea:TextArea = new TextArea();
textArea.setStyle("textFormat", textFormat);
textArea.setStyle("embedFonts", true);
textArea.text = "The quick brown dog jumps over the lazy fox.";
textArea.move(10, 10);
textArea.setSize(300, 200);
addChild(textArea);
|
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

6,077건

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
12-02-06 조회 1,973
12-01-18 조회 1,020
12-01-06 조회 1,321
11-12-30 조회 1,794
11-12-30 조회 4,586
11-12-21 조회 1,077
11-12-21 조회 2,085
11-12-16 조회 974
11-12-15 조회 1,085
11-12-15 조회 1,172
11-12-15 조회 2,049
11-12-09 조회 1,011
11-12-09 조회 959
11-12-07 조회 718
11-12-07 조회 1,728
11-12-05 조회 2,222
11-12-02 조회 1,504
11-12-01 조회 657
11-12-01 조회 736
11-12-01 조회 742