PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 10:48 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to embed a font
PostPosted: Tue Feb 05, 2008 1:58 pm 
Offline

Joined: Tue Feb 05, 2008 1:53 pm
Posts: 1
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 388 guests


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 post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group