Skip to content

Instantly share code, notes, and snippets.

@claudijo
Created May 26, 2022 09:52
Show Gist options
  • Save claudijo/d8f97f8e20520ec44487bf1ffd59aca0 to your computer and use it in GitHub Desktop.
Save claudijo/d8f97f8e20520ec44487bf1ffd59aca0 to your computer and use it in GitHub Desktop.
Asteroid font as multi-line strings containing x-, y-coordinates. Based on Ed Logg's handwritten notes (see for instance https://twitter.com/atari/status/1475913195814588418)
{
"0": [[[1,-1.5],[-1,-1.5],[-1,1.5],[1,1.5],[1,-1.5]]],
"1": [[[0,-1.5],[0,1.5]]],
"2": [[[1,-1.5],[-1,-1.5],[-1,0],[1,0],[1,1.5],[-1,1.5]]],
"3": [[[-1,-1.5],[1,-1.5],[1,1.5],[-1,1.5]],[[-1,0],[1,0]]],
"4": [[[-1,1.5],[-1,0],[1,0]],[[1,-1.5],[1,1.5]]],
"5": [[[-1,-1.5],[1,-1.5],[1,0],[-1,0],[-1,1.5],[1,1.5]]],
"6": [[[-1,0],[1,0],[1,-1.5],[-1,-1.5],[-1,1.5],[1,1.5]]],
"7": [[[-1,1.5],[1,1.5],[1,-1.5]]],
"8": [[[1,-1.5],[-1,-1.5],[-1,1.5],[1,1.5],[1,-1.5]],[[-1,0],[1,0]]],
"9": [[[1,0],[-1,0],[-1,1.5],[1,1.5],[1,-1.5]]],
"A": [[[-1,-1.5],[-1,0.5],[0,1.5],[1,0.5],[1,-1.5]],[[-1,-0.3],[1,-0.3]]],
"B": [[[-1,-1.5],[-1,1.5],[0.5,1.5],[1,1],[1,0.5],[0.5,0],[1,-0.5],[1,-1],[0.5,-1.5],[-1,-1.5]],[[-1,0],[0.5,0]]],
"C": [[[1,-1.5],[-1,-1.5],[-1,1.5],[1,1.5]]],
"D": [[[-1,-1.5],[-1,1.5],[0,1.5],[1,0.5],[1,-0.5],[0,-1.5],[-1,-1.5]]],
"E": [[[1,-1.5],[-1,-1.5],[-1,1.5],[1,1.5]],[[-1,0],[0.5,0]]],
"F": [[[-1,-1.5],[-1,1.5],[1,1.5]],[[-1,0],[0.5,0]]],
"G": [[[0,-0.5],[1,-0.5],[1,-1.5],[1,-1.5],[-1,-1.5],[-1,1.5],[1,1.5],[1,0.5]]],
"H": [[[-1,-1.5],[-1,1.5]],[[-1,0],[1,0]],[[1,-1.5],[1,1.5]]],
"I": [[[-1,-1.5],[1,-1.5]],[[0,-1.5],[0,1.5]],[[-1,1.5],[1,1.5]]],
"J": [[[-1,-0.5],[0,-1.5],[1,-1.5],[1,1.5]]],
"K": [[[-1,-1.5],[-1,1.5]],[[0.8,-1.5],[-1,0],[0.8,1.5]]],
"L": [[[1,-1.5],[-1,-1.5],[-1,1.5]]],
"M": [[[-1,-1.5],[-1,1.5],[0,0.5],[1,1.5],[1,-1.5]]],
"N": [[[-1,-1.5],[-1,1.5],[1,-1.5],[1,1.5]]],
"O": [[[1,-1.5],[-1,-1.5],[-1,1.5],[1,1.5],[1,-1.5]]],
"P": [[[-1,-1.5],[-1,1.5],[1,1.5],[1,0],[-1,0],[1,0]]],
"Q": [[[-1,-1.5],[-1,1.5],[1,1.5],[1,-0.5],[0,-1.5],[-1,-1.5]],[[0,-0.5],[1,-1.5]]],
"R": [[[-1,-1.5],[-1,1.5],[1,1.5],[1,0],[-1,0],[1,0]],[[-0.5,0],[1,-1.5]]],
"S": [[[-1,-1.5],[1,-1.5],[1,0],[-1,0],[-1,1.5],[1,1.5]]],
"T": [[[0,-1.5],[0,1.5]],[[-1,1.5],[1,1.5]]],
"U": [[[1,1.5],[1,-1.5],[-1,-1.5],[-1,1.5]]],
"V": [[[-1,1.5],[0,-1.5],[1,1.5]]],
"W": [[[-1,1.5],[-1,-1.5],[0,-0.5],[1,-1.5],[1,1.5]]],
"X": [[[-1,-1.5],[1,1.5]],[[-1,1.5],[1,-1.5]]],
"Y": [[[-1,1.5],[0,0.5],[1,1.5]],[[0,-1.5],[0,0.5]]],
"Z": [[[1,-1.5],[-1,-1.5],[1,1.5],[-1,1.5]]],
":": [[[0,0.5],[0,0.5]],[[0,-0.5],[0,-0.5]]],
"_": [[[-1,-1.5],[1,-1.5]]]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment