[Webkit-unassigned] [Bug 6425] <textPath> element not implemented

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 31 13:11:34 PST 2006


http://bugs.webkit.org/show_bug.cgi?id=6425





------- Comment #1 from macdome at opendarwin.org  2006-12-31 13:11 PDT -------
We now have path measuring in place with bug 12033.  I even added a couple
member variables to PathTraversalState which could be used by future traversal
code to lay out text on a path.

        // FIXME: for (non-implemented) text-on-path layout
        Vector<float> m_offsets;
        Vector< std::pair<FloatPoint, float> > m_pointAndAngles;

Calculating the normal vectors for the curve as its measured is very easy. 
Once the curveLength function finds two points sufficiently close it stops, at
that point, the line between those two points is tangent to the normal.  Given
that normal and a point obtained (in the same was as pointAtLength obtains
points) that should be sufficient to place the text.  I don't know enough about
the text system (and what points might be desired) so I haven't wired that part
up.  But the actual path traversal/measurement/normal calculation code should
be very straightforward.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list