SVG Glyph Positioning

The Firefox trunk now has the ability to position individual text glyphs in SVG. That means that full-text-text-07-t.html mostly works, barring some glyph rotation issues on some platforms. If you see the glyphs unrotated on your platform, select the SVG frame and view it in its own tab which will force a different font size to be used.

Ken Stacey originally worked on this and almost had it in the tree at the end of 2007 so it’s been a long last 5 yards for this feature.

If you are trying to position individual glyphs you still need to ensure that the glyph positions are defined directly against the text or tspan element they are to affect as inheritance of glyph position data is still to be implemented.

For example <text><tspan x=”10 30″ y=”30″>HI</tspan></text> is fine whereas <text x=”10 30″ y=”30″><tspan>HI</tspan></text> doesn’t work yet.

Advertisements

4 responses to this post.

  1. Posted by marek on April 6, 2010 at 9:03 pm

    Yes, it’s great! 😉 Go on…

  2. Posted by Domino Effect on April 6, 2010 at 10:38 pm

    What bugs are left to patch for this to be animated?:
    https://bug216462.bugzilla.mozilla.org/attachment.cgi?id=331660

Comments are closed.

%d bloggers like this: