ElNico56 / retro-gadgets-fonts

fonts for retro gadgets, duh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

retro-gadgets-fonts

fonts for retro gadgets, duh

how to install

  1. import tprint.lua into your gadget
  2. import one of the font files into your gadget, make sure its spritesize is 8x8
  3. in your code, copy the width table and height of the font
  4. also in code, get the spritesheet for the font

example usecase

-- EXAMPLE USE
local vChip:VideoChip = gdt.VideoChip0
local rom:ROM = gdt.ROM

local Tprint = require("tprint.lua")

local fontsheet:SpriteSheet = rom.User.Assets["font1.png"]
local font_w:{number} = {[32]=4, [33]=6, [34]=6, [35]=6, [36]=8, [38]=8, [39]=3, [40]=5, [41]=5, [42]=6, [44]=3, [45]=6, [46]=3, [47]=5, [58]=3, [59]=3, [60]=6, [61]=6, [62]=6, [63]=8, [64]=8, [73]=5, [77]=8, [78]=8, [87]=8, [90]=8, [91]=6, [92]=5, [93]=6, [94]=8, [95]=8, [96]=3, [102]=5, [105]=3, [106]=6, [107]=6, [108]=4, [109]=8, [114]=5, [116]=5, [119]=8, [123]=6, [124]=3, [125]=6, [126]=8, _=7}
local font_h:number = 8

-- ticker func
function update ()
	vChip:Clear(color.black)
	Tprint(vChip, vec2(0,0), fontsheet, "Some Text", font_w, font_h)
end
-- EXAMPLE USE

width tables

classic_sans:

  • widths = {[32]=4, [33]=6, [34]=6, [35]=6, [36]=8, [38]=8, [39]=3, [40]=5, [41]=5, [42]=6, [44]=3, [45]=6, [46]=3, [47]=5, [58]=3, [59]=3, [60]=6, [61]=6, [62]=6, [63]=8, [64]=8, [73]=5, [77]=8, [78]=8, [87]=8, [90]=8, [91]=6, [92]=5, [93]=6, [94]=8, [95]=8, [96]=3, [102]=5, [105]=3, [106]=6, [107]=6, [108]=4, [109]=8, [114]=5, [116]=5, [119]=8, [123]=6, [124]=3, [125]=6, [126]=8, _=7}
  • height = 8

classic_serif:

  • widths = {[32]=4, [33]=5, [34]=6, [35]=8, [38]=8, [39]=3, [40]=5, [41]=5, [44]=4, [46]=3, [58]=3, [59]=4, [60]=6, [62]=6, [66]=8, [67]=8, [68]=8, [69]=8, [70]=8, [71]=8, [73]=5, [74]=8, [75]=8, [76]=8, [77]=8, [78]=8, [79]=8, [80]=8, [81]=8, [82]=8, [85]=8, [87]=8, [88]=8, [90]=8, [91]=5, [93]=5, [94]=6, [95]=8, [96]=3, [97]=8, [98]=8, [100]=8, [103]=8, [104]=8, [105]=5, [107]=8, [108]=5, [109]=8, [110]=8, [112]=8, [113]=8, [114]=8, [117]=8, [119]=8, [120]=8, [124]=3, [126]=8, _=7}
  • height = 8

plain:

  • widths = {[32]=4, [33]=2, [34]=4, [39]=2, [40]=4, [41]=4, [42]=4, [43]=4, [44]=3, [45]=4, [46]=2, [49]=4, [58]=2, [59]=3, [60]=4, [61]=4, [62]=4, [73]=4, [76]=4, [91]=4, [93]=4, [94]=4, [96]=3, [97]=5, [98]=5, [99]=5, [100]=5, [101]=5, [102]=5, [103]=5, [104]=5, [105]=3, [106]=4, [107]=5, [108]=4, [110]=5, [111]=5, [112]=5, [113]=5, [114]=5, [115]=5, [116]=4, [117]=5, [120]=5, [121]=5, [122]=5, [123]=4, [124]=2, [125]=4, _=6}
  • height = 6

tall:

  • widths = {[32]=3, [33]=2, [39]=2, [40]=3, [41]=3, [44]=2, [46]=2, [58]=2, [59]=2, [91]=3, [93]=3, [96]=3, [124]=2, _=4}
  • height = 9

micro:

  • widths = {[32]=2, [33]=2, [39]=2, [40]=3, [41]=3, [44]=2, [46]=2, [58]=2, [59]=2, [60]=3, [91]=3, [93]=3, [96]=3, [105]=2, [108]=3, [112]=3, [113]=3, [114]=3, [124]=2, _=4}
  • height = 5

west:

  • widths = {[32]=5, [33]=3, [34]=6, [36]=7, [38]=7, [39]=3, [40]=5, [41]=5, [42]=9, [43]=7, [44]=3, [45]=7, [46]=3, [49]=5, [58]=3, [59]=3, [60]=6, [61]=7, [62]=6, [63]=7, [66]=7, [67]=7, [68]=7, [69]=7, [70]=7, [71]=7, [73]=4, [74]=7, [76]=7, [79]=7, [83]=7, [90]=7, [91]=5, [93]=5, [94]=6, [96]=3, [98]=7, [99]=7, [100]=7, [101]=7, [102]=7, [103]=7, [105]=4, [106]=7, [108]=7, [111]=7, [115]=7, [122]=7, [123]=5, [124]=3, [125]=5, _=8}
  • height = 8

mining:

  • widths = {[32]=4, [33]=2, [34]=4, [39]=2, [40]=4, [41]=4, [42]=4, [44]=2, [46]=2, [58]=2, [59]=2, [60]=5, [62]=5, [64]=7, [73]=4, [91]=4, [93]=4, [96]=3, [102]=5, [105]=2, [107]=5, [108]=3, [116]=4, [123]=4, [124]=2, [125]=4, [126]=7, _=6}
  • height = 9

scifi:

  • widths = {[32]=4, [33]=4, [34]=4, [39]=2, [40]=3, [41]=3, [42]=4, [43]=4, [44]=3, [45]=4, [46]=2, [47]=4, [58]=2, [59]=3, [60]=5, [62]=5, [91]=4, [92]=4, [93]=4, [94]=4, [96]=3, [102]=4, [105]=4, [108]=3, [114]=4, [123]=4, [124]=2, [125]=4, _=6}
  • height = 8

rapture:

  • widths = {[32]=6, [33]=4, [39]=3, [40]=5, [41]=5, [44]=3, [45]=4, [46]=3, [52]=7, [54]=7, [56]=7, [57]=7, [58]=3, [59]=3, [65]=7, [66]=7, [67]=7, [68]=7, [71]=7, [72]=7, [74]=7, [75]=7, [77]=7, [78]=7, [79]=7, [80]=7, [81]=7, [82]=7, [85]=7, [86]=7, [87]=7, [88]=7, [89]=7, [94]=4, [96]=3, [97]=7, [98]=7, [99]=7, [100]=7, [101]=7, [103]=7, [104]=7, [107]=7, [109]=7, [110]=7, [111]=7, [112]=7, [113]=7, [117]=7, [118]=7, [119]=7, [120]=7, [121]=7, [124]=4, _=6}
  • height = 8

complete_chubby:

  • widths = {[32]=4, [33]=2, [34]=4, [35]=6, [36]=4, [38]=6, [39]=2, [40]=3, [41]=3, [42]=4, [43]=4, [44]=3, [45]=4, [46]=2, [49]=4, [58]=2, [59]=3, [60]=4, [61]=4, [62]=4, [63]=6, [64]=6, [65]=6, [66]=6, [67]=6, [68]=6, [69]=6, [70]=6, [71]=6, [72]=6, [73]=4, [75]=6, [77]=6, [78]=6, [79]=6, [80]=6, [81]=6, [82]=6, [83]=6, [84]=6, [85]=6, [86]=6, [87]=6, [88]=6, [89]=6, [90]=6, [91]=4, [93]=4, [94]=6, [95]=6, [96]=3, [102]=4, [105]=4, [108]=4, [114]=4, [116]=4, [123]=4, [124]=2, [125]=4, [126]=6, _=5}
  • height = 8

complete_slim:

  • widths = {[32]=4, [33]=2, [35]=6, [37]=5, [38]=6, [39]=2, [44]=3, [46]=2, [47]=5, [48]=5, [50]=5, [51]=5, [52]=5, [53]=5, [54]=5, [55]=5, [56]=5, [57]=5, [58]=2, [59]=3, [63]=6, [64]=6, [65]=5, [66]=5, [67]=5, [68]=5, [69]=5, [70]=5, [71]=5, [72]=5, [74]=5, [75]=5, [76]=5, [77]=6, [78]=5, [79]=5, [80]=5, [81]=5, [82]=5, [83]=5, [84]=6, [85]=5, [86]=6, [87]=6, [88]=6, [89]=6, [90]=5, [92]=5, [94]=6, [95]=6, [96]=3, [105]=2, [108]=2, [109]=5, [119]=5, [124]=2, [126]=6, _=4}
  • height = 8

