Posted by a ceTe Software moderator
Hello,
You will need to use a font which has support for the symbols which you are adding to the PDF document. Please try using the correct font which has support for diamond symbol and this should work for you. Below is the sample code for it.
OpenTypeFont font = new OpenTypeFont(@"ARIALUNI.TTF");
FontFamily fontfamily = new FontFamily("font", font);
FormattedTextAreaStyle style = new FormattedTextAreaStyle(fontfamily, 14, true);
//diamond symbol.............................
string text = "<p><font color='FF0000'>\u2666 <font color='#000000'>This text is </p>";
FormattedTextArea area = new FormattedTextArea(text, 10, 10, 200, 100, style);
Document document = new Document();
Page page = new Page();
page.Elements.Add(area);
document.Pages.Add(page);
document.Draw(@"C:\Temp\Test.pdf");
System.Diagnostics.Process.Start(@"C:\Temp\Test.pdf");
Thanks,
ceTe Software Support Team.