I am trying to implement the word-wrapping sample in RotatingTextStyle. One problem I have is that GeoCanvas.MeasureText returns bad measurements. For example, I am trying to wrap the following text:
123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879 123456879
The bounding box screen width is 354. However, the GeoCanvas.MeasureText returns 1132x14 with a Tahoma 9 font.
Does the MeasureText method try to wrap the words inside the rectangle, or just treat the text as a single string without line breaks? I've seen it return rectangles that indicate 3 lines of wrapped text, so it seems like it would take into account the dimensions of the containing rectangle...
I am trying to implement the word wrap logic, but am struggling with the best way to calclulate the maximum string size, and the MeasureText isn't helping!