Hi all. I've spent the last two weeks writing an open-source Rust BMFont parser that works with text, XML, and binary BMFont formats.
The homepage is here: https://github.com/shampoofactory/bmfont_rs
However, I have a question that I need help with.
Based on the `Bitmap Font Generator - Documentation` my understanding is that the binary file is the de facto standard when it comes to defining the content and the other formats reflect this. For example, common::lineHeight is a size 2 unsigned integer, and not a string, a boolean, an elephant, or anything else.
However, I've noted that some tools, like Hiero (https://github.com/libgdx/libgdx/wiki/Hiero) produce output like this:
`info face="Arial Black" size=33 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=0,0,0,1 spacing=-2,-2`
Here `spacing` is negative, whereas the binary format defines it as a size 1 unsigned integer. This line cannot be encoded into a valid BMFont binary info block.
Question: Is Hiero incorrect, or am I incorrect in my interpretation. If Heiro is incorrect, I think there is already a ticket about this, I can try and assist in submitting a patch. If I am incorrect, then how do I determine the parameter types for text format files?