Skip to content

Commit

Permalink
workaround for #40646
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Dec 17, 2014
1 parent d0d39c4 commit 113ef15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libmscore/sym.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5190,6 +5190,11 @@ QPixmap ScoreFont::sym2pixmap(SymId id, qreal mag)

void ScoreFont::draw(const QString& s, QPainter* painter, qreal mag, const QPointF& pos) const
{
#if defined(Q_OS_WIN) && (QT_VERSION == QT_VERSION_CHECK(5,4,0))
if (dynamic_cast<QPrinter*>(painter->device()) &&
painter->device()->paintEngine()->type() == QPaintEngine::Pdf)
mag *= 4.333;
#endif
qreal imag = 1.0 / mag;
painter->scale(mag, mag);
painter->setFont(font());
Expand Down

0 comments on commit 113ef15

Please sign in to comment.