WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
23067
[CG] Canvas: stroked text with pattern or gradient can have truncated miters
https://bugs.webkit.org/show_bug.cgi?id=23067
Summary
[CG] Canvas: stroked text with pattern or gradient can have truncated miters
Simon Fraser (smfr)
Reported
2009-01-01 13:51:59 PST
CanvasRenderingContext2D::drawTextInternal() uses the computed textRect as the size of the mask image created for painting text stroke with a gradient or pattern. textRect is too small if stroking text, because it does not take the bounds of the stroke into account; it fails to account for miters etc.
Attachments
Testcase
(1.28 KB, text/html)
2009-01-01 13:58 PST
,
Simon Fraser (smfr)
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2009-01-01 13:58:02 PST
Created
attachment 26351
[details]
Testcase
Dirk Schulze
Comment 2
2009-02-05 12:39:51 PST
Maybe Path::strokeBoundingRect() can help here. We moved it from SVG to Path. See SVGPaintServer.cpp and RenderObject.cpp for the usage.
Dirk Schulze
Comment 3
2009-02-27 00:25:47 PST
Other platforms don't use clipToImageBuffer anymore. That means it's only a CG related bug. My last suggestion can't work here. Text's are no paths :-P But why using clipToImageBuffer for both, gradients and pattern. We just need it for gradients, right?
Radar WebKit Bug Importer
Comment 4
2020-10-29 14:02:43 PDT
<
rdar://problem/70824500
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug