added font smoothing to glyph rendering, some cleanup