Documents for PDF, .NET Edition Documentation
RegisterFont Method

GrapeCity.Documents.Common 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.
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

Reference

FontCollection Class
FontCollection Members