Bug 24262

Summary: [Qt] SVGs stroked text support missing
Product: WebKit Reporter: Dirk Schulze <krit>
Component: WebKit QtAssignee: 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 Flags
stroked texts on Qt zecke: review+

Description Dirk Schulze 2009-02-28 10:32:42 PST
Qt lacks support for stroked texts in SVG.
Comment 1 Dirk Schulze 2009-02-28 10:35:52 PST
Created attachment 28119 [details]
stroked texts on Qt

adds the missing support.
Comment 2 Holger Freyther 2009-03-12 22:55:06 PDT
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?
Comment 4 Dirk Schulze 2009-03-18 08:59:37 PDT
landed in r41808.