Last Comment Bug 371787 - Support the 'letter-spacing' and 'word-spacing' properties in SVG
: Support the 'letter-spacing' and 'word-spacing' properties in SVG
Status: NEW
: dev-doc-needed
Product: Core
Classification: Components
Component: SVG (show other bugs)
: Trunk
: All All
: -- normal with 36 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
http://www.w3.org/Graphics/SVG/Test/2...
: 604313 (view as bug list)
Depends on: svgtext 839955
Blocks: svg11tests 1262352 934525
  Show dependency treegraph
 
Reported: 2007-02-26 11:22 PST by Andreas Neumann
Modified: 2016-04-05 22:51 PDT (History)
32 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
WIP (25.29 KB, patch)
2013-11-18 14:45 PST, Robert Longson
no flags Details | Diff | Review

Description Andreas Neumann 2007-02-26 11:22:17 PST
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.
Comment 1 Vladislav 2008-04-08 11:39:10 PDT
letter-spacing has the same problem - attribute not implemented.
FF3beta5, Windows XP SP2
Comment 2 MrX1980 2010-10-08 16:24:10 PDT
example for word-spacing in SVG
http://srufaculty.sru.edu/david.dailey/svg/newstuff/text6.svg
Comment 3 Robert Longson 2010-10-14 01:58:03 PDT
*** Bug 604313 has been marked as a duplicate of this bug. ***
Comment 4 Johan Sundström 2013-01-17 20:00:31 PST
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 Johan Sundström 2013-01-17 20:18:29 PST
Firefox 19 broken rendition: http://i.imgur.com/reRJm.png (alpha channel bugs are mine; ignore the white bg)
Comment 6 Jonathan Watt [:jwatt] (Away Jun. 27 - Jul. 13) 2013-11-04 04:36:50 PST
Cameron, what are your thoughts now that bug 839955 is fixed?
Comment 7 Cameron McCormack (:heycam) (away Jun 25 – Jul 10) 2013-11-04 13:59:05 PST
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?
Comment 8 Robert Longson 2013-11-18 14:45:44 PST
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 Andy Mercer 2014-08-30 17:07:18 PDT
Just ran into this issue. Is there still any work being done?
Comment 10 Robert Longson 2014-08-31 00:10:25 PDT
Not by me currently so if you want to continue from where I left off, feel free.
Comment 11 sjw 2014-09-24 14:45:10 PDT
AFAIK Gecko is the only engine that does not support these attributes.
Comment 12 Otto Nascarella 2014-10-21 14:41:14 PDT Comment hidden (me-too)
Comment 13 Dejan Novakovic 2014-10-29 03:28:05 PDT
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 Robert Longson 2014-10-29 03:49:20 PDT
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 Dejan Novakovic 2014-10-29 04:16:37 PDT
(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 Tom 2015-03-17 03:49:41 PDT
who can do it? - I would like to spend some money to solve this issue. Maybe we can share the costs??
Comment 17 sjw 2015-08-25 17:19:07 PDT
(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 18 Martin Kraft 2015-10-10 08:58:10 PDT Comment hidden (advocacy)
Comment 19 sayan.engineer 2016-01-14 19:37:05 PST
Hi, is any work being done on this? Our (https://desygner.com) users would love to have this experience on Firefox as well :)

Note You need to log in before you can comment on or make changes to this bug.