tags:

views:

559

answers:

1

Is there any way to render a Silverlight text to a path or graphics object at runtime? I know this can be done using the design tools, but I want to be able to do this on the fly.

I've seen an example that calls a webservice which uses WPF constructs to convert a WPF FormattedText object to a PathGeometry, but those objects aren't available in Silverlight.

I'm pretty sure this just isn't supported in Silverlight, but thought it was worth asking.

A: 

As you suspected, you'd have to do it server-side to convert the text to a PathGeometry which is supported in Silverlight. What are you trying to achieve?

Michael S. Scherotter
I'm messing with something like Wordle (http://www.wordle.net/) for the MIX 10K challenge.
Jon Galloway
You can do lots with the RenderTransform of the text (skew, translate, strech, rotate). Besides using fonts that aren't installed on the users's computer, what other functionality do you need out of Text to Path conversion for Wordle?
Michael S. Scherotter