-
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
-
Oh, also I'm using Flash CS3 on Windows Vista. Maybe that means something.
-
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|