changed semantics for text size calculations