Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Pixel Font Converter!

Lets you create your own TTF fonts out of pixel font images! · By YellowAfterlife

Kerning with space?

A topic by Phildjii created Jul 16, 2021 Views: 354 Replies: 3
Viewing posts 1 to 3
(1 edit)

Is there a way to specify kerning for a character before a space?

The reason I ask is I am making a duospaced font, so I can't use the monospace option. For characters that don't cover the whole tile, it is a problem because for example in Pixelfont the dot character is 3 pixel wide (single pixel centered in a 5px tile) instead of 5:

The trick it to add 2px between the dot and the next character. It works fine, expect I found no way to specify "increase kerning by 2px between a dot and a space". So with most ponctuation followed by a space, kerning is narrower than expected:

(top line is with monospace option, bottom one is my attempt at duospace)

Developer

There is not, but I can add something if you have ideas as to how to represent this in font glyph images or the kerning table.

What about using ""  (U+2420) which is "Symbol For Space"? I doubt anyone would actually use it for what it is in PixelFont :)

(2 edits)

It is tricky. In the kerning table we could escape it like "\  " (backslash space) but that would be hard to read.
Or perhaps "\s"? As in regex it "matches whitespace".

Another way would be to use a double character, something legible like "!!"

I'm not sure it would be practical in glyph images, that would probably require some color coding, like "red indicates width".