[]
Loads all Fonts from a specified font file.
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
| 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. |
| Type | Description |
|---|---|
| int | The number of loaded fonts. |