Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

661 B
Raw Blame
/* Subway Surfers: the fonts (assets.c, made by tools/assets.py). */
#ifndef SS_ASSETS_H
#define SS_ASSETS_H
#include <stdint.h>

typedef struct {
  uint8_t w, h;
  int8_t x, y;      /* the top-left pixel from the pen (y from the baseline) */
  uint8_t advance;
  uint16_t offset;  /* into data: 4-bit coverage, two pixels a byte, row by row */
} Glyph;

typedef struct {
  uint8_t first, count, ascent, descent;
  const Glyph *glyphs;
  const uint8_t *data;
  const Glyph *outline[2];    /* the letters grown by 1 and 2 pixels (and 1 lower): their outline */
  const uint8_t *outline_data[2];
} Font;

extern const Font font_big, font_mid, font_small;

#endif