It is a non-bold 8 pixel bitmap font. Here is my code.

package {

        // Flash Packages
        import flash.display.Sprite;
        import flash.display.StageScaleMode;
        import flash.events.*;
        import flash.text.TextField;
        import flash.text.TextFormat;
        import flash.text.StyleSheet;
        
        // Setup the SWF Properties
        [SWF(backgroundColor="#FFFFFF", frameRate="30", width="1000", 
height="600", quality="HIGH")]
        
        public class EmbedFont extends Sprite {

                // Embed Silkscreen Bitmap Font
                [Embed(source="assets/fonts/silkscreen.ttf", 
fontName="mySilkscreen", mimeType="application/x-font-truetype")]
                private var mySilkscreen:Class;
                private var _mySilkscreenFormat:TextFormat;
                private var _myEmbedBitmapText:TextField;
                private var _container:Sprite;

                public function EmbedFont() {
                        stage.scaleMode = StageScaleMode.NO_SCALE;
                        _mySilkscreenFormat = new TextFormat();
                        _mySilkscreenFormat.font = "mySilkscreen";
                        _mySilkscreenFormat.size = 8;
                        _myEmbedBitmapText = new TextField();
                        _myEmbedBitmapText.text = "this is silkscreen";
                        _myEmbedBitmapText.setTextFormat(_mySilkscreenFormat);
                        addChild(_myEmbedBitmapText);
                }
                
        }
}

--
Write, shoot, direct, edit your own movies.  Click here to request information.
 
http://tagline.hushmail.com/fc/PnY6qxsZP8W6bEoKKL58CZrfALeP0WmZbBPYJmUoSCkIf4C5fyeFh/

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to