I'm using this code:
Qt Code:
  1. foreach(QString line, lines)
  2. {
  3. x = xPosition(left, hAlign, width, fontMetrics.width(line));
  4. path.addText(x, y, stdFont, line);
  5. y += lineHeight;
  6. }
  7. QBrush brush(font.color());
  8. QPen pen(font.color(), font.borderF(), Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin);
  9. if (font.borderF() > 0)
  10. pen.setColor(font.borderColor());
  11. setRenderHint(QPainter::Antialiasing);
  12. setPen(pen);
  13. setBrush(brush);
  14. setFont(stdFont);
  15. drawPath(path);
To copy to clipboard, switch view to plain text mode 

The code is used in a class which inherits from QPainter. On Linux it runs quite well, but on Windows it takes way too long. If antialiasing isn't enabled the speed is OK, but the text looks pretty bad. Do you have any idea?