Improved text rendering support for grid graphics
