Improved SVG text support in Firefox Nightly

On the weekend, I landed the final patch in what turned out to be quite a long running project to overhaul Firefox’s SVG text support to reuse the same text layout and rendering code that it uses for HTML. Much of the work was done in bug 655877, which ended up being a series of 50 patches(!), with about 40 followup bugs to get the code into shape so that it could be turned on by default.

Improvements resulting from this work include the following:

If you work with SVG content, please download the latest Firefox Nightly and test out the new functionality, and if you encounter any issues, please do file a bug.

My thanks to roc, jwatt, longsonr, bz and dbaron for their help and reviews!

Update 3 July 2013: Here is a page demonstrating these features.