View previous topic :: View next topic |
Author |
Message |
Sai Alluru
Joined: 02 Jan 2009 Posts: 4
|
Posted: Wed Jan 07, 2009 9:43 am Post subject: Embedding PDF Font |
|
|
We are using the following code to EMBED True Type font in PDF but does not seem to embed it. Does any one know a different api or if this feature actually works.
gfx.MUH = PdfFontEncoding.Unicode;
gfx.MFEH = PdfFontEmbedding.Always;
XFont font = new XFont("Mistral", 12.0);
gfx.DrawString("Sai Alluru Text", font, PdfSharp.Drawing.XBrushes.Black, 120, 120);
We are using the latest version from the PDFSharp site. |
|
Back to top |
|
|
Sai Alluru
Joined: 02 Jan 2009 Posts: 4
|
Posted: Wed Jan 07, 2009 12:00 pm Post subject: Found the usage to embed font |
|
|
XPdfFontOptions options = new XPdfFontOptions(PdfFontEmbedding.Always);
XFont xfont = new XFont("Mistral", 14.0,XFontStyle.Bold, options);
gfx.DrawString("Sai Alluru Text", xfont, PdfSharp.Drawing.XBrushes.Black, locX, texty); |
|
Back to top |
|
|
|