v

[ActionScript 3] TextArea embedFonts

· 14년 전 · 1967
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);
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

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

+
분류 제목 글쓴이 날짜 조회
Flash 14년 전 조회 3,250
기타 14년 전 조회 2,254
JavaScript 14년 전 조회 2,461
jQuery 14년 전 조회 4,015
Flash 14년 전 조회 3,407
JavaScript 14년 전 조회 2,474
jQuery 14년 전 조회 9,298
JavaScript 14년 전 조회 1,716
Flash 14년 전 조회 2,337
PHP 14년 전 조회 2,843
PHP 14년 전 조회 3,540
jQuery 14년 전 조회 2,878
기타 14년 전 조회 1,953
PHP 14년 전 조회 4,744
기타 14년 전 조회 1,968
Flash 14년 전 조회 2,138
JavaScript 14년 전 조회 1,843
PHP 14년 전 조회 2,644
JavaScript 14년 전 조회 2,201
jQuery 14년 전 조회 7,202
PHP 14년 전 조회 4,120
PHP 14년 전 조회 2,472
MySQL 14년 전 조회 5,117
기타 14년 전 조회 2,785
jQuery 14년 전 조회 5,873
PHP 14년 전 조회 7,799
PHP 14년 전 조회 2,342
PHP 14년 전 조회 2,446
JavaScript 14년 전 조회 1,817
PHP 14년 전 조회 2,456