Closed Bug 454970 Opened 11 years ago Closed 6 years ago

SVG: text with multiple chunks and text-anchor:middle or end has incorrect layout

Categories

(Core :: SVG, defect)

defect
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: zajec5, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Opera/9.60 (X11; Linux x86_64; U; pl) Presto/2.1.1
Build Identifier: 

If I use "text" element with "dx" then "text-anchor=middle" is calculated wrong.

Reproducible: Always

Steps to Reproduce:
1. Use text element with dx and text-anchor=middle
Actual Results:  
Text in wrong position

Expected Results:  
Text in middle.
parity safari and opera
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86 → All
Version: unspecified → Trunk
This makes http:///dev.w3.org/SVG/profiles/1.1F2/test/harness/htmlObjectMiniApproved/text-text-05-t.html (which recently gained a WOFF font in addition to the SVG font, so it is more obvious what the test is doing) fail.
Blocks: svg11tests
Summary: SVG: broken text-anchor in text element with "dx" set → SVG: text with multiple chunks and text-anchor:middle or end has incorrect layout
It seems like the bug's URL is broken.

Also, this issue may be related with bug 503075.
(In reply to comment #3)
> It seems like the bug's URL is broken.
> 
> Also, this issue may be related with bug 503075.

I don't think so, although it's hard to be certain without the original URL. The patch there does not fix the testcase in comment 2.
Sorry for problems with test-case, it's working again now.

Interesting part is that it seems to do not work with latest Opera (11.00). Regression in Opera?
Depends on: svgtext
Attached image testcase from zajec.net
My work in progress patch for bug 655877 renders the testcase correctly.
Depends on: 839955
Anchoring of SVG text chunks should now be correct, with bug 655877 and dependants landed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.