PDFKit.NET 2.0 Class Library (.NET 2.0)

Font Class

A font is used to typeset text.

For a list of all members of this type, see Font Members.

System.Object
   TallComponents.PDF.Fonts.Font

public class Font

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

There are 14 standard fonts available in PDF or you can load a TrueType font. C#

// Internal fonts
myFragment.Font = Font.Helvetica;
  
// TrueType fonts
Font arialBold = Font.TrueType( @"c:\windows\fonts\ARIALBD.TTF" );
myFragment.Font = arialBold;

// TrueType fonts can also be constructed through the Path property
Font arialBold = new Font();
arialBold.Path = @"c:\windows\fonts\ARIALBD.TTF";
myFragment.Font = arialBold;

Requirements

Namespace: TallComponents.PDF.Fonts

Assembly: TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll)

See Also

Font Members | TallComponents.PDF.Fonts Namespace