v

[ActionScript 3] TextArea embedFonts

· 2011-11-22 (화) 11:10:46 · 2178
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,665
jQuery 11-11-26 조회 4,184
Flash 11-11-25 조회 3,618
JavaScript 11-11-25 조회 2,657
jQuery 11-11-24 조회 9,501
JavaScript 11-11-24 조회 1,886
Flash 11-11-23 조회 2,539
PHP 11-11-23 조회 3,030
PHP 11-11-23 조회 3,762
jQuery 11-11-22 조회 3,073
기타 11-11-22 조회 2,129
PHP 11-11-22 조회 4,946
기타 11-11-22 조회 2,179
Flash 11-11-22 조회 2,324
JavaScript 11-11-22 조회 2,043
PHP 11-11-22 조회 2,852
JavaScript 11-11-22 조회 2,376
jQuery 11-11-22 조회 7,369
PHP 11-11-21 조회 4,314
PHP 11-11-21 조회 2,632
MySQL 11-11-19 조회 5,296
기타 11-11-19 조회 2,958
jQuery 11-11-18 조회 6,055