glyph_l = {}
glyph_r = {}
glyph_w = {}
function g_init(char, l, r) --this saves to an array the left and right pixels, as well as the width of each character, and the character's string is the index
glyph_l[char] = l
glyph_r[char] = r
glyph_w[char] = r-l+1
end
--glyph_w = {} --precalculate this so it's faster on the text drawing system
g_init('0',1,3)
g_init('1',5,7)
g_init('2',9,11)
g_init('3',13,15)
g_init('4',17,19)
g_init('5',21,23)
g_init('6',25,27)
g_init('7',29,31)
g_init('8',33,35)
g_init('9',37,39)
g_init('A',41,43)
g_init('B',45,47)
g_init('C',49,51)
g_init('D',53,55)
g_init('E',57,59)
g_init('F',61,63)
g_init('G',65,67)
g_init('H',69,71)
g_init('I',73,75)
g_init('J',77,79)
g_init('K',81,83)
g_init('L',85,87)
g_init('M',89,95)
g_init('N',97,99)
g_init('O',101,103)
g_init('P',105,107)
g_init('Q',109,111)
g_init('R',113,115)
g_init('S',117,119)
g_init('T',121,123)
g_init('U',125,127)
g_init('V',129,131)
g_init('W',133,139)
g_init('X',141,143)
g_init('Y',145,147)
g_init('Z',149,151)
g_init("'",153,155)
g_init('*',157,159)
g_init(':',161,163)
g_init('[',165,167)
g_init(']',169,171)
g_init('(',173,175)
g_init(')',177,179)
g_init('=',181,183)
g_init('!',185,187)
g_init('/',189,191)
--glyph_l[string.char(0x08)],glyph_r[string.char(0x08)] = 193,195
g_init('>',197,199)
g_init('<',201,203)
g_init('-',205,207)
g_init('%',209,211)
g_init('.',213,215)
g_init('|',217,219)
g_init('+',221,223)
g_init('^',225,227)
g_init('?',229,231)
g_init('"',233,235)
g_init('_',237,239)
g_init(',',241,243)
g_init(';',245,247)
g_init(' ',249,251)