reformat and fine tune some code
add TextBufferTest for unit test
update the uneffective concept to draw texturefont in TextBuffer