Textrenderingfix

This pull request fixes text regressions, also included two sample files to test the text rendering. 
Add a space after keywords.