[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.Font.CollectionFromFile

CollectionFromFile Method

CollectionFromFile(string, List<Font>, bool)

Loads all Fonts from a specified font file.

Declaration
public static int CollectionFromFile(string path, List<Font> fonts, bool initCodeMap = false)
Public Shared Function CollectionFromFile(path As String, fonts As List(Of Font), Optional initCodeMap As Boolean = False) As Integer
Parameters
Type Name Description
string path

The path to the file containing the font data.

List<Font> fonts

The destination list of fonts. It must be initialized beforehand.

bool initCodeMap

Set this parameter to True if you're planning to add the loaded fonts to the fallback font collection.

Returns
Type Description
int

The number of loaded fonts.