I'm using: Roobert-24-Medium-table-36-36.pngRoobert-24-Medium.fnt files from the Resources/Fonts folder of the SDK but no matter how I change the .fnt file it doesn't seem to affect the font on screen. Do I also need to load the .fnt file somehow (as well as the .png)?
I was trying to adjust the spacing of "11" like it shows in the docs but it doesn't seem to be working.
Take a look through the Examples folder. A bunch of those use font loading.
Also from the docs:
Font instance functions
playdate.graphics.font:drawText(text, x, y)
Draws a string at the specified x, y coordinate using this particular font instance. (Compare to playdate.graphics.drawText(text, x, y), which draws the string with whatever the "current font", as defined by playdate.graphics.setFont(font)).
I'm doing exactly what you're showing above, and my font shows up just like it should, it just doesn't seem to take the .fnt file into account. I wanted to have more space between the one's in the number eleven just like they show in the docs (Inside Playdate - under text) but no matter what number I put in there to add more space it doesn't work.
I have tried extreme numbers and nothing happens, even the first two listings in the .fnt file don't seem to be taken into account (tracking and space) it just seems like the SDK on compiling is not using it, and I even checked the naming of the 2 files (the .png vs the .fnt) seems like a bug.
look in the resource/fonts folder - notice that each font consists of a .png and a matching .fnt file, if you look at the .fnt file with a text editor you will see two columns - the first entry or two start with space and sometimes also tracking then the rest of the file is the character on the left and a number for the width of that character, then farther down the list is special info for custom spacing, etc.
search the Inside Playdate.html for this [Sample .fnt file excerp] to see what I'm talking about, the third example down shows what I'm talking about, it's being ignored. you should be able to put some custom spacing in there on a character by character basis. Unless I'm reading that wrong.
I see what you mean. In the docs it's showing two lower case Ls. So, ll 3 put three extra pixels between two lower case Ls. Would be visible in the word wall for example.
The font editor shows this visually which I appreciate you're not able to use.
I think there's a compiler bug there--if you make a change to the fnt file and recompile the compiler doesn't realize it needs to update the compiled font because its timestamp is newer than the png file. If you delete the pdx and rebuild from scratch I believe you'll see the kerning and spacing changes.