Added method for calculating line height