Support the 'letter-spacing' and 'word-spacing' properties in SVG

NEW
Unassigned

Status

()

Core
SVG
11 years ago
25 days ago

People

(Reporter: Andreas Neumann, Unassigned)

Tracking

(Blocks: 2 bugs, {dev-doc-needed})

Trunk
dev-doc-needed
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [parity-chrome][parity-edge][parity-safari], URL)

Attachments

(1 attachment)

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a3pre) Gecko/20070226 Minefield/3.0a3pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a3pre) Gecko/20070226 Minefield/3.0a3pre

the word-spacing attribute doesn't seem to be implemented, see screenshot with rendering comparison Minefield/Opera: http://www.carto.net/neumann/mozillasvgbugs/word-spacing_minefield_opera.png

The upper window shows the rendering in Minefield ignoring the word-spacing attribute, the lower window shows the correct rendering in Opera 9.1.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

Updated

11 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 1

10 years ago
letter-spacing has the same problem - attribute not implemented.
FF3beta5, Windows XP SP2
Assignee: general → nobody
QA Contact: ian → general

Updated

8 years ago
Blocks: 512501
Summary: word-spacing attribute not implemented on text/tspan elements → Support the 'letter-spacing' and 'word-spacing' properties in SVG

Comment 2

7 years ago
example for word-spacing in SVG
http://srufaculty.sru.edu/david.dailey/svg/newstuff/text6.svg

Updated

7 years ago
Severity: enhancement → normal

Updated

7 years ago
Duplicate of this bug: 604313
Depends on: 655877

Comment 4

5 years ago
Example for letter-spacing in SVG: http://johan.github.com/kilobyte-svg-challenge/logos/lysator.svg

Webkit reference rendition: http://i.imgur.com/nQhv0.png

Comment 5

5 years ago
Firefox 19 broken rendition: http://i.imgur.com/reRJm.png (alpha channel bugs are mine; ignore the white bg)
Depends on: 839955

Updated

4 years ago
Assignee: nobody → longsonr

Updated

4 years ago
Assignee: longsonr → nobody
Keywords: dev-doc-needed
Cameron, what are your thoughts now that bug 839955 is fixed?
Flags: needinfo?(cam)

Updated

4 years ago
Blocks: 934525
It's not trivial to get working.  IIRC nsTextFrame uses a PropertyProvider object to get the spacing property values, and it wasn't obvious where to get one of those (with the right values) from within nsSVGTextFrame2.  longsonr recently tried to get this working -- how far did you get Robert?
Flags: needinfo?(cam)

Comment 8

4 years ago
Created attachment 8334130 [details] [diff] [review]
WIP

This is as far as I got. Asserts occur and the DOM mostly doesn't work.

Rendering seems fairly reasonable though.

Comment 9

3 years ago
Just ran into this issue. Is there still any work being done?

Comment 10

3 years ago
Not by me currently so if you want to continue from where I left off, feel free.

Comment 11

3 years ago
AFAIK Gecko is the only engine that does not support these attributes.
Comment hidden (me-too)

Comment 13

3 years ago
Hi all,

We would really like to use XUL and Gecko engine for rendering SVG graphics and this issue is halting the whole idea. How likely is it to be resolved in the next few months?

Greetings,

Dejan

Comment 14

3 years ago
See comment 10 i.e. How likely are you to submit a patch to implement or pay someone to do so on your behalf, Dejan?

Comment 15

3 years ago
(In reply to Robert Longson from comment #14)
> See comment 10 i.e. How likely are you to submit a patch to implement or pay
> someone to do so on your behalf, Dejan?

Very unlikely.

Comment 16

3 years ago
who can do it? - I would like to spend some money to solve this issue. Maybe we can share the costs??

Comment 17

2 years ago
(In reply to Tom from comment #16)
> who can do it? - I would like to spend some money to solve this issue. Maybe
> we can share the costs??

Feel free to publish on https://www.bountysource.com/teams/mozilla/
Comment hidden (advocacy)
Comment hidden (me-too)
Blocks: 1262352
Comment hidden (me-too)
Comment hidden (off-topic)

Updated

7 months ago
Duplicate of this bug: 1329518
Comment hidden (off-topic)
Comment hidden (off-topic)

Updated

7 months ago
Assignee: nobody → cku

Comment 25

6 months ago
The following SVG uses the letter spacing attribute:
http://johan.github.io/kilobyte-svg-challenge/logos/lysator.svg

As of Mar 2, 2017 this works properly in Safari, Chrome, Edge, and Internet Explorer 11. Firefox still appears to ignore the letter-spacing SVG attribute.
according to current job assignment, I will not have time to work on this feature in within six months. deassign.
Assignee: cku → nobody
Whiteboard: [parity-chrome][parity-edge][parity-safari]
You need to log in before you can comment on or make changes to this bug.