QPainter font antialiasing BUGGY
-
Hi,
I'm using QPAinter drawText to paint a text using a font.
The problem is thata antialiasing is not working so the text is ugly to see.
Here is the code:@ QPainter customPainter(this);
QPen pen( QColor(0, 0, 0));
pen.setWidth( 0 );
customPainter.setPen( pen );
customPainter.setBackground(QBrush(QColor(0, 0, 0)));
customPainter.setBrush(QBrush(QColor(0, 0, 0)));customPainter.setRenderHint(QPainter::TextAntialiasing,true);
QFontDatabase database;
QFont font = database.font("Tw Cen MT", "Normal",40);
customPainter.setFont(font);customPainter.drawText(0,0,300,50,Qt::AlignLeft,"Galileo");@
Antialiasing of paths works great while on font it is ugly..
I found that the problem seems to be in the Font antialiasing...it seems to be buggy on Qt (4.8) ..anyone had this issue?
-
I found that the problem seems to be in the Font antialiasing...it seems to be buggy on Qt (4.8) ..anyone had this issue?
-
Hi,
You should check the "bug report system":http://bugreports.qt-project.org to see whether it's something known. Also are you using the latest version of Qt 4.8 ?
-
Hi,
im using this version:
I already checked on the bug report but seems there is no issue like my...so maybe I'm doing something wrong?
-
If you can come up with a minimal compilable example that reproduce this behavior then it might be a bug