Diffusion Krita dc933b92bcdd

Fix line spacing calculation algorithm to work like the one in Qt

Authored by dkazakov on Jan 12 2018, 12:16 PM.

Description

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

Details

Committed
dkazakovJan 12 2018, 12:17 PM
Parents
R37:fc3d30478f45: Remove one more set of tests
Branches
Unknown
Tags
Unknown