openfl / starling

Known as the "Cross-Platform Game Engine", Starling is a popular Stage3D framework for OpenFL and Haxe
Other
236 stars 68 forks source link

Bitmap Fonts Not rendering in IOS #52

Closed frankhdz closed 7 years ago

frankhdz commented 7 years ago

When targeting ios the bitmap fonts do not render.

frankhdz commented 7 years ago

code:

`var futuraFontTexture:Texture = Texture.fromBitmapData(Assets.getBitmapData("assets/fonts/mk3_0.png"), false); var futuraFontXml:Xml = Xml.parse(Assets.getText("assets/fonts/mk3.fnt")).firstElement();

        var futura:BitmapFont = new BitmapFont(futuraFontTexture,futuraFontXml);
        TextField.registerBitmapFont(futura,'futura');`
frankhdz commented 7 years ago

Nevermind I found the problem was with the font itself.