Complete
over 3 years ago

FNT file parsing

I don't know if FNT file has strict definition but some hard-to-find errors (even no line number with error) could be eliminated by removing excessive whitespace

1.space in last line
char id=117   x=42   y=101    width=20    height=20    xoffset=0     yoffset=0    xadvance=20    page=0  chnl=15
 <---- here one space
BUILD: ERROR: Index 0 out of bounds for length 0
BUILD: ERROR: null
BUILD: WARNING: The launcher icon (30x30) isn't compatible with the specified launcher icon size of the device 'fenix6pro' (40x40). Image will be scaled to the target size.
BUILD: Complete
Aborting launch due to failed build.

2. space inside
char id=107   x=178   y=79    width=19    height=19    xoffset=0     yoffset=4    xadvance=19    page=0  chnl=15
 char id=108   x=218   y=99    width=11    height=11    xoffset=0     yoffset=0    xadvance=11    page=0  chnl=15
char id=110   x=84   y=101    width=20    height=20    xoffset=0     yoffset=0    xadvance=20    page=0  chnl=15

BUILD: ERROR: "char" is not a valid key/value pair.
BUILD: ERROR: null
BUILD: WARNING: The launcher icon (30x30) isn't compatible with the specified launcher icon size of the device 'fenix6pro' (40x40). Image will be scaled to the target size.
BUILD: Complete
Aborting launch due to failed build.

3.TAB between values
char id=117   x=42   y=101    width=20    height=20    xoffset=0     yoffset=0    xadvance=20    page=0  chnl=15
                              ^--- here TAB
BUILD: ERROR: null
BUILD: ERROR: null
BUILD: WARNING: The launcher icon (30x30) isn't compatible with the specified launcher icon size of the device 'fenix6pro' (40x40). Image will be scaled to the target size.
BUILD: Complete
Aborting launch due to failed build.