refs #16 optimzation of text rendering