Change calculate_line_height to use font-size from style.