Summary: | SVG line-height cannot go smaller than a certain value | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Alvin Wong <alvin> |
Component: | Tool/Text | Assignee: | wolthera <griffinvalley> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git master (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/de2549670876392fb9c46dc1842245482a0bb428 | Version Fixed In: | |
Sentry Crash Report: |
Description
Alvin Wong
2023-07-17 07:48:31 UTC
Git commit b90110d3e0420eed1e258f3178f2a89660cedefe by Wolthera van Hövell tot Westerflier. Committed on 02/08/2023 at 17:36. Pushed by woltherav into branch 'master'. Fix line-height being capped due to naive handling of negative ascent. 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. M +45 -26 libs/flake/text/KoSvgTextShape.cpp https://invent.kde.org/graphics/krita/-/commit/b90110d3e0420eed1e258f3178f2a89660cedefe Git commit de2549670876392fb9c46dc1842245482a0bb428 by Wolthera van Hövell, on behalf of Wolthera van Hövell tot Westerflier. Committed on 02/08/2023 at 17:53. Pushed by woltherav into branch 'krita/5.2'. Fix line-height being capped due to naive handling of negative ascent. 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. (cherry picked from commit b90110d3e0420eed1e258f3178f2a89660cedefe) M +45 -26 libs/flake/text/KoSvgTextShape.cpp https://invent.kde.org/graphics/krita/-/commit/de2549670876392fb9c46dc1842245482a0bb428 |