void QQuickText::setFont(const QFont &font) { Q_D(QQuickText); if (d->sourceFont == font) return; d->sourceFont = font; QFont oldFont = d->font; d->font = font; d->font.setStyleStrategy(QFont::NoAntialias);//<-Line Added if (d->font.pointSizeF() != -1) { // 0.5pt resolution qreal size = qRound(d->font.pointSizeF()*2.0); d->font.setPointSizeF(size/2.0); } if (oldFont != d->font) { // if the format changes the size of the text // with headings or tag, we need to re-parse if (d->formatModifiesFontSize) d->textHasChanged = true; d->implicitWidthValid = false; d->implicitHeightValid = false; d->updateLayout(); } emit fontChanged(d->sourceFont); }