|
PDFsharp - moved to http://forum.pdfsharp.net/ Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
|
Important Notice:
We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024.
If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
View previous topic :: View next topic |
Author |
Message |
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 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|