Extract Text PathGeometry

Nov 16, 2009 at 9:35 PM

Hi All

Im trying to extract the path info using xGraphicsPath but the path does not appear.

What am I doing wrong i added the code below to the HelloWorldExample sample?

Thanks,

slyi 

                XGraphicsPath xpath = new XGraphicsPath();
               // XFont font = new XFont("Huxtable", 20);
                // Add the text to the path
                xpath.AddString(text1.Text, font.FontFamily, XFontStyle.Regular, 20,
                   new XRect(0, 0, page.Width, page.Height), XStringFormat.Center);
               // Path element in mainpage.xaml
                textpath.Data = xpath.Internals.WpfPath;

 

Coordinator
Nov 17, 2009 at 3:01 AM
You do everything right. But now silverPDF doesn't allow to extract path info using xGraphicsPath. The problem in Silverlight it self. Silverlight doesn't allow to extract text path. It's theoretical possible to make extracting of path info but it's very hard, so maybe we will make it in future versions of silverPDF.