PrimaryFeather/Starling-Framework — Issue #66: starling.text.BitmapFont.as Parsing Error. ( Line 123 )
Author: jamieowen
Created: 2012-02-17 19:16:56+00:00
State: open

Hi,

I've come across an instance where a .fnt XML exported from GlyphDesigner includes kerning information for a character that isn't defined in the block.

The BitmapFont class throws a null reference error in the parseFontXml() method in the BitmapFont class.
As it doesn't check if a BitmapChar exists when calling getChar( id ) to insert the kerning info.

Its an easy fix!

Cheers,

Jamie