v

[ActionScript 3] TextArea embedFonts

· 2011-11-22 (화) 11:10:46 · 2179
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);
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
jQuery 11-11-30 조회 9,515
PHP 11-11-29 조회 7,163
기타 11-11-29 조회 2,650
Linux 11-11-28 조회 3,459
JavaScript 11-11-28 조회 2,476
Flash 11-11-27 조회 3,430
기타 11-11-26 조회 2,428
JavaScript 11-11-26 조회 2,666
jQuery 11-11-26 조회 4,185
Flash 11-11-25 조회 3,619
JavaScript 11-11-25 조회 2,658
jQuery 11-11-24 조회 9,501
JavaScript 11-11-24 조회 1,886
Flash 11-11-23 조회 2,540
PHP 11-11-23 조회 3,031
PHP 11-11-23 조회 3,763
jQuery 11-11-22 조회 3,074
기타 11-11-22 조회 2,129
PHP 11-11-22 조회 4,946
기타 11-11-22 조회 2,180
Flash 11-11-22 조회 2,324
JavaScript 11-11-22 조회 2,044
PHP 11-11-22 조회 2,852
JavaScript 11-11-22 조회 2,378
jQuery 11-11-22 조회 7,370
PHP 11-11-21 조회 4,315
PHP 11-11-21 조회 2,633
MySQL 11-11-19 조회 5,297
기타 11-11-19 조회 2,958
jQuery 11-11-18 조회 6,055