Closed
Bug 351680
Opened 18 years ago
Closed 17 years ago
A scale transform affects the stroke and fill of text differently
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bruce.rindahl, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
618 bytes,
image/svg+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060907 Minefield/3.0a1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060907 Minefield/3.0a1 Placed text inside a group element with a transform="scale(0.9,1)" to produce squashed text. Displays fine on Firefox 1.5,2 but is distorted on minefield. Example: <svg id="test" width="100%" height="100%" viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg"> <g fill="rgb(9,39,105)" font-weight="bold" font-family="Arial"> <g stroke="rgb(9,39,105)" stroke-width="2" transform="scale(0.58,1)"> <text font-size="100px" text-anchor="middle" x="540" y="100">MOZILLA</text> <text font-size="120px" text-anchor="middle" x="540" y="200">FIREFOX</text> </g> <g fill="rgb(11,79,157)" stroke="rgb(11,79,157)" stroke-width="2" transform="scale(0.9,1)"> <text font-size="100px" text-anchor="middle" x="340" y="300">SVG TEXT</text> </g> </g> </svg> Reproducible: Always Steps to Reproduce: 1.Open above SVG with Minefield 2. 3. Actual Results: Text outline and fill do not align. Expected Results: Stroke and fill should align. Note Firefox 1.5 and 2 are not perfect but very close. Minefield is way off.
Reporter | ||
Comment 1•18 years ago
|
||
Attachment of SVG test case described in bug report
Attachment #237133 -
Attachment mime type: image/svg → image/svg+xml
Comment 2•18 years ago
|
||
I can confirm that the strokes and fills in the testcase don't line up. I'm using Mac trunk.
Comment 3•18 years ago
|
||
Determining when this regressed on the trunk would be helpful if anyone has the time or inclination to do that.
WFM - linux trunk. Likely problems with the cairo platform font backends.
Comment 5•18 years ago
|
||
I think this is another testcase for this problem: http://www.codedread.com/svghead2.svg. The shadow fill is way off of the stroke in the reflected text.
Comment 6•18 years ago
|
||
Yay, this now works for me in the latest trunk 20070103, thanks to the cairo uplift, I guess.
Comment 7•17 years ago
|
||
It now works for me too. If anyone's still sees any problems, please reopen.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•