Skip to content

Fix line-height being capped due to naive handling of negative ascent.

Wolthera van Hövell requested to merge work/cherry-pick-b90110d3 into krita/5.2

Because ascent and descent can be negative or positive depending on the writing mode, the intial code attempted to regard them somewhat agnostic until it was time to calculate the precise offset. This however capped the offset to 0, and made it impossible to have negative line-offsets.

The code now considers negative values appropriately.

BUG:472316

(cherry picked from commit b90110d3)

Merge request reports