finish implementing glyph_lookup and restore accidentally killed
code.
calculate glyph_tile_base when looking up a glyph.
factor out tile base number calculation.