text: Fix problem with right aligned text spanning multiple lines

refs #2060
Fix various bugs related to font loading and improve glyph caching

refs #2060