CAPS generates bogus font file

Any edit to the cursor glyphs: :arrow_up::arrow_right::arrow_down::arrow_left: generates an invalid file when starting from the Roobert-10-Bold SDK font.

Note that these glyphs are working in game/vscode but are incorrectly displayed as 2 characters in caps:
image

Compiler gives the following error:

.../Source/font/Roobert-10-White.fnt has 345 entries, but there are only 342 images in the table

Note: I have other fonts with these cursor glyphs that are compiling just fine!

Anything I can do while waiting for a fix?

Regards

Roobert-10-White.zip (15.7 KB)

You can use tophat (in prefer it)

thanks but looks like I am cursed - tophat font still breaks compiler with a different error:

/Source/font/Roobert-10-Black.fnt: encountered kerning data before spacing entries concluded, line 1107

:disappointed_relieved:
Roobert-10-Black.zip (16.7 KB)

This file seems to have both old and new kerning data. I would try opening in text editor and deleting the whole metrics line. Or replace it with default metrics from a "blank" fnt

The kerning data I'd expect is at the bottom of the file.

I'm out and about so I can't try it myself.

ok - will try and report

Fixed by removing:

  • all double char entries (y* ...)
  • double left/right/... entries, CAPS (and VScode) is totally confused by:
    image

One of these Unicode days I guess!

1 Like

The most minimal fix for me was removing only line 347.

image