Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Text Namespace / FontCollection Class / RegisterFont Method
Path to the source font file.
Specifies if all the registered fonts should be added to the fallback font collection.

In This Topic
    RegisterFont Method
    In This Topic
    Appends all fonts from the specified font file to the collection.
    Syntax
    'Declaration
     
    Public Function RegisterFont( _
       ByVal fontPath As System.String, _
       Optional ByVal addToFallbacks As System.Boolean _
    ) As System.Integer
    public System.int RegisterFont( 
       System.string fontPath,
       System.bool addToFallbacks
    )

    Parameters

    fontPath
    Path to the source font file.
    addToFallbacks
    Specifies if all the registered fonts should be added to the fallback font collection.

    Return Value

    The number of registered fonts.
    See Also