diff --git a/src/libs/vmisc/svgfont/vsvgfontdatabase.cpp b/src/libs/vmisc/svgfont/vsvgfontdatabase.cpp index d8b537540..2b4f5ffcc 100644 --- a/src/libs/vmisc/svgfont/vsvgfontdatabase.cpp +++ b/src/libs/vmisc/svgfont/vsvgfontdatabase.cpp @@ -366,7 +366,11 @@ auto VSvgFontDatabase::QueryFontEngine(const QString &family, SVGFontStyle style QByteArray hash = font.Hash(); if (m_fontEngineCache.contains(hash)) { - return {*m_fontEngineCache.object(hash)}; + VSvgFontEngine engine = *m_fontEngineCache.object(hash); + VCommonSettings *settings = VAbstractApplication::VApp()->Settings(); + engine.SetFontPointSize(pointSize > 0 ? pointSize : settings->GetPatternLabelFontSize()); + + return engine; } if (font.IsValid())