remove unused field from Glyph
remove dead code
avoid drawing grid if it is too tight