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 41 votes (vote)
: ---
Assigned To: C.J. Ku[:cjku](UTC+8)(PTO:227~303)
:
: Jet Villegas (:jet)
Mentors:
http://www.w3.org/Graphics/SVG/Test/2...
: 604313 1329518 (view as bug list)
Depends on: svgtext 839955
Blocks: svg11tests svg-enhance 934525
  Show dependency treegraph
 
Reported: 2007-02-26 11:22 PST by Andreas Neumann
Modified: 2017-01-18 05:58 PST (History)
36 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 | Splinter Review

Description User image 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 User image Vladislav 2008-04-08 11:39:10 PDT
letter-spacing has the same problem - attribute not implemented.
FF3beta5, Windows XP SP2
Comment 2 User image 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 User image Robert Longson 2010-10-14 01:58:03 PDT
*** Bug 604313 has been marked as a duplicate of this bug. ***
Comment 4 User image 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 User image 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 User image Jonathan Watt [:jwatt] 2013-11-04 04:36:50 PST
Cameron, what are your thoughts now that bug 839955 is fixed?
Comment 7 User image Cameron McCormack (:heycam) (away 25 Feb–5 Mar) 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 User image 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 User image Andy Mercer 2014-08-30 17:07:18 PDT
Just ran into this issue. Is there still any work being done?
Comment 10 User image 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 User image sjw 2014-09-24 14:45:10 PDT
AFAIK Gecko is the only engine that does not support these attributes.
Comment 12 User image Otto Nascarella 2014-10-21 14:41:14 PDT Comment hidden (me-too)
Comment 13 User image 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 User image 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 User image 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 User image 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 User image 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 User image Martin Kraft 2015-10-10 08:58:10 PDT Comment hidden (advocacy)
Comment 19 User image sayan.engineer 2016-01-14 19:37:05 PST Comment hidden (me-too)
Comment 20 User image Guillaume Piolat 2016-07-07 01:00:35 PDT Comment hidden (me-too)
Comment 21 User image johann 2017-01-04 14:21:16 PST Comment hidden (off-topic)
Comment 22 User image Robert Longson 2017-01-08 14:10:50 PST
*** Bug 1329518 has been marked as a duplicate of this bug. ***
Comment 23 User image gustav 2017-01-09 02:57:58 PST Comment hidden (off-topic)
Comment 24 User image gustav 2017-01-09 02:57:58 PST Comment hidden (off-topic)

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