A font is used to typeset text.
Namespace: TallComponents.PDF.Layout.FontsAssembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.66.0
Syntax
| C# |
|---|
[SerializableAttribute] public class Font : Object |
| Visual Basic |
|---|
<SerializableAttribute> _ Public Class Font _ Inherits Object |
Remarks
There are 14 standard fonts available in PDF or you can load a TrueType font (Professional edition only).
Examples
C#
CopyC#
XML
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;
<paragraph type="textparagraph"> <fragment font="Helvetica">Helvetica is a built-in PDF Font.</fragment> <fragment font="c:\windows\fonts\ARIALBD.TTF">Arial is a TrueType Font.</fragment> </paragraph>