Document Solutions for PDF
GrapeCity.Documents.Imaging 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.

In This Topic
    FromFile(String,Boolean) Method
    In This Topic
    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