FontConfigs
Contents
[
Hide
]FontConfigs class
Specifies font settings
new FontConfigs()
Methods
| Name | Description |
|---|---|
| getFontSources() (static) | Gets a copy of the array that contains the list of sources |
| getFontSubstitutes(originalFontName) (static) | Returns array containing font substitute names to be used if original font is not presented. |
| setFontFolder(fontFolder, recursive) (static) | Sets the fonts folder |
| setFontFolders(fontFolders, recursive) (static) | Sets the fonts folders |
| setFontSources(sources) (static) | Sets the fonts sources. |
| setFontSubstitutes(originalFontName, substituteFontNames) (static) | Font substitute names for given original font name. |
| getDefaultFontName() | Gets or sets the default font name. |
| setDefaultFontName() | Gets or sets the default font name. |
getFontSources() (static)
Gets a copy of the array that contains the list of sources
Returns: Array ofFontSourceBase — Array ofFontSourceBase
getFontSubstitutes(originalFontName) (static)
Returns array containing font substitute names to be used if original font is not presented.
| Parameter | Type | Description |
|---|---|---|
| originalFontName | String | originalFontName |
Returns: Array of String — Array of String An array containing font substitute names to be used if original font is not presented.
setFontFolder(fontFolder, recursive) (static)
Sets the fonts folder
| Parameter | Type | Description |
|---|---|---|
| fontFolder | String | The folder that contains TrueType fonts. |
| recursive | boolean | Determines whether or not to scan subfolders. |
setFontFolders(fontFolders, recursive) (static)
Sets the fonts folders
| Parameter | Type | Description |
|---|---|---|
| fontFolders | Array of String | The folders that contains TrueType fonts. |
| recursive | boolean | Determines whether or not to scan subfolders. |
setFontSources(sources) (static)
Sets the fonts sources.
| Parameter | Type | Description |
|---|---|---|
| sources | Array ofFontSourceBase | An array of sources that contain TrueType fonts. |
setFontSubstitutes(originalFontName, substituteFontNames) (static)
Font substitute names for given original font name.
| Parameter | Type | Description |
|---|---|---|
| originalFontName | String | Original font name. |
| substituteFontNames | Array of String | List of font substitute names to be used if original font is not presented. |
getDefaultFontName()
Gets or sets the default font name.
setDefaultFontName()
Gets or sets the default font name.