Computing the line break positions