nibbo
Joined: 05 Feb 2008 Posts: 1
|
Posted: Tue Feb 05, 2008 1:58 pm Post subject: How to embed a font |
|
|
Hello,
I want to embed a font in my PDF, but cannot get it to work. This is what I have so far:
Code: |
XPdfFontOptions xf = new XPdfFontOptions(true, @"C:\Windows\Fonts\calibri.ttf");
XFont font = new XFont("Calibri", 7, XFontStyle.Regular, xf);
|
Gives me the following warning:
PdfSharp.Drawing.XPdfFontOptions.XPdfFontOptions(bool, string)' is obsolete: 'Use other constructor'
Which other constructor must I use, or what must I do to get it to work anyhow?
Thanks in advance.
Nibbo |
|