Skip to content

[FlxBitmapFont] allow extra whitespace when parsing bmfont rows#3556

Merged
Geokureli merged 5 commits intoHaxeFlixel:devfrom
MondayHopscotch:minor-bm-parse-cleanup
Feb 15, 2026
Merged

[FlxBitmapFont] allow extra whitespace when parsing bmfont rows#3556
Geokureli merged 5 commits intoHaxeFlixel:devfrom
MondayHopscotch:minor-bm-parse-cleanup

Conversation

@MondayHopscotch
Copy link
Contributor

@MondayHopscotch MondayHopscotch commented Feb 15, 2026

Some exporters can align the columns so that the file is easier to view as a human:

char id=  32 x=    1 y=    1 width=    8 height=    8 xoffset=    0 yoffset=    0 xadvance=    8 page=0 chnl=15
char id=  33 x=   10 y=    1 width=    5 height=    8 xoffset=    0 yoffset=    0 xadvance=    5 page=0 chnl=15
char id= 101 x=   46 y=   37 width=    8 height=    8 xoffset=    0 yoffset=    0 xadvance=    8 page=0 chnl=15

The previous parsing did not allow for spaces after the =, such as this example:

char id=98 x=19 y=37 width=8 height=8 xoffset=0 yoffset=0 xadvance=8 page=0 chnl=15
char id=99 x=28 y=37 width=8 height=8 xoffset=0 yoffset=0 xadvance=8 page=0 chnl=15
char id=100 x=37 y=37 width=8 height=8 xoffset=0 yoffset=0 xadvance=8 page=0 chnl=15

@MondayHopscotch MondayHopscotch changed the title allow extra whitespace when parsing bmfont rows [FlxBitmapFont] allow extra whitespace when parsing bmfont rows Feb 15, 2026
@Geokureli
Copy link
Member

created testTextFormatWithSpaces, so that when something fails we know exactly what failed

@Geokureli Geokureli added this to the Next Patch milestone Feb 15, 2026
@Geokureli Geokureli merged commit 1ffd25b into HaxeFlixel:dev Feb 15, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants