IndividualFontConfigs

IndividualFontConfigs class

Font configs for each Workbook object.

class IndividualFontConfigs;

Constructors

NameDescription
constructor()Ctor.

Methods

MethodDescription
setFontSubstitutes(string, string[])Sets font substitute names for a given original font name.
getFontSubstitutes(string)Returns an 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 font folders
setFontSources(FontSourceBase[])Sets the font sources.
getFontSources()Gets a copy of the array that contains the list of sources

constructor()

Ctor.

constructor();

setFontSubstitutes(string, string[])

Sets font substitute names for a given original font name.

setFontSubstitutes(originalFontName: string, substituteFontNames: string[]) : void;

Parameters:

ParameterTypeDescription
originalFontNamestringOriginal font name.
substituteFontNamesstring[]List of font substitute names to be used if original font is not presented.

getFontSubstitutes(string)

Returns an array containing font substitute names to be used if original font is not presented.

getFontSubstitutes(originalFontName: string) : string[];

Parameters:

ParameterTypeDescription
originalFontNamestringoriginalFontName

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:

ParameterTypeDescription
fontFolderstringThe folder that contains TrueType fonts.
recursivebooleanDetermines whether or not to scan subfolders.

setFontFolders(string[], boolean)

Sets the font folders

setFontFolders(fontFolders: string[], recursive: boolean) : void;

Parameters:

ParameterTypeDescription
fontFoldersstring[]The folders that contains TrueType fonts.
recursivebooleanDetermines whether or not to scan subfolders.

setFontSources(FontSourceBase[])

Sets the font sources.

setFontSources(sources: FontSourceBase[]) : void;

Parameters:

ParameterTypeDescription
sourcesFontSourceBase[]An array of sources that contain TrueType fonts.

getFontSources()

Gets a copy of the array that contains the list of sources

getFontSources() : FontSourceBase[];

Returns

FontSourceBase[]