Bug 24262 - [Qt] SVGs stroked text support missing
Summary: [Qt] SVGs stroked text support missing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://www.w3.org/Graphics/SVG/Test/2...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-28 10:32 PST by Dirk Schulze
Modified: 2009-03-18 09:16 PDT (History)
0 users

See Also:


Attachments
stroked texts on Qt (2.19 KB, patch)
2009-02-28 10:35 PST, Dirk Schulze
zecke: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.