PDFsharp & MigraDoc Foundation

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

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Xfont
PostPosted: Wed Apr 24, 2013 1:48 am 
Offline

Joined: Sun Jun 24, 2012 3:07 pm
Posts: 4
hi.

i have vs2012 c#.

In my ressource application, i put (myfont.ttf).

i don't want to install (myfont.ttf).

how to use (myfont.ttf) in XFont.

exemple: gfx.DrawString(DataBase[22, 2], new XFont(MYFONT.TTF, Fontsize, XFontStyle.Bold), XBrushes.Black, 512, 100, XStringFormats.Center);

Stef

P:S Excuse me for my bad english.


Top
 Profile  
Reply with quote  
 Post subject: Re: Xfont
PostPosted: Wed Apr 24, 2013 8:06 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3109
Location: Cologne, Germany
Hi!

See the Private Font sample (and use the WPF build):
http://www.pdfsharp.net/wiki/PrivateFonts-sample.ashx

The source package includes the complete sample code.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: Xfont
PostPosted: Mon Apr 29, 2013 10:11 am 
Offline

Joined: Sun Jun 24, 2012 3:07 pm
Posts: 4
hi.


thanks it's work.

Why all true type font don't work?

stéphane.


Top
 Profile  
Reply with quote  
 Post subject: Re: Xfont
PostPosted: Mon Apr 29, 2013 1:05 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3109
Location: Cologne, Germany
steflavoie wrote:
Why all true type font don't work?
AFAIK all TrueType fonts should work - and all OpenType fonts when you use the WPF build.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 55 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