Fix font-size computation for long lines