I want to write the "█"-character in a MigraDoc pdf file. The following code doesn't show the character. Here is a small part of my code.
PdfDocumentRenderer pdfRenderer = new PdfDocumentRenderer(false, embedding);
row.Cells[1].AddParagraph().AddFormattedText("aaaaa \u2588", new Font("Arial Unicode MS"));
Make sure to pass
true
to the c'tor ofPdfDocumentRenderer
to activate Unicode for rendering.A small part of my code:
More code here:
http://www.pdfsharp.net/wiki/HelloMigraDoc-sample.ashx