SVG Text Support
Posted by Maciej Stachowiak on Tuesday, January 10th, 2006 at 3:07 amI spent a few hours hooking up WebCore’s text rendering engine to SVG, and now we have basic SVG text support going. Here’s an example showing both fancy text features (multiple, high-quality, anti-aliased fonts) and fancy SVG features (the text is skewed and rotated):

Here’s the actual SVG file if you have a fresh WebKit build and want to try it yourself.
This only took a few hours of work, thanks to all the great work Rob and Nikolas did on ksvg2 and all the hard work that Eric did porting it to Quartz and integrating it with WebKit.
January 10th, 2006 at 3:13 am
Good stuff
, nice work Maciej
.
January 10th, 2006 at 3:36 am
Great, is this already in the nightlies?
January 10th, 2006 at 3:52 am
Yep, it’s in the latest nightly.
January 10th, 2006 at 4:59 am
So who’s job is it to admin MIME types on webkit.opendarwin.org? text/plain isn’t the most suitable for SVG content
January 10th, 2006 at 6:47 am
It might be nice if you send that with the correct mime type over the wire; users of Gecko browsers, and Opera, might enjoy this svg file as well.
And it would be a good thing for everybody if Safari was a bit stricter in accepting documents like this. You know, web standards and all that.
Granted, it looks nice in the latest nightly webkit build.
January 10th, 2006 at 8:17 am
Filed Bug 6470 for SVG MIME type issue.
http://bugzilla.opendarwin.org/show_bug.cgi?id=6470
January 10th, 2006 at 9:15 am
Thanks ddkilzer. Btw, I completely forgot to congratulate the Webkit team for the progress in my earlier comment. Well done guys!
January 10th, 2006 at 4:54 pm
I did now test run that svg file form my local dev server. Interesting. Both Opera 9 prev and Camino nicely show the colours (marroon and green) but fail the font test (For Gecko, that is known issue, it simply not yet implemented). Webkit on the other side fails to show the colours.
Thanks ddkilzer for the mimie-type bug.
January 11th, 2006 at 4:33 am
Not strictly OT, but congratulations on the newest update to Safari in 10.4.4, feels a lot smoother here.
January 11th, 2006 at 9:32 am
well, i acutally have the svg plugin from adobe: must i remove it?
January 11th, 2006 at 10:34 am
Congratulations on your progress – can’t wait to hear about the results once it’s released (I don’t have a Mac)
January 13th, 2006 at 10:34 am
i respondo to myself: yes, the old svg plugin from adobe must be removed.