Documents for Imaging .NET Edition
GrapeCity.Documents.Common Assembly / GrapeCity.Documents.Text Namespace / Font Class / CollectionFromFile Method
The path to the file containing the font data.
The destination list of fonts. It must be initialized beforehand.
Set this parameter to True if you're planning to add the loaded fonts to the fallback font collection.

In This Topic
    CollectionFromFile Method
    In This Topic
    Loads all Fonts from a specified font file.
    Syntax
    'Declaration
     
    Public Shared Function CollectionFromFile( _
       ByVal path As System.String, _
       ByVal fonts As System.Collections.Generic.List(Of Font), _
       Optional ByVal initCodeMap As System.Boolean _
    ) As System.Integer
    public static System.int CollectionFromFile( 
       System.string path,
       System.Collections.Generic.List<Font> fonts,
       System.bool initCodeMap
    )

    Parameters

    path
    The path to the file containing the font data.
    fonts
    The destination list of fonts. It must be initialized beforehand.
    initCodeMap
    Set this parameter to True if you're planning to add the loaded fonts to the fallback font collection.

    Return Value

    The number of loaded fonts.
    See Also