v

[ActionScript 3] TextArea embedFonts

· 2011-11-22 (화) 11:10:46 · 2198
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,571
PHP 11-11-29 조회 7,197
기타 11-11-29 조회 2,677
Linux 11-11-28 조회 3,487
JavaScript 11-11-28 조회 2,511
Flash 11-11-27 조회 3,458
기타 11-11-26 조회 2,457
JavaScript 11-11-26 조회 2,697
jQuery 11-11-26 조회 4,217
Flash 11-11-25 조회 3,662
JavaScript 11-11-25 조회 2,685
jQuery 11-11-24 조회 9,531
JavaScript 11-11-24 조회 1,917
Flash 11-11-23 조회 2,576
PHP 11-11-23 조회 3,058
PHP 11-11-23 조회 3,788
jQuery 11-11-22 조회 3,098
기타 11-11-22 조회 2,158
PHP 11-11-22 조회 4,973
기타 11-11-22 조회 2,199
Flash 11-11-22 조회 2,354
JavaScript 11-11-22 조회 2,066
PHP 11-11-22 조회 2,881
JavaScript 11-11-22 조회 2,402
jQuery 11-11-22 조회 7,402
PHP 11-11-21 조회 4,343
PHP 11-11-21 조회 2,655
MySQL 11-11-19 조회 5,317
기타 11-11-19 조회 2,981
jQuery 11-11-18 조회 6,089