Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

FONT LOADER (from AxnJaxn) Sticky

A topic by ThatTomHall created 24 days ago Views: 39
Viewing posts 1 to 1
Host

This FontLoader was made for Toy Box Jam 2023 by AxnJaxn, so here is his post!


This can be modified or stripped down quite a bit, but the main takeaways are:

  • Using a stringified font produced by this cart only costs two tokens (just paste the string that running it copies to your clipboard!)
  • You can paste in your own sprite font, provided it uses color 0 for transparency; any color other than 0 is taken to be “on” because the custom fonts supported by PICO-8 are colored as usual
  • It’s configured for either variable-width or fixed-width fonts (and erases any empty space padding in the former case)
  • If you use variable width, remember that printing returns the furthest x position, so you can easily determine word wrapping by drawing off-screen

Good luck, hope this helps!

--Axnjaxn