From 80ca4cd1d9d9a1b725fb7a6016f1035c3d3ffc92 Mon Sep 17 00:00:00 2001 From: Kim Motoyoshi Kalland Date: Wed, 9 Sep 2009 17:18:41 +0200 Subject: Fixed text positioning in SVGs when using SVG fonts. Task-number: 260920 Reviewed-by: Trustme --- src/svg/qsvggraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg/qsvggraphics.cpp b/src/svg/qsvggraphics.cpp index fda8ad1..6552b69 100644 --- a/src/svg/qsvggraphics.cpp +++ b/src/svg/qsvggraphics.cpp @@ -434,7 +434,7 @@ void QSvgText::draw(QPainter *p, QSvgExtraStates &states) text.append(QLatin1Char('\n')); text.append(paragraphs[i]); } - states.svgFont->draw(p, m_coord, text, p->font().pointSizeF() * scale, states.textAnchor); + states.svgFont->draw(p, m_coord * scale, text, p->font().pointSizeF() * scale, states.textAnchor); } else { for (int i = 0; i < paragraphs.size(); ++i) { QTextLayout tl(paragraphs[i]); -- cgit v0.12