PDFsharp & MigraDoc Foundation

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

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Using uninstalled fonts
PostPosted: Sat Feb 13, 2010 5:06 pm 
Offline

Joined: Thu Feb 11, 2010 12:57 am
Posts: 3
I have managed to load a font from file using the following code:

PrivateFontCollection PrivateFonts = new PrivateFontCollection();

if (PrivateFonts == null)
{
PrivateFonts = new PrivateFontCollection();
}
string _path = "NewFont.ttf";
if (File.Exists(_path))
{
PrivateFonts.AddFontFile(_path);
}

Could you please explain now how to use the Privatefonts for printing text

Thanks a lot.
P.S. congratulations on the library


Top
 Profile  
 
PostPosted: Tue Feb 16, 2010 10:54 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Discussed here:
viewtopic.php?f=2&t=1050

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 417 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