Hi guys,
I use ```Label::createWithBMFont(“font.fnt”, “1000000”);```` to create a label. But when it’s showing, I realize that a strange space appears in the string as an image below:
I used ShoeBox to create it for a long time ago. But after updating to macOS Catalina, I cannot use that ShoeBox anymore, so I cannot show a step by step as you want.
Is there any way to debug my issue?
If you have a Windows PC or virtual machine (like with VirtualBox), then you can still run ShoeBox.
As for debugging, sure, you have access to the full source code, so load up the debugger and step through the source. It happens on any value you pass to the label, so just use a value like 100 to simplify things a bit. The last character always has that strange space, so you should be able to track down why it happens.
Well, there you go, you’ve found a possible clue as to the cause. It may have something to do with the code that handles the kerning, and it makes sense to check that section of code too since the bug is related to the space between characters.