bitmap font related bug fixes