IndividualFontConfigs
Contents
[
Hide
]IndividualFontConfigs class
Font configs for each Workbook object.
class IndividualFontConfigs;
Constructors
Name | Description |
---|---|
constructor() | Ctor. |
Methods
Method | Description |
---|---|
setFontSubstitutes(string, string[]) | Font substitute names for given original font name. |
getFontSubstitutes(string) | Returns array containing font substitute names to be used if original font is not presented. |
setFontFolder(string, boolean) | Sets the fonts folder |
setFontFolders(string[], boolean) | Sets the fonts folders |
setFontSources(FontSourceBase[]) | Sets the fonts sources. |
getFontSources() | Gets a copy of the array that contains the list of sources |
isNull() | Checks whether the implementation object is null. |
constructor()
Ctor.
constructor();
setFontSubstitutes(string, string[])
Font substitute names for given original font name.
setFontSubstitutes(originalFontName: string, substituteFontNames: string[]) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
originalFontName | string | Original font name. |
substituteFontNames | string[] | List of font substitute names to be used if original font is not presented. |
getFontSubstitutes(string)
Returns array containing font substitute names to be used if original font is not presented.
getFontSubstitutes(originalFontName: string) : string[];
Parameters:
Parameter | Type | Description |
---|---|---|
originalFontName | string | originalFontName |
Returns
An array containing font substitute names to be used if original font is not presented.
setFontFolder(string, boolean)
Sets the fonts folder
setFontFolder(fontFolder: string, recursive: boolean) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
fontFolder | string | The folder that contains TrueType fonts. |
recursive | boolean | Determines whether or not to scan subfolders. |
setFontFolders(string[], boolean)
Sets the fonts folders
setFontFolders(fontFolders: string[], recursive: boolean) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
fontFolders | string[] | The folders that contains TrueType fonts. |
recursive | boolean | Determines whether or not to scan subfolders. |
setFontSources(FontSourceBase[])
Sets the fonts sources.
setFontSources(sources: FontSourceBase[]) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
sources | FontSourceBase[] | An array of sources that contain TrueType fonts. |
getFontSources()
Gets a copy of the array that contains the list of sources
getFontSources() : FontSourceBase[];
Returns
isNull()
Checks whether the implementation object is null.
isNull() : boolean;