A font is used to typeset text.
Namespace: TallComponents.PDF.FontsAssembly: TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 3.0.69.1
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;