Changeset 41808 in webkit
- Timestamp:
- Mar 18, 2009 8:58:54 AM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r41807 r41808 1 2009-03-18 Dirk Schulze <krit@webkit.org> 2 3 Reviewed by Holger Freyther. 4 5 Added support for SVG's stroked texts to Qt. 6 7 [Qt] SVGs stroked text support missing 8 https://bugs.webkit.org/show_bug.cgi?id=24262 9 10 * platform/graphics/qt/FontQt.cpp: 11 (WebCore::Font::drawComplexText): 12 1 13 2009-03-18 Mark Rowe <mrowe@apple.com> 2 14 -
trunk/WebCore/platform/graphics/qt/FontQt.cpp
r41527 r41808 105 105 QBrush brush(*ctx->strokeGradient()->platformGradient()); 106 106 brush.setTransform(ctx->strokeGradient()->gradientSpaceTransform()); 107 p->setPen(QPen(brush, 0));107 p->setPen(QPen(brush, ctx->strokeThickness())); 108 108 } else if (ctx->strokePattern()) { 109 109 TransformationMatrix affine; 110 p->setPen(QPen(QBrush(ctx->strokePattern()->createPlatformPattern(affine)), 0));110 p->setPen(QPen(QBrush(ctx->strokePattern()->createPlatformPattern(affine)), ctx->strokeThickness())); 111 111 } else 112 p->setPen(Q Color(ctx->strokeColor()));112 p->setPen(QPen(QColor(ctx->strokeColor()), ctx->strokeThickness())); 113 113 } 114 114 … … 175 175 p->restore(); 176 176 } 177 p->drawText(pt, string, flags, run.padding()); 177 if (ctx->textDrawingMode() & cTextStroke) { 178 QPainterPath path; 179 path.addText(pt, font(), string); 180 p->strokePath(path, p->pen()); 181 } 182 if (ctx->textDrawingMode() & cTextFill) 183 p->drawText(pt, string, flags, run.padding()); 178 184 } 179 185
Note: See TracChangeset
for help on using the changeset viewer.