PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Xfont
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2415
Page 1 of 1

Author:  steflavoie [ Wed Apr 24, 2013 1:48 am ]
Post subject:  Xfont

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.

Author:  Thomas Hoevel [ Wed Apr 24, 2013 8:06 am ]
Post subject:  Re: Xfont

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.

Author:  steflavoie [ Mon Apr 29, 2013 10:11 am ]
Post subject:  Re: Xfont

hi.


thanks it's work.

Why all true type font don't work?

stéphane.

Author:  Thomas Hoevel [ Mon Apr 29, 2013 1:05 pm ]
Post subject:  Re: Xfont

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/