Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

tcsc

2
Posts
5
Followers
4
Following
A member registered Aug 25, 2016 · View creator page →

Creator of

Recent community posts

(1 edit)

Forgot about this since I solved it myself with a small shell script and `jq` but: With the JSON (as distributed) and PNGs alone (e.g. for engines that don't use XML, TOML, or QOI), the combined set of all font files comes out to around ~54MB.

If you strip all the unnecessary white-space from the JSON files in this, it shrinks from ~54MB to around ~31MB, saving around ~23MB, which is fairly significant. Some math indicates that this means around ~43% of the combined PNG+JSON data is JSON white-space with no semantic meaning. (Sorry in advance if I flubbed the numbers here a bit, but I don't think I did)

That said, it's not that hard to strip, and realistically people who care are probably either doing this already or shipping the JSON data in a compressed format, or both.

(For anybody else using fish-shell (pretty niche I know, but maybe it'll help someone), if you have `jq` installed, then running `for file in **/*.json; set -l json (cat $file | jq -c); echo "$json" > $file; end` will remove all the semantically-meaningless white-space from the JSON).

(1 edit)

Tremendous work. Some of these are downright gorgeous. If anybody is on the fence about this pack, it's a bit pricey but you won't find a better one(although with 175 fonts, it works out to around 57 cents per font, which ain't bad). No matter what your games vibe is, there's a font that fits it. (Also, this is the only one I've seen that provides bitmap font data that includes non-ASCII characters and kerning info... real great)

That said, if Chevy is reading these, I have two suggestions for a future version of this (seems unlikely but I didn't expect a second pack either):

1. A more trivial comment is that it also might be worth stripping unnecessary whitespace from the JSON (and probably XML) in the `packed/` folders, so that it can be used more directly.

2. In a future pack, a monospace font with exactly a 1:2 width:height ratio (for example, width=7 height=14 or width=10 height=20) is something that i'd love. Makes rendering easy in traditional roguelike games that have 'tiles' modes. Still, it's pretty minor.