equal
deleted
inserted
replaced
167 p->setFont(font); |
167 p->setFont(font); |
168 |
168 |
169 int flags = run.rtl() ? Qt::TextForceRightToLeft : Qt::TextForceLeftToRight; |
169 int flags = run.rtl() ? Qt::TextForceRightToLeft : Qt::TextForceLeftToRight; |
170 #if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) |
170 #if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) |
171 // See QWebPagePrivate::QWebPagePrivate() where the default path is set to Complex for Qt 4.6 and earlier. |
171 // See QWebPagePrivate::QWebPagePrivate() where the default path is set to Complex for Qt 4.6 and earlier. |
172 if (!isComplexText) |
172 if (!isComplexText && !(ctx->textDrawingMode() & cTextStroke)) |
173 flags |= Qt::TextBypassShaping; |
173 flags |= Qt::TextBypassShaping; |
174 #endif |
174 #endif |
175 if (hasShadow) { |
175 if (hasShadow) { |
176 // TODO: text shadow blur support |
176 // TODO: text shadow blur support |
177 p->save(); |
177 p->save(); |