[]
Appends all fonts from the specified font file to the collection.
public int RegisterFont(string fontPath, bool addToFallbacks = false)
Public Function RegisterFont(fontPath As String, Optional addToFallbacks As Boolean = False) As Integer
| Type | Name | Description |
|---|---|---|
| string | fontPath | Path to the source font file. |
| bool | addToFallbacks | Specifies if all the registered fonts should be added to the fallback font collection. |
| Type | Description |
|---|---|
| int | The number of registered fonts. |