Check the code out:
var letters:String = " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!?\"#%&'()*+,-./[]\\0123456789";
font = new PxBitmapFont().loadPixelizer(Assets.getBitmapData(AssetPaths.gamefont__png), letters); bmt = new FlxBitmapTextField(font); bmt.setPosition(50, 50); bmt.text = "Hello World!\nand this is\nmultiline!!!"; bmt.fixedWidth = false; bmt.multiLine = true; bmt.lineSpacing = 8; bmt.padding = 0;
add(bmt);
And here's my bitmap font:
I'm trying to use it because FlxText gets blurred on html5 which is my target platform.
I tested it on flash and html5, and my current game resolution is this:
gameWidth = 240;
gameHeight = 160;
Thanks in advance and I'm sorry if I'm making a stupid mistake!