Text along path

15 views
Skip to first unread message

NeutronAttackingUraniumNucleus

unread,
Oct 6, 2011, 12:19:20 PM10/6/11
to GWT Graphics
Hi.

SVG supports drawing text along path. It uses such tags like <path>,
<text> and, what is the most important, <textpath>. As far as I know,
VML supports text along path too (but I don't need VML support).

In GWT Graphics I can't see API to draw text along path. I can only
see a method Text.setRotation(int degree) which allows to implement
such functionality on one's own but it doesn't make sense to reinvent
the wheel.

I'd like to ask what is the solution to obtain text along path in GWT
Graphics? Maybe the only way is DOM manipulation like
DOM.createElement("textpath") and so on?

Thank you for your commitment! And thank you, Henri, for your great
work!

Henri Kerola

unread,
Oct 6, 2011, 3:54:30 PM10/6/11
to gwt-gr...@googlegroups.com
Hi,

Currently, GWT Graphics doesn't provide support for that. Use Text and Path components, if that's enough. If it's not enough, you can do DOM manipulation like you said.

Of course the best solution is to implement that support into library and provide a patch :) However, both SVG and VML implementations need to be created. 


-Henri
Reply all
Reply to author
Forward
0 new messages