v

[ActionScript 3] TextArea embedFonts

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에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 3,311
14년 전 조회 1,450
14년 전 조회 2,480
14년 전 조회 891
14년 전 조회 2,841
14년 전 조회 1,240
14년 전 조회 1,582
14년 전 조회 4,901
14년 전 조회 1,655
14년 전 조회 821
14년 전 조회 633
14년 전 조회 1,771
14년 전 조회 857
14년 전 조회 1,229
14년 전 조회 741
14년 전 조회 732
14년 전 조회 820
14년 전 조회 4,596
14년 전 조회 1,500
14년 전 조회 848
14년 전 조회 2,105
14년 전 조회 1,577
14년 전 조회 1,408
14년 전 조회 2,833
14년 전 조회 1,944