Summary: | [Qt] SVGs stroked text support missing | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dirk Schulze <krit> | ||||
Component: | WebKit Qt | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | OS X 10.5 | ||||||
URL: | http://www.w3.org/Graphics/SVG/Test/20061213/svggen/pservers-grad-11-b.svg | ||||||
Attachments: |
|
Description
Dirk Schulze
2009-02-28 10:32:42 PST
Created attachment 28119 [details]
stroked texts on Qt
adds the missing support.
Comment on attachment 28119 [details] stroked texts on Qt > - p->drawText(pt, string, flags, run.padding()); > + > + if (ctx->textDrawingMode() & cTextStroke) { > + QPainterPath path; > + path.addText(pt, font(), string); > + p->strokePath(path, p->pen()); > + } > + if (ctx->textDrawingMode() & cTextFill) > + p->drawText(pt, string, flags, run.padding()); cool, can you point me to a test case that is having cTextStroke and cTextFill for drawing text? stroke on text with gradient: http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-pservers-grad-11-b.html stroke on text with pattern: http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-pservers-pattern-01-b.html stroke and fill on text: http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-text-deco-01-b.html as well as: http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-text-text-08-b.html |