fix build errors and optimize font size