TextAreaPainter.java - Chinese and tabs

This is a merge of @hoshi-sano 's #2318 for #2173 and half of my #2244 which fixes #2180. Tested tabs only, but I assume Hoshi did his bit OK.