Updated registerBitmapFont method