Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

font embed dynamically problem

Explorer ,
Oct 17, 2013 Oct 17, 2013

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;

}

TOPICS
ActionScript
559
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 17, 2013 Oct 17, 2013
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 17, 2013 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 17, 2013 Oct 17, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines