IndividualFontConfigs

IndividualFontConfigs class

Font configs for each Workbook object.

Constructors

NameDescription
IndividualFontConfigsCtor.

Methods

NameDescription
setFontSubstitutesFont substitute names for given original font name.
getFontSubstitutesReturns array containing font substitute names to be used if original font is not presented.
setFontFolderSets the fonts folder
setFontFoldersSets the fonts folders
setFontSourcesSets the fonts sources.
setFontExclusiveSourcesSets the fonts exclusive sources. Only fonts in the sources will be used.

System.setProperty(“Aspose.Cells.FontDirExc”, | | getFontSources | Gets a copy of the array that contains the list of sources |

IndividualFontConfigs()

Ctor.

setFontSubstitutes(originalFontName, substituteFontNames)

Font substitute names for given original font name.

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

getFontSubstitutes(originalFontName)

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

ParameterTypeDescription
originalFontNameStringoriginalFontName

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

setFontFolder(fontFolder, recursive)

Sets the fonts folder

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

setFontFolders(fontFolders, recursive)

Sets the fonts folders

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

setFontSources(sources)

Sets the fonts sources.

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

setFontExclusiveSources(exclusiveSources)

Sets the fonts exclusive sources. Only fonts in the sources will be used.

System.setProperty(“Aspose.Cells.FontDirExc”, “fontExclusiveFolder”) will be ignored if this is set.

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

getFontSources()

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