Summary: | Changing font size in text tool does not update the canvas | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Alvin Wong <alvin> |
Component: | Tool/Text | Assignee: | wolthera <griffinvalley> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | acc4commissions, griffinvalley, keyth2363214 |
Priority: | NOR | ||
Version First Reported In: | nightly build (please specify the git hash!) | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/graphics/krita/-/commit/b3e539c3ede5aa6f8af578ac2e2acd0994181874 | Version Fixed In: | |
Sentry Crash Report: |
Description
Alvin Wong
2023-06-08 11:45:59 UTC
I can reproduce. I think it might be caused by font-size adjust.... A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1832 Git commit b3e539c3ede5aa6f8af578ac2e2acd0994181874 by Alvin Wong. Committed on 24/06/2023 at 11:19. Pushed by alvinwong into branch 'master'. Fix font-size-adjust calculation from QTextDocument The previous calculation was wrong, causing text to be stuck in a specific size regardless of the actual font size setting in the rich text editor. When trying to fix it, I found that QFontMetricsF gives bogus values for xHeight (at least on Windows) so it cannot be used. I ended up calculating the value by reading the parameters with FreeType. If the font does not have xHeight, then we just don't write the property. The value of this property is calculated so that the font size of the primary font is the same as when this property is not set. M +18 -3 libs/flake/text/KoSvgTextShapeMarkupConverter.cpp https://invent.kde.org/graphics/krita/-/commit/b3e539c3ede5aa6f8af578ac2e2acd0994181874 *** Bug 465870 has been marked as a duplicate of this bug. *** *** Bug 467848 has been marked as a duplicate of this bug. *** |