refactor Font::GetSize and reduce dependency to font.h
improve GetSize