Refactor #4028: Resolve bugs in BMFont