add locale setting in Application
rename and finetune some member functions in FontType
update TextBuffer but it need more code to work