Hi , i am getting this error "Cannot allocate font data" in wp7 application . code is bellow. even i have trying for diffrent -diffrent font that is supported by wp7. can any one help me.It's urgent PdfDocument document = new PdfDocument(); PdfPage page = document.AddPage(); XGraphics gfx = XGraphics.FromPdfPage(page); string fm = FontFamily.Source; XFont ft = new XFont(fm, FontSize); XTextFormatter tf = new XTextFormatter(gfx); XRect rect = new XRect(40, 100, 250, 220); gfx.DrawRectangle(XBrushes.SeaShell, rect); tf.DrawString(text, ft, XBrushes.Black, rect, XStringFormats.TopLeft);
|