https://bugs.kde.org/show_bug.cgi?id=404011
Dmitry Kazakov <dimul...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Latest Commit| |https://invent.kde.org/grap | |hics/krita/commit/cb06cfb2c | |037db6c51a0569ab59940e7e93a | |729a Status|ASSIGNED |RESOLVED --- Comment #15 from Dmitry Kazakov <dimul...@gmail.com> --- Git commit cb06cfb2c037db6c51a0569ab59940e7e93a729a by Dmitry Kazakov. Committed on 28/04/2021 at 09:05. Pushed by dkazakov into branch 'master'. Fix size of the rendered fonts in Krita Qt has a bug. When requesting font from the font database (in QFontDatabase::load()), Qt scales its size by the current primary display DPI. The only official way to disable that is to assign QTextDocument to QTextLayout, which is not something we would like to do. So we do the hackish way, we just prescale the font with inverted value. This hack changes only the rendering process without touching the way how the text is saved into .kra or .svg. That is nice, but it means it also affects how old files are renderred. To let the user open older files we provide a preference option to enable this scaling again. NOTE: the hack is not needed for pixel-measured fonts, they seem to render correctly. Pity we don't use them in our SVG code (partially because they don't allow fractional-sized fonts). M +50 -1 libs/flake/text/KoSvgTextChunkShape.cpp M +26 -0 libs/ui/dialogs/kis_dlg_preferences.cc M +2 -0 libs/ui/dialogs/kis_dlg_preferences.h M +51 -17 libs/ui/forms/wdggeneralsettings.ui https://invent.kde.org/graphics/krita/commit/cb06cfb2c037db6c51a0569ab59940e7e93a729a -- You are receiving this mail because: You are watching all bug changes.