v

[ActionScript 3] TextArea embedFonts

· 2011-11-22 (화) 11:10:46 · 1011
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-01-11 조회 678
12-01-11 조회 9,985
12-01-10 조회 690
12-01-08 조회 1,398
12-01-05 조회 3,326
11-12-29 조회 782
11-12-27 조회 720
11-12-25 조회 836
11-12-22 조회 1,367
11-12-14 조회 733
11-12-12 조회 1,324
11-11-28 조회 1,375
10-10-19 조회 1,367
08-09-05 조회 2,558
08-09-05 조회 2,348
08-06-14 조회 2,130
08-04-22 조회 2,445
08-04-17 조회 2,232
07-10-03 조회 3,013
07-10-03 조회 2,385
07-10-03 조회 6,111
07-10-03 조회 3,252
07-10-03 조회 2,040
07-10-03 조회 1,617
07-10-02 조회 2,321