IndividualFontConfigs

IndividualFontConfigs class

Font configs for each Workbook object.

class IndividualFontConfigs;

Constructors

NameDescription
constructor()Ctor.

Methods

MethodDescription
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:

ParameterTypeDescription
originalFontNamestringOriginal font name.
substituteFontNamesstring[]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:

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 fonts 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 fonts 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[]

isNull()

Checks whether the implementation object is null.

isNull() : boolean;