computeLineMetrics for preformatted text blocks