Skip to main content
Inspiring
October 17, 2013
質問

font embed dynamically problem

  • October 17, 2013
  • 返信数 1.
  • 609 ビュー

Hi I need to rotate dynamic text box, when it rotate then it's text goes unvisible, I need to embed font dynamically I tried this but it dosen't work.

function change_text(event:Event) {

    var tf:TextFormat = new TextFormat();

    tf.font = new String(font_list.selectedItem.data);

    displayer.embedFonts=true

    displayer.setTextFormat(tf);

   

    displayer.text = sampletext.text;

}

このトピックへの返信は締め切られました。

返信数 1

Inspiring
October 17, 2013
Amit Shakya作成者
Inspiring
October 17, 2013

Hi moccamaximum,

this example is only for single font embedding,I want user can change font of dynamic textbox I have load all system fonts from  Font.enumerateFonts

and user can use any font.

Inspiring
October 17, 2013

Instead of rotating the TextFiled/Area directly embed it in a sprite movieclip and rotate this.