https://bugs.kde.org/show_bug.cgi?id=443795
Dmitry Kazakov <dimul...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Latest Commit| |https://invent.kde.org/grap | |hics/krita/commit/f0f55bea8 | |e06c74b3a1b499d6c4cd84a2957 | |6753 Status|ASSIGNED |RESOLVED --- Comment #4 from Dmitry Kazakov <dimul...@gmail.com> --- Git commit f0f55bea8e06c74b3a1b499d6c4cd84a29576753 by Dmitry Kazakov. Committed on 02/12/2021 at 14:02. Pushed by dkazakov into branch 'master'. Fix line height being too huge in Krita 5.0 All the internals of QTextDocument work with the primary screen's DPI. That is, when we ask Qt about font metrics, it returns values scaled to the pixels in the current screen, that is, ptValue * qt_defaultDpi() / 72.0. We need to convert this value back into points before writing as SVG. Therefore, all the metrics returned by the document are scaled with `fixQtDpi()`. Official Qt's way to workaround this problem is to set logicalDpiX/Y() values on the paint device's associated with the document. But it seems like in our version of Qt (5.12.12, which is rather old) it doesn't work properly. M +28 -5 libs/flake/text/KoSvgTextShapeMarkupConverter.cpp https://invent.kde.org/graphics/krita/commit/f0f55bea8e06c74b3a1b499d6c4cd84a29576753 -- You are receiving this mail because: You are watching all bug changes.