Skip to main content
Inspiring
October 17, 2013
Question

font embed dynamically problem

  • October 17, 2013
  • 1 reply
  • 608 views

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;

}

This topic has been closed for replies.

1 reply

Inspiring
October 17, 2013
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.