Fix line spacing calculation algorithm to work like the one in Qt
The formula for a general case, when the font sizes of two lines are different:
leading_12 = spacing * (ascent_1 + descent_1) - ascent_1 + ascent_2