change font-size computation function and test-case