WebCore/platform/graphics/qt/FontQt.cpp
changeset 2 303757a437d3
parent 0 4f2f89ce4247
equal deleted inserted replaced
0:4f2f89ce4247 2:303757a437d3
   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();