v

[ActionScript 3] TextArea embedFonts

· 2011-11-22 (화) 11:10:46 · 1014
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에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
11-11-23 조회 1,752
11-11-23 조회 5,062
11-11-23 조회 1,812
11-11-22 조회 1,001
11-11-22 조회 795
11-11-22 조회 1,917
11-11-22 조회 1,015
11-11-22 조회 1,413
11-11-22 조회 913
11-11-22 조회 898
11-11-22 조회 973
11-11-22 조회 4,762
11-11-21 조회 1,650
11-11-21 조회 991
11-11-19 조회 2,252
11-11-19 조회 1,729
11-11-19 조회 1,544
11-11-18 조회 2,987
11-11-18 조회 2,089
11-11-18 조회 1,100
11-11-17 조회 1,166
11-11-17 조회 983
11-11-17 조회 1,117
11-11-17 조회 2,676
11-11-16 조회 3,086