fix glyph metrics retrieval, esp. for spaces
add text selection rendering