Namespace TallComponents.PDF.Layout.Fonts
Class Font
A font is used to typeset text.
There are 14 standard fonts available in PDF or you can load a TrueType font (Professional edition only).
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; XML <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>
Syntax
public class Font
: Object