Skip to content

five-on-it / apps/client/src/fonts/fonts

apps/client/src/fonts/fonts ​

The game's one typeface: Changa (Changa-VariableFont_wght.ttf, weights 200 to 800, under the SIL Open Font License beside it), for every text of the game and its menus: the overlay (fonts.css sets --foi-font and the page's), the in-game GUI (gui/theme.ts), the minimap's and the scene's canvas text and the galleries' labels. Changa has no symbols (the HUD's stars, arrows and ticks): the stack falls back to the system's for those.

The GUI measures text on a canvas and keeps the widths, so the page waits for the face (loadFonts) before anything draws text.

Variables ​

Functions ​