Improved bitmap font and fixed memory violation