[]
Appends all fonts (*.ttf, *.otf, *.ttc files) from the specified folder to the FontCollection.
public int RegisterDirectory(string folderPath, bool addToFallbacks = false)
Public Function RegisterDirectory(folderPath As String, Optional addToFallbacks As Boolean = False) As Integer
Type | Name | Description |
---|---|---|
string | folderPath | Path to the source directory with fonts. |
bool | addToFallbacks | Specifies if all the registered fonts should be added to the fallback font collection. |
Type | Description |
---|---|
int | The number of registered fonts. |