boldest:

  • widths = {[32]=4, [33]=3, [35]=8, [39]=3, [40]=5, [41]=5, [44]=3, [46]=3, [58]=3, [59]=3, [96]=4, [105]=3, [108]=5, [114]=5, [124]=3, _=7}
  • height = 9

polybius:

  • widths = {[32]=3, [33]=3, [39]=3, [44]=3, [46]=3, [58]=3, [59]=3, [73]=3, [96]=3, [102]=5, [105]=5, [108]=5, [114]=5, [116]=5, [124]=3, _=6}
  • height = 7

arcade:

  • widths = {[32]=3, [33]=3, [34]=4, [37]=6, [39]=2, [40]=5, [41]=5, [42]=4, [43]=4, [44]=2, [45]=4, [46]=2, [47]=6, [49]=3, [58]=2, [59]=2, [60]=5, [61]=4, [62]=5, [69]=6, [70]=6, [73]=3, [74]=6, [76]=5, [80]=6, [84]=6, [91]=5, [92]=6, [93]=5, [94]=6, [96]=3, [97]=6, [98]=6, [99]=6, [100]=6, [101]=6, [102]=4, [103]=6, [104]=6, [105]=3, [106]=5, [107]=6, [108]=3, [109]=8, [110]=6, [111]=6, [112]=6, [113]=6, [114]=5, [115]=6, [116]=4, [117]=6, [118]=6, [119]=8, [120]=6, [121]=6, [122]=6, [123]=6, [124]=3, [125]=6, [126]=6, _=7}
  • height = 8

scroll:

  • widths = {[32]=4, [33]=2, [39]=2, [40]=3, [41]=3, [44]=3, [46]=2, [58]=2, [59]=3, [65]=6, [66]=6, [67]=5, [68]=6, [69]=6, [70]=6, [71]=5, [72]=6, [73]=5, [74]=6, [75]=6, [76]=6, [77]=6, [78]=6, [79]=6, [80]=6, [81]=6, [82]=6, [83]=6, [84]=6, [85]=6, [86]=6, [87]=6, [88]=6, [89]=6, [90]=6, [91]=3, [93]=3, [96]=3, [97]=5, [98]=5, [99]=5, [100]=5, [101]=5, [102]=5, [103]=5, [104]=5, [105]=5, [107]=5, [109]=6, [110]=5, [112]=5, [113]=5, [114]=5, [115]=5, [116]=5, [117]=5, [118]=6, [119]=6, [120]=6, [121]=5, [122]=6, [124]=2, _=4}
  • height = 7

electro:

  • widths = {[32]=3, [33]=2, [34]=4, [39]=3, [40]=3, [41]=3, [43]=4, [44]=3, [45]=4, [46]=2, [58]=2, [59]=3, [60]=4, [61]=4, [62]=4, [63]=5, [91]=3, [93]=3, [95]=5, [96]=3, [105]=4, [108]=5, [123]=4, [124]=2, [125]=4, [126]=5, _=6}
  • height = 6

bubb:

  • widths = {[32]=3, [33]=4, [36]=7, [38]=9, [39]=4, [40]=5, [41]=5, [43]=7, [44]=4, [45]=7, [46]=3, [47]=9, [49]=4, [53]=7, [54]=7, [55]=7, [56]=7, [57]=7, [58]=4, [59]=5, [60]=7, [62]=7, [63]=6, [64]=7, [73]=4, [74]=7, [91]=6, [92]=9, [93]=5, [94]=7, [95]=7, [96]=4, [98]=7, [99]=7, [102]=6, [105]=4, [106]=7, [108]=4, [113]=7, [115]=7, [116]=6, [120]=9, [121]=7, [122]=7, [123]=5, [124]=4, [125]=5, _=8}
  • height = 9

standard:

  • widths = {[32]=1, [33]=2, [35]=6, [38]=5, [39]=2, [40]=3, [41]=3, [44]=3, [46]=2, [58]=2, [59]=3, [60]=3, [62]=3, [64]=6, [91]=3, [93]=3, [96]=3, [105]=2, [106]=3, [108]=3, [124]=2, [126]=6, _=4} -height = 8

About

fonts for retro gadgets, duh

License:Creative Commons Zero v1.0 Universal


Languages

Language:Lua 100.0%