v

[ActionScript 3] TextArea embedFonts

· 14년 전 · 1961
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,243
기타 14년 전 조회 2,248
JavaScript 14년 전 조회 2,455
jQuery 14년 전 조회 4,010
Flash 14년 전 조회 3,402
JavaScript 14년 전 조회 2,467
jQuery 14년 전 조회 9,287
JavaScript 14년 전 조회 1,708
Flash 14년 전 조회 2,329
PHP 14년 전 조회 2,838
PHP 14년 전 조회 3,535
jQuery 14년 전 조회 2,873
기타 14년 전 조회 1,948
PHP 14년 전 조회 4,739
기타 14년 전 조회 1,962
Flash 14년 전 조회 2,131
JavaScript 14년 전 조회 1,836
PHP 14년 전 조회 2,636
JavaScript 14년 전 조회 2,194
jQuery 14년 전 조회 7,194
PHP 14년 전 조회 4,112
PHP 14년 전 조회 2,463
MySQL 14년 전 조회 5,113
기타 14년 전 조회 2,779
jQuery 14년 전 조회 5,868
PHP 14년 전 조회 7,794
PHP 14년 전 조회 2,336
PHP 14년 전 조회 2,441
JavaScript 14년 전 조회 1,811
PHP 14년 전 조회 2,450