v

[ActionScript 3] TextArea embedFonts

· 2011-11-22 (화) 11:10:46 · 1001
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-16 조회 2,325
12-02-03 조회 1,235
12-01-31 조회 1,000
12-01-24 조회 1,057
12-01-17 조회 1,879
12-01-05 조회 1,448
11-12-30 조회 936
11-12-23 조회 2,458
11-12-08 조회 1,204
11-12-07 조회 2,150
11-11-27 조회 1,755
11-11-25 조회 1,982
11-11-23 조회 1,388
11-11-22 조회 1,373
11-11-09 조회 1,245
11-10-23 조회 1,286
11-10-19 조회 1,324
11-10-08 조회 1,092
11-10-04 조회 973
11-10-04 조회 3,315
11-09-01 조회 2,657
11-08-13 조회 960
11-08-06 조회 1,680
11-07-11 조회 2,029
11-06-27 조회 1,482