fixed unix text size calculation