[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontCollection.RegisterFont

RegisterFont Method

RegisterFont(string, bool)

Appends all fonts from the specified font file to the collection.

Declaration
public int RegisterFont(string fontPath, bool addToFallbacks = false)
Public Function RegisterFont(fontPath As String, Optional addToFallbacks As Boolean = False) As Integer
Parameters
Type Name Description
string fontPath

Path to the source font file.

bool addToFallbacks

Specifies if all the registered fonts should be added to the fallback font collection.

Returns
Type Description
int

The number of registered fonts.