A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: TextField Embed Problem

  1. #1
    strandedgenius.com
    Join Date
    Apr 2005
    Location
    Toronto
    Posts
    187

    TextField Embed Problem

    I've been looking over the internet for hours. I know there are different methods for embedding fonts, but this seems to be the simplest. It's documented so it should work... right?

    Code:
    import flash.text.*;
    
    var menuFormat:TextFormat = new TextFormat();
    menuFormat.font = "Gilly";
    //embedded a font through the library and named it "Gilly"
    menuFormat.size = 10;
    menuFormat.kerning = .5;
    
    
    var menuText:TextField = new TextField();
    menuText.text = "hi I'm a test";
    menuText.textColor = 0xFFFFFF;
    menuText.embedFonts = true;
    menuText.antiAliasType = AntiAliasType.ADVANCED;
    menuText.thickness = 250;
    menuText.sharpness = -300;
    menuText.mouseEnabled = false;
    menuText.selectable = false;
    menuText.autoSize = TextFieldAutoSize.CENTER;
    menuText.setTextFormat( menuFormat );
    
    addChild( menuText );
    Basically the font simply won't show
    JScarlip,
    That Was Nice!

  2. #2
    strandedgenius.com
    Join Date
    Apr 2005
    Location
    Toronto
    Posts
    187
    Oh, also I'm using Flash CS3 on Windows Vista. Maybe that means something.
    JScarlip,
    That Was Nice!

  3. #3
    strandedgenius.com
    Join Date
    Apr 2005
    Location
    Toronto
    Posts
    187
    None of you have any solutions? I've looked at other posts, some of them say that embedFonts simply doesn't work. Is this true?
    JScarlip,
    That Was Nice!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center