A font is used to typeset text.

Namespace: TallComponents.PDF.Fonts
Assembly: TallComponents.PDF.Controls.WinForms (in TallComponents.PDF.Controls.WinForms.dll) Version: 2.0.46.0

Syntax

C#
public class Font
Visual Basic
Public Class Font

Remarks

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

Examples

C#
CopyC#
// 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;

Inheritance Hierarchy

System..::..Object
  TallComponents.PDF.Fonts..::..Font

See Also