I can't immediately see anything wrong with that - looks pretty
straightforward to me. Maybe someone else will spot something obvious!

But in the meantime, the only ideas I have are:
- Are you _sure_ the original .ttf isn't set to bold or italic under
the hood (even if it doesn't appear bold?). Try setting
fontWeight="bold" in the embed and the text format.
- Try setDefaultTextFormat(_mySilkscreenFormat) before setting the .text member.
- Does the original .ttf actually support lowercase? (It's not one of
these uppercase only pixel fonts?)

Ian

On Thu, Dec 11, 2008 at 1:47 PM,  <[EMAIL PROTECTED]> wrote:
> 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
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to