Skip to content

Commit

Permalink
Merge pull request #285 from zergud/284-windows-pdfprint-fix
Browse files Browse the repository at this point in the history
fix print to pdf on windows
  • Loading branch information
ra3xdh committed Jun 17, 2023
2 parents 118742a + 7254145 commit e91a8f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qucs/paintings/graphictext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ void GraphicText::paint(ViewPainter *p)
p->Painter->rotate(-Angle); // automatically enables transformation

int Size = Font.pointSize();
Font.setPointSizeF( p->FontScale * float(Size) );
#ifdef __MINGW32__
Font.setPointSizeF( (p->FontScale / p->PrintScale) * float(Size));
#else
Font.setPointSizeF( p->FontScale * float(Size));
#endif

QFont f = p->Painter->font();
p->Painter->setPen(Color);
Expand Down

0 comments on commit e91a8f5

Please sign in to comment.