refactor glyph drawing into glyph+char