In an old-school bitmap font, a character like "o" that's five pixels wide might...

@Screwtapello@teh.entar.net

In an old-school bitmap font, a character like "o" that's five pixels wide might be allocated seven pixels of space, leaving a little gap on either side to keep it legible. On the other hand, a character like "f" that's five pixels wide might be allocated four pixels of space, allowing the next letter to nestle snugly beneath the top curl, instead of being pushed out from under it.

To keep its font rendering simple, Decker does not support this kind of per-character spacing adjustment - you get one rectangular image for each character, and a single font-wide "number of horizontal pixels between each character" setting. However, today I thought of a hack that would make it possible anyway.

Instead of having the font-wide spacing set to 0 and the "f" character having its width made narrower, you could leave the "f" character as-is, add an extra pixel of spacing to every *other* character, and set the font-wide spacing to -1. It might be a little silly, but I'm pretty sure it could work.

Unfortunately, the last time I played with Decker fonts I found an integer overflow bug that caused a crash. I reported it, it got fixed, and now all font properties in Decker are reliably clamped to the range 0..255... which means no more negative spacing. :/

#decker