Documents for PDF, .NET Edition Documentation
FromFile(String,Boolean) Method

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Text Namespace > Font Class > FromFile Method : FromFile(String,Boolean) Method
The path to the file containing the font data.
Set this parameter to True if you're planning to add the font to the fallback font collection.
Loads the first Font from a specified file.
Syntax
'Declaration
 
Public Overloads Shared Function FromFile( _
   ByVal path As System.String, _
   Optional ByVal initCodeMap As System.Boolean _
) As Font
public static Font FromFile( 
   System.string path,
   System.bool initCodeMap
)

Parameters

path
The path to the file containing the font data.
initCodeMap
Set this parameter to True if you're planning to add the font to the fallback font collection.

Return Value

The newly created font, or null if the file did not contain any fonts.
See Also

Reference

Font Class
Font Members
Overload List