Update TextBuffer and test code of FontCache