Loads a TrueType or OpenType font directly from a .ttf or .otf file
specified by Path. The font does not have to be
properly installed on the machine (i.e. appear in the Fonts control panel).
As of Version 2.9.0.30032, .ttc files (TrueType collections) are supported as well.
By default, the very first font in the collection is loaded.
A 1-based font index can optionally be appended to the path, separated by a comma.
Usage:
PdfFont objFont = objDoc.Fonts.LoadFromFile(@"c:\windows\fonts\arial.ttf");
PdfFont objFont = objDoc.Fonts.LoadFromFile(@"c:\windows\fonts\gulim.ttc");
PdfFont objFont = objDoc.Fonts.LoadFromFile(@"c:\windows\fonts\gulim.ttc,3");
For more information about font management,
see Section 6.2 - Font Management.