AS3 새 텍스트 상자가 특정 글꼴을 사용합니다

// 포함 된 글꼴 얻기 
			var에 fontClass : 클래스 =의 getDefinitionByName ( "ArialFontDt") 클래스 AS를, 
			글꼴 가입 // 
			Font.registerFont (fontClass를); 
			var에 TF를 다음의 TextFormat을의 TextFormat = 새 새 (); 
			tf.font = "굴림"; 
			= pySize의 tf.size, 
			tf.letterSpacing = 10; 
			var에 TXT 다음 텍스트 필드는 TextField = 새 새 (); 
			// 포함 된 글꼴 
			true로 txt.embedFonts의 =; 
			txt.text = pyContent, 
			txt.setTextFormat (TF)는, 

			스프라이트를 py_gra = 새로운 새로운 (); 
			py_gra.addChild (TXT) 
			this.addChild (py_gra);

  

추천

출처www.cnblogs.com/dt1991/p/11606209.